3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = '/[^\w]fox\s/'; if (preg_match($pattern, 'The quick brown fox jumps over the lazy dog')) { echo "'fox' is present..."; } else echo "'fox' is not present...";
Output for 4.3.0 - 7.2.0
'fox' is present...