3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function escapeString($string) { return preg_replace('/([\,;])/','\\\$1', $string); } echo escapeString('testing, to, tototo, to');
based on 7gIaV
Output for 4.3.0 - 7.1.0
testing\, to\, tototo\, to