3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = pathinfo('small.png', PATHINFO_FILENAME); var_dump($test);
based on rmBnf
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(5) "small"
Output for 4.3.0 - 5.1.6
Notice: Use of undefined constant PATHINFO_FILENAME - assumed 'PATHINFO_FILENAME' in /in/CR44o on line 4 Warning: pathinfo() expects parameter 2 to be long, string given in /in/CR44o on line 4 NULL