3v4l.org

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

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:
63.43 ms | 401 KiB | 8 Q