3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file_name = "PL1134-38 VSD hangtag order form 9.25-.xls"; $ndot = strrpos($file_name,"."); $extension = substr($file_name,1,$ndot); $prefix = $file_name.substr(0,$ndot); $prefix = str_replace(".","",$prefix); $file_name = $prefix + $extension;
based on VT1Gj
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/IBHrP on line 8 Warning: A non-numeric value encountered in /in/IBHrP on line 8
Output for 5.3.18 - 7.0.20