3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $partes_ruta = pathinfo('/www/htdocs/inc/lib.inc.php'); echo $partes_ruta['dirname'], "\n"; echo $partes_ruta['basename'], "\n"; echo $partes_ruta['extension'], "\n"; echo $partes_ruta['filename'], "\n"; // desde PHP 5.2.0
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
/www/htdocs/inc lib.inc.php php lib.inc
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.1.6
/www/htdocs/inc lib.inc.php php Notice: Undefined index: filename in /in/TIhEf on line 7
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/TIhEf on line 7
Process exited with code 255.