3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("/(2[0-3]|[01][0-9]):[0-5][0-9]/", '10:59')
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected end of file in /in/Wd7MY on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected $end in /in/Wd7MY on line 2
Process exited with code 255.

preferences:
176.51 ms | 1386 KiB | 47 Q