3v4l.org

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