3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(pathinfo('/www/htdocs/inc/lib.inc.php'));
Output for 5.2.0 - 7.1.0
array(4) { ["dirname"]=> string(15) "/www/htdocs/inc" ["basename"]=> string(11) "lib.inc.php" ["extension"]=> string(3) "php" ["filename"]=> string(7) "lib.inc" }
Output for 4.3.0 - 5.1.6
array(3) { ["dirname"]=> string(15) "/www/htdocs/inc" ["basename"]=> string(11) "lib.inc.php" ["extension"]=> string(3) "php" }