run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on 8aKv0

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Arrow functions
array(1) { [0]=> array(3) { [0]=> string(3) "any" [1]=> string(3) "any" [2]=> string(3) "any" } }

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page