3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringToReplace = "opening-ceremony-600x450.d20140220-u162540.jpg'"; $removeTimestamp = strlen($stringToReplace); $removeTimestamp = $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/S5ELT on line 5
Process exited with code 255.

preferences:
172.33 ms | 1399 KiB | 63 Q