3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "shit gay balls.dick.mp3"; var_dump(pathinfo($str)); echo "asdf";
Output for 5.2.0 - 7.2.0
array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(23) "shit gay balls.dick.mp3" ["extension"]=> string(3) "mp3" ["filename"]=> string(19) "shit gay balls.dick" } asdf
Output for 4.3.0 - 5.1.6
array(3) { ["dirname"]=> string(1) "." ["basename"]=> string(23) "shit gay balls.dick.mp3" ["extension"]=> string(3) "mp3" } asdf