3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = '10/10/2015'; $obj = new DateTime($start, new DateTimeZone('US/Mountain')); $time_interval = new DateInterval('PT10H'); $start_time->add($time_interval); echo $start_time->getTimestamp();
based on 6bqh0
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: start_time in /in/X8dWY on line 5 Fatal error: Uncaught Error: Call to a member function add() on null in /in/X8dWY:5 Stack trace: #0 {main} thrown in /in/X8dWY on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: start_time in /in/X8dWY on line 5 Fatal error: Uncaught Error: Call to a member function add() on unknown in /in/X8dWY:5 Stack trace: #0 {main} thrown in /in/X8dWY on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: start_time in /in/X8dWY on line 5 Fatal error: Call to a member function add() on null in /in/X8dWY on line 5
Process exited with code 255.
Output for 5.3.18 - 5.5.35
Notice: Undefined variable: start_time in /in/X8dWY on line 5 Fatal error: Call to a member function add() on a non-object in /in/X8dWY on line 5
Process exited with code 255.