3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b[Aa]ny\b/'; $str = 'Will *any* company do *any* job, (are there any)?'; If(preg_match_all($re, $str, $matches)){ //string contains word } // Print the entire match result var_dump($matches);

preferences:
50.82 ms | 402 KiB | 5 Q