3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stringToReplace = "opening-ceremony-600x450.d20140220-u162540.jpg'"; $removeTimestamp = strlen($stringToReplace); $removeTimestamp = float($removeTimestamp - 17); $string = substr_replace($stringToReplace, ".jpg", , $removeTimestamp); echo $string;
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected ',' in /in/tFh5h on line 5
Process exited with code 255.