3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(pathinfo('hello')); var_dump(pathinfo('hello.lol.jpg'));
based on 0Zfnr
Output for 5.2.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { ["dirname"]=> string(1) "." ["basename"]=> string(5) "hello" ["filename"]=> string(5) "hello" } array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(13) "hello.lol.jpg" ["extension"]=> string(3) "jpg" ["filename"]=> string(9) "hello.lol" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.1.6
array(2) { ["dirname"]=> string(1) "." ["basename"]=> string(5) "hello" } array(3) { ["dirname"]=> string(1) "." ["basename"]=> string(13) "hello.lol.jpg" ["extension"]=> string(3) "jpg" }