3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime('2015-05-24 00:00:00'); $time = new \DateTime('0000-00-00 21:00:00'); $pickUpDateTime->setDate($date->format('Y'), $date->format('m'), $date->format('d')); $pickUpDateTime->setTime($time->format('H'), $time->format('i'), $time->format('s')); echo $pickUpDateTime;
based on EABlV
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: pickUpDateTime in /in/RINQ4 on line 6 Fatal error: Uncaught Error: Call to a member function setDate() on null in /in/RINQ4:6 Stack trace: #0 {main} thrown in /in/RINQ4 on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: pickUpDateTime in /in/RINQ4 on line 6 Fatal error: Uncaught Error: Call to a member function setDate() on unknown in /in/RINQ4:6 Stack trace: #0 {main} thrown in /in/RINQ4 on line 6
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: pickUpDateTime in /in/RINQ4 on line 6 Fatal error: Call to a member function setDate() on null in /in/RINQ4 on line 6
Process exited with code 255.
Output for 5.3.21 - 5.5.35
Notice: Undefined variable: pickUpDateTime in /in/RINQ4 on line 6 Fatal error: Call to a member function setDate() on a non-object in /in/RINQ4 on line 6
Process exited with code 255.