3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filename = '/vawr/wawawaW/Media/EN_7000_05016.PDF'; $filenamePart = pathinfo($filename, PATHINFO_DIRNAME); if ($filenamePart) { $filenamePart .= '/'; } $filenamePart .= pathinfo($filename, PATHINFO_FILENAME); if(pathinfo($filename, PATHINFO_EXTENSION)){ $filenamePart .= '.' . strtolower(pathinfo($filename, PATHINFO_EXTENSION)); } echo $filenamePart;
based on LLGmW
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
/vawr/wawawaW/Media/EN_7000_05016.pdf