3v4l.org

run code in 300+ PHP versions simultaneously
<?php $away_date = (new DateTime())->format('Y-m-d H:i:s'); echo $away_date; $away_date->add(new DateInterval('PT2M'));
Output for 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 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, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
2015-10-30 01:08:40 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 8.0.13
2015-10-30 00:08:40 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.6
2016-05-03 18:00:40 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.5
2016-04-03 06:28:14 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.4
2016-03-10 18:13:27 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.3
2016-03-18 19:16:35 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.2
2016-03-23 01:26:05 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.1
2016-03-24 05:09:27 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 7.0.0
2016-03-27 07:06:07 Fatal error: Uncaught Error: Call to a member function add() on string in /in/p9maE:4 Stack trace: #0 {main} thrown in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.28
2015-10-30 01:08:40 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.21
2016-05-02 13:11:27 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.20
2016-04-10 05:27:30 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.19
2016-03-08 02:23:45 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.18
2016-03-15 11:05:51 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.17
2016-03-19 22:46:23 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.16
2016-03-28 07:53:12 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.15
2016-03-29 08:44:03 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.14
2016-04-02 10:36:55 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.13
2016-04-15 14:58:03 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.12
2016-04-20 05:26:43 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.11
2016-04-24 11:42:43 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.10
2016-04-25 13:52:14 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.9
2016-04-27 19:01:57 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.6.8
2016-04-30 03:55:11 Fatal error: Call to a member function add() on string in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.35
2016-05-22 19:37:10 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.34
2016-04-11 07:39:34 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.33
2016-03-09 05:01:27 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.32
2016-03-17 14:43:50 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.31
2016-03-21 01:45:29 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.30
2016-04-01 10:37:30 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.29
2016-04-17 05:22:10 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.28
2016-04-21 08:39:49 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.27
2016-04-22 10:28:34 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.26
2016-04-26 16:35:05 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.25
2016-04-28 23:26:07 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.5.24
2016-05-24 06:00:40 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.4.39 - 5.4.45
2015-10-30 01:08:49 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.4.28 - 5.4.38
2015-10-30 01:08:50 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.4.18 - 5.4.27
2015-10-30 01:08:51 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.4.11 - 5.4.17
2015-10-30 01:08:52 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.4.1 - 5.4.10
2015-10-30 01:08:53 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.
Output for 5.4.0
2015-10-30 01:08:54 Fatal error: Call to a member function add() on a non-object in /in/p9maE on line 4
Process exited with code 255.

preferences:
239.04 ms | 401 KiB | 273 Q