3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new DateTime())->format('Ymd His'); echo "\n"; echo (new DateTime('plus 300s'))->format('Ymd His');
Output for 8.3.0 - 8.3.4
20151229 013140 Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (plus 300s) at position 0 (p): The timezone could not be found in the database in /in/DecSA:4 Stack trace: #0 /in/DecSA(4): DateTime->__construct('plus 300s') #1 {main} thrown in /in/DecSA on line 4
Process exited with code 255.
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
20151229 013140 Fatal error: Uncaught Exception: Failed to parse time string (plus 300s) at position 0 (p): The timezone could not be found in the database in /in/DecSA:4 Stack trace: #0 /in/DecSA(4): DateTime->__construct('plus 300s') #1 {main} thrown in /in/DecSA on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.20, 7.2.22 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
20151229 013140 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (plus 300s) at position 0 (p): The timezone could not be found in the database in /in/DecSA:4 Stack trace: #0 /in/DecSA(4): DateTime->__construct('plus 300s') #1 {main} thrown in /in/DecSA on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 8.0.13
20151229 003140 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (plus 300s) at position 0 (p): The timezone could not be found in the database in /in/DecSA:4 Stack trace: #0 /in/DecSA(4): DateTime->__construct('plus 300s') #1 {main} thrown in /in/DecSA on line 4
Process exited with code 255.
Output for 7.2.21
20151229 013141 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (plus 300s) at position 0 (p): The timezone could not be found in the database in /in/DecSA:4 Stack trace: #0 /in/DecSA(4): DateTime->__construct('plus 300s') #1 {main} thrown in /in/DecSA on line 4
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
20151229 013140 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (plus 300s) at position 0 (p): The timezone could not be found in the database' in /in/DecSA:4 Stack trace: #0 /in/DecSA(4): DateTime->__construct('plus 300s') #1 {main} thrown in /in/DecSA on line 4
Process exited with code 255.

preferences:
237.39 ms | 402 KiB | 323 Q