3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(pathinfo('Sun\Tests\StaticReflection\Fixtures\Example'));
Output for 5.2.0 - 7.1.0
array(3) { ["dirname"]=> string(1) "." ["basename"]=> string(43) "Sun\Tests\StaticReflection\Fixtures\Example" ["filename"]=> string(43) "Sun\Tests\StaticReflection\Fixtures\Example" }
Output for 4.3.0 - 5.1.6
array(2) { ["dirname"]=> string(1) "." ["basename"]=> string(43) "Sun\Tests\StaticReflection\Fixtures\Example" }