3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xmlFile = pathinfo('/usr/admin/config/test.xml'); function filePathParts($arg1) { echo $arg1['dirname'], "\n"; echo $arg1['basename'], "\n"; echo $arg1['extension'], "\n"; echo $arg1['filename'], "\n"; } filePathParts($xmlFile);
Output for 5.2.0 - 7.1.0
/usr/admin/config test.xml xml test
Output for 4.3.0 - 5.1.6
/usr/admin/config test.xml xml Notice: Undefined index: filename in /in/bJHok on line 8