3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = dirname(__FILE__); ini_set('open_basedir', NULL); var_dump(glob("$path/*.none")); var_dump(glob("$path/?.none")); var_dump(glob("$path/*{hello,world}.none")); var_dump(glob("$path/*/nothere")); var_dump(glob("$path/[aoeu]*.none")); var_dump(glob("$path/directly_not_exists")); ini_set('open_basedir', $path); var_dump(glob("$path/*.none")); var_dump(glob("$path/?.none")); var_dump(glob("$path/*{hello,world}.none")); var_dump(glob("$path/*/nothere")); var_dump(glob("$path/[aoeu]*.none")); var_dump(glob("$path/directly_not_exists")); ini_set('open_basedir', '/tmp'); var_dump(glob("$path/*.none")); var_dump(glob("$path/?.none")); var_dump(glob("$path/*{hello,world}.none")); var_dump(glob("$path/*/nothere")); var_dump(glob("$path/[aoeu]*.none")); var_dump(glob("$path/directly_not_exists"));

preferences:
59.37 ms | 402 KiB | 5 Q