3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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';