3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo time(); $datetime2 = new DateTime('@74:35:41'); print_r($datetime2);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.12
1447679453 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@74:35:41) at position 3 (:): Unexpected character in /in/dqrIV:5 Stack trace: #0 /in/dqrIV(5): DateTime->__construct('@74:35:41') #1 {main} thrown in /in/dqrIV on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.24
1447679453 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@74:35:41) at position 3 (:): Unexpected character' in /in/dqrIV:5 Stack trace: #0 /in/dqrIV(5): DateTime->__construct('@74:35:41') #1 {main} thrown in /in/dqrIV on line 5
Process exited with code 255.

preferences:
131.58 ms | 402 KiB | 132 Q