3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected ',' in /in/tFh5h on line 5
Process exited with code 255.

preferences:
181.37 ms | 1386 KiB | 63 Q