3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match('/^((0[0-9])|(1\d)|(2\d)|(3[0-1]))/((0[0-9])|(1[0-2]))/(\d{4})$/', '12/03/2014', $matches); echo '<pre>'.print_r($matches, true).'</pre>';
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Unknown modifier '(' in /in/CCAer on line 2 <pre></pre>
Output for hhvm-3.10.0 - 3.12.0
Warning: Unknown modifier '(': [/^((0[0-9])|(1\d)|(2\d)|(3[0-1]))/((0[0-9])|(1[0-2]))/(\d{4})$/] in /in/CCAer on line 2 <pre></pre>
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Unknown modifier '(' in /in/CCAer on line 2 <pre>Array ( ) </pre>
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '(' in /in/CCAer on line 2 <pre>Array ( ) </pre>