3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $thequery = "St Margaret's RC Primary School"; $thequery = str_replace("'", "\\", $thequery); echo $thequery;
based on 1cQkL
Output for 4.3.0 - 7.2.0
St Margaret\s RC Primary School