3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "before\n"; var_dump(realpath(__DIR__.'/..')); var_dump(realpath('./')); chdir('/tmp'); echo "after\n"; var_dump(realpath(__DIR__.'/..')); var_dump(realpath('./'));
Output for git.master, git.master_jit, rfc.property-hooks
before Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/FsJJ2 on line 3 bool(false) Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/FsJJ2 on line 4 bool(false) after Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/FsJJ2 on line 9 bool(false) string(4) "/tmp"

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