3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_dir( __DIR__ . "/\0\0__"));
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: is_dir() expects parameter 1 to be a valid path, string given in /in/3VG1U on line 2 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: is_dir() expects parameter 1 to be a valid path, string given in /in/3VG1U on line 2 bool(false)
Output for 5.3.4 - 5.3.29
bool(false)
Output for 5.3.0 - 5.3.3
bool(true)
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/3VG1U on line 2 bool(false)