3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is the string you're looking for."; $regex = array('/is/','/string/'); $replace = array('isnt','jedi'); echo preg_replace($regex,$replace,$string);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
163.1 ms | 2834 KiB | 9 Q