Login   Register  
PHP Classes
elePHPant
Icontem

PHP Interpreter: Execute PHP code by interpreting source strings

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-12-15 (7 months ago) RSS 2.0 feedNot enough user ratingsTotal: 301 This week: 2All time: 6,498 This week: 870Up
Version License PHP version Categories  
php-interpreter 1.0.0GNU General Public Lice...5.3PHP 5, Emulators, Parsers
Description Author  

This package can execute PHP code by interpreting source strings.

A compiler class can parse the PHP code and turn it into a stream of code tokens.

The interpreter class can take the parsed code tokens and execute them by calling separate classes that implement the functionality of different PHP extensions.

Innovation Award  
PHP Programming Innovation award nominee
December 2013
Number 4
Sometimes applications need to execute PHP source code that cannot be fully trusted.

This class provides a solution that may help solving this problem. It implements PHP source code interpreter written in pure PHP, so it can execute PHP code in a controlled environment.

Manuel Lemos
Picture of Pavel Astakhov
Name: Pavel Astakhov is available for providing paid consulting. Contact Pavel Astakhov .
Classes: 4 packages by
Country: Kazakhstan Kazakhstan
Age: 33
All time rank: 19781 in Kazakhstan Kazakhstan
Week rank: 750 Up2 in Kazakhstan Kazakhstan Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imagefunctions (6 files)
Files folder imagephpunit (3 files)
Accessible without login Plain text file Examples.php Example Examples of usage
Plain text file Compiler.php Class Compiler class, used to parse the PHP code for the class Runtime
Plain text file Runtime.php Class Runtime class, used to execute PHP code, prepared by class Compiler
Accessible without login Plain text file Settings.php Conf. contains the settings
Accessible without login Plain text file constants.php Conf. contains the PHP constants
Plain text file ExceptionFoxway.php Class Exception class
Plain text file iRawOutput.php Class Class source
Plain text file outPrint.php Class Class source

  Files folder image Files  /  functions  
File Role Description
  Plain text file array.php Class Class source
  Plain text file datetime.php Class Class source
  Plain text file math.php Class Class source
  Plain text file pcre.php Class Class source
  Plain text file strings.php Class Class source
  Plain text file var.php Class Class source

  Files folder image Files  /  phpunit  
File Role Description
  Accessible without login Plain text file RuntimeFunctionsDatetimeTest.php Test Unit test script
  Accessible without login Plain text file RuntimeFunctionsPcreTest.php Test Unit test script
  Accessible without login Plain text file RuntimeTest.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%Total:301All time:6,498
 This week:2This week:870Up