3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = (new DateTime())->format('Y-m-d H:i:s'); echo $test; $away_date->add(new DateInterval('PT2M'));
based on MNDO3
Output for 7.0.20 - 7.2.0
2015-10-30 01:07:23 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on null in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.6
2016-05-03 18:00:49 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on null in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.5
2016-04-03 06:28:15 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on null in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.4
2016-03-10 18:13:29 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on unknown in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.3
2016-03-18 19:16:37 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on unknown in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.2
2016-03-23 01:26:07 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on unknown in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.1
2016-03-24 05:09:28 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on unknown in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 7.0.0
2016-03-27 07:06:09 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Uncaught Error: Call to a member function add() on unknown in /in/96fuY:4 Stack trace: #0 {main} thrown in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.28
2015-10-30 01:07:23 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.21
2016-05-02 13:11:35 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.20
2016-04-10 05:27:31 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.19
2016-03-08 02:23:47 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.18
2016-03-15 11:05:53 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.17
2016-03-19 22:46:25 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.16
2016-03-28 07:53:14 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.15
2016-03-29 08:44:04 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.14
2016-04-02 10:36:57 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.13
2016-04-15 14:58:11 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.12
2016-04-20 05:26:52 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.11
2016-04-24 11:43:01 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.10
2016-04-25 13:52:22 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.9
2016-04-27 19:02:04 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.6.8
2016-04-30 03:55:19 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on null in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.35
2016-05-22 19:37:14 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.34
2016-04-11 07:39:36 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.33
2016-03-09 05:01:29 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.32
2016-03-17 14:43:52 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.31
2016-03-21 01:45:31 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.30
2016-04-01 10:37:31 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.29
2016-04-17 05:22:25 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.28
2016-04-21 08:39:58 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.27
2016-04-22 10:28:42 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.26
2016-04-26 16:35:13 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.25
2016-04-28 23:26:15 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.5.24
2016-05-24 06:00:41 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.4.42 - 5.4.45
2015-10-30 01:07:30 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.4.34 - 5.4.41
2015-10-30 01:07:31 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.4.25 - 5.4.32
2015-10-30 01:07:32 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.4.17 - 5.4.24
2015-10-30 01:07:33 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.4.9 - 5.4.16
2015-10-30 01:07:34 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.8
2015-10-30 01:07:35 Notice: Undefined variable: away_date in /in/96fuY on line 4 Fatal error: Call to a member function add() on a non-object in /in/96fuY 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/96fuY on line 2
Process exited with code 255.