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.4.0 - 5.4.14
Parse error: syntax error, unexpected ''10:59));' (T_ENCAPSED_AND_WHITESPACE) in /in/LjS7f on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/LjS7f on line 2
Process exited with code 255.