3v4l.org

run code in 500+ PHP versions simultaneously
<?php @mkdir("/tmp/t/a/b/c",0777,true); file_put_contents("/tmp/t/a/b/b.php","MARKER"); $prefix="/tmp/t/a/b/c/x-"; $p1=$prefix."../../b".".php"; var_dump($p1, file_exists($p1), realpath($p1)); $p2=$prefix."..%2F..%2Fb.php"; var_dump(file_exists("/tmp/t/a/b/c/x-".chr(0)));
Output for git.master, git.master_jit
string(26) "/tmp/t/a/b/c/x-../../b.php" bool(false) bool(false) Fatal error: Uncaught ValueError: file_exists(): Argument #1 ($filename) must not contain any null bytes in /in/6NgVO:8 Stack trace: #0 /in/6NgVO(8): file_exists('/tmp/t/a/b/c/x-...') #1 {main} thrown in /in/6NgVO on line 8
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:
43.62 ms | 791 KiB | 4 Q