3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(glob(__DIR__.'/*', GLOB_BRACE));
Output for 5.3.0 - 7.1.0
array(0) { }
Output for 4.3.0 - 4.3.6, 4.3.9 - 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/Q43D5 on line 3 array(0) { }
Output for 4.3.7 - 4.3.8
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/Q43D5 on line 3 bool(false)