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.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/PrGCK on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/PrGCK on line 3
Process exited with code 255.