3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringToReplace = 'file.d20140220-u162540.jpg'; $string = substr($stringToReplace, 'file.jpg', 4); echo $string;

preferences:
32.6 ms | 402 KiB | 5 Q