3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo \getcwd(); \mkdir('/tmp/foo'); \chdir('/tmp/foo'); \rmdir('/tmp/foo'); // Outputs: / (incorrect) echo \getcwd(); echo PHP_EOL; // Outputs: false (correct) echo \realpath(''); echo PHP_EOL; // Crash echo \realpath('.'); echo \realpath('./');
Output for git.master_jit, git.master, rfc.property-hooks
/ Warning: realpath(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/jWhgB on line 18 Warning: realpath(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/jWhgB on line 19

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:
52.4 ms | 402 KiB | 8 Q