3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(pathinfo('/www/htdocs/'));
based on 1IJtf
Output for 5.2.0 - 7.2.0
array(3) { ["dirname"]=> string(4) "/www" ["basename"]=> string(6) "htdocs" ["filename"]=> string(6) "htdocs" }
Output for 4.3.0 - 5.1.6
array(2) { ["dirname"]=> string(4) "/www" ["basename"]=> string(6) "htdocs" }