3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "This is a test", "This is a TEST", "Test this testy contest protest test!", "TeSt this", ]; var_export( preg_replace('/\btest\b/i', '<b>$0</b>', $array) );

preferences:
29.88 ms | 405 KiB | 5 Q