3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir('foo/bar', 0777, true); mkdir('src/Dir', 0777, true); file_put_contents('src/Dir/Test.php', '<?php echo "Included"'); include __DIR__ . '/src/Dir/Test.php'; include_once __DIR__ . '/foo/bar/../../src/Dir/test.php';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: mkdir(): open_basedir restriction in effect. File(/foo/bar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JaQOI on line 3 Warning: mkdir(): open_basedir restriction in effect. File(/src/Dir) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JaQOI on line 4 Warning: file_put_contents(): open_basedir restriction in effect. File(src/Dir/Test.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JaQOI on line 6 Warning: file_put_contents(src/Dir/Test.php): Failed to open stream: Operation not permitted in /in/JaQOI on line 6 Warning: include(/in/src/Dir/Test.php): Failed to open stream: No such file or directory in /in/JaQOI on line 8 Warning: include(): Failed opening '/in/src/Dir/Test.php' for inclusion (include_path='.:') in /in/JaQOI on line 8 Warning: include_once(/in/foo/bar/../../src/Dir/test.php): Failed to open stream: No such file or directory in /in/JaQOI on line 9 Warning: include_once(): Failed opening '/in/foo/bar/../../src/Dir/test.php' for inclusion (include_path='.:') in /in/JaQOI on line 9

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:
49.03 ms | 403 KiB | 8 Q