3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$date = new DateTime('2014-01-01'); echo strtotime('next Sunday'); echo $date->format('Y-m-d') . "T00:00:00"; ?>
Output for 7.0.14 - 7.1.0
1403992800 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on null in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for 7.0.6
1462658400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on null in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for 7.0.5
1460239200 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on null in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for 7.0.4
1457823600 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for 7.0.3
1458428400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for 7.0.1 - 7.0.2
1459033200 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for 7.0.0
1459634400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/uoU71:5 Stack trace: #0 {main} thrown in /in/uoU71 on line 5
Process exited with code 255.
Output for hhvm-3.12.0
1458428400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function format() on a non-object (null)' in /in/uoU71:5 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
1459634400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function format() on a non-object (null)' in /in/uoU71:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.28
1403992800 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.21
1462658400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.13, 5.6.20
1460844000 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.19
1457823600 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.18
1458428400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.17
1459033200 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.14 - 5.6.16
1459634400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.12
1461448800 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.11
1462053600 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on null in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.24, 5.5.35
1464472800 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.34
1460844000 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.33
1457823600 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.32
1458428400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.31
1459033200 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.30
1459634400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.27 - 5.5.29
1461448800 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.5.25 - 5.5.26
1462053600 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.0.5 - 5.4.45
1448751600 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.0.4
1449356400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3
1449356400 Notice: Undefined variable: date in /in/uoU71 on line 5 Fatal error: Call to a member function format() on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 4.4.0 - 4.4.9
1448751600 Fatal error: Call to a member function on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.11
1449356400 Fatal error: Call to a member function on a non-object in /in/uoU71 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
1449356400 Fatal error: Call to a member function on a non-object in /in/uoU71 on line 5