3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(__DIR__, dirname('/var/www/musement.com/releases/20181030101010/app/', -1));
Output for 7.3.0rc3
Warning: dirname(): Invalid argument, levels must be >= 1 in /in/DP35G on line 3 string(3) "/in" NULL