3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(pathinfo("/model/testClass"));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["dirname"]=> string(6) "/model" ["basename"]=> string(9) "testClass" ["filename"]=> string(9) "testClass" }
Output for 4.3.0 - 5.1.6
array(2) { ["dirname"]=> string(6) "/model" ["basename"]=> string(9) "testClass" }