3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thequery = "2015-04-23_2015-04-23_St-Margaret&#039;s-RC-Primary-School_1429796554"; $thequery = str_replace("'", "\\", $thequery); echo $thequery;

preferences:
51.63 ms | 402 KiB | 5 Q