3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = '23 234 xxx 55 666'; $matches = null; preg_match('\\d+',$s, $matches); var_dump($matches);
based on 8qWLP
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/Pt96u on line 5 NULL
Output for hhvm-3.15.4
Warning: Delimiter must not be alphanumeric or backslash in /in/Pt96u on line 5 NULL