3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('#^[01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$#','10:59')); >
Output for 5.3.0 - 5.3.22, 5.3.24 - 5.4.12, 5.4.14
Parse error: syntax error, unexpected '>' in 11pPN on line 3
Process exited with code 255.
Output for 5.3.23, 5.4.13
Parse error: syntax error, unexpected '>' in /in/11pPN on line 3
Process exited with code 255.