3v4l.org

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

preferences:
109.24 ms | 402 KiB | 105 Q