3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $away_date = (new DateTime())->format('Y-m-d H:i:s'); echo $away_date; $away_date->add(new DateInterval('P10D'));
based on p9maE
Output for 7.0.20 - 7.2.0
2015-10-30 01:09:13 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.6
2016-05-03 18:00:41 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.5
2016-04-03 06:28:15 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.4
2016-03-10 18:13:29 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.3
2016-03-18 19:16:36 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.2
2016-03-23 01:26:07 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.1
2016-03-24 05:09:28 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 7.0.0
2016-03-27 07:06:08 Fatal error: Uncaught Error: Call to a member function add() on string in /in/H6E3E:4 Stack trace: #0 {main} thrown in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.28
2015-10-30 01:09:13 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.21
2016-05-02 13:11:28 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.20
2016-04-10 05:27:31 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.19
2016-03-08 02:23:47 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.18
2016-03-15 11:05:52 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.17
2016-03-19 22:46:24 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.16
2016-03-28 07:53:13 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.15
2016-03-29 08:44:04 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.14
2016-04-02 10:36:56 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.13
2016-04-15 14:58:04 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.12
2016-04-20 05:26:44 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.11
2016-04-24 11:42:44 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.10
2016-04-25 13:52:15 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.9
2016-04-27 19:01:58 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.6.8
2016-04-30 03:55:12 Fatal error: Call to a member function add() on string in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.35
2016-05-22 19:37:06 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.34
2016-04-11 07:39:35 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.33
2016-03-09 05:01:29 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.32
2016-03-17 14:43:52 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.31
2016-03-21 01:45:31 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.30
2016-04-01 10:37:31 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.29
2016-04-17 05:22:11 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.28
2016-04-21 08:39:51 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.27
2016-04-22 10:28:35 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.26
2016-04-26 16:35:06 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.25
2016-04-28 23:26:08 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.5.24
2016-05-24 06:00:42 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.4.43 - 5.4.45
2015-10-30 01:09:21 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.4.34 - 5.4.42
2015-10-30 01:09:22 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.4.25 - 5.4.32
2015-10-30 01:09:23 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.4.16 - 5.4.24
2015-10-30 01:09:24 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.4.7 - 5.4.15
2015-10-30 01:09:25 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.6
2015-10-30 01:09:26 Fatal error: Call to a member function add() on a non-object in /in/H6E3E on line 4
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/H6E3E on line 2
Process exited with code 255.