3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thequery = "St Margaret's RC Primary School"; $thequery = str_replace("'", "\\", $thequery); echo $thequery;

preferences:
42.15 ms | 402 KiB | 5 Q