3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match($haystack, $needle) { return strpos($haystack, $needle) !== FALSE; } function remove($haystack, $needle) { return preg_replace("/{$needle}/", "", $needle) !== FALSE; } assert(remove("test string", "test") == " string"); assert(remove("string test test string", " test ") == "stringtest string");

This is an error 404

There are `0` results


preferences:
143.23 ms | 1399 KiB | 7 Q