3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search=array("<",">","!=","<=",">="); $value = "name >= vivek "; function test($item, $key, $str) { if( strpos($str, $item) !== FALSE ) { echo "$item found in \"$str\"\n"; } } array_walk($search, 'test', $value);

preferences:
20.1 ms | 402 KiB | 5 Q