3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "This is a string you're looking for."; $regex = array('/is/','/string'); $replace = array('isnt','jedi'); echo preg_replace($regex,$replace,$string);
Output for 5.2.5 - 7.1.0
Warning: preg_replace(): No ending delimiter '/' found in /in/io82R on line 7
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): No ending delimiter '/' found in /in/io82R on line 7 Thisnt isnt a string you're looking for.
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter '/' found in /in/io82R on line 7 Thisnt isnt a string you're looking for.