3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filepath= '../edahidden/phocadownload/userupload/esempio-copia.jpg'; $xmlFile = $filepath; //pathinfo('../edahidden/phocadownload/userupload/esempio-copia.jpg'); function filePathParts($arg1) { echo $arg1['dirname'], "\n"; echo $arg1['basename'], "\n"; echo $arg1['extension'], "\n"; echo $arg1['filename'], "\n"; } filePathParts($xmlFile);
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'dirname' in /in/q8PfR on line 6 . Warning: Illegal string offset 'basename' in /in/q8PfR on line 7 . Warning: Illegal string offset 'extension' in /in/q8PfR on line 8 . Warning: Illegal string offset 'filename' in /in/q8PfR on line 9 .
Output for 4.3.0 - 5.3.29
. . . .