3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo pathinfo( "foo.bar", PATHINFO_FILENAME | PATHINFO_BASENAME );
based on dM0Wc
Output for 5.2.0 - 7.3.0rc4
foo.bar
Output for 4.3.2 - 5.1.6
Notice: Use of undefined constant PATHINFO_FILENAME - assumed 'PATHINFO_FILENAME' in /in/9APK2 on line 3 foo.bar
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PATHINFO_FILENAME - assumed 'PATHINFO_FILENAME' in /in/9APK2 on line 3
Process exited with code 139.