3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = new DateTime("second " . $startFix->format('l') . " in two month"); //$c->add(new DateInterval('P1M')); echo $c->format('Y/m/d');
based on nVUsI
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: startFix in /in/88Hfq on line 3 Fatal error: Uncaught Error: Call to a member function format() on null in /in/88Hfq:3 Stack trace: #0 {main} thrown in /in/88Hfq on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: startFix in /in/88Hfq on line 3 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/88Hfq:3 Stack trace: #0 {main} thrown in /in/88Hfq on line 3
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: startFix in /in/88Hfq on line 3 Fatal error: Call to a member function format() on null in /in/88Hfq on line 3
Process exited with code 255.
Output for 5.3.20 - 5.5.35
Notice: Undefined variable: startFix in /in/88Hfq on line 3 Fatal error: Call to a member function format() on a non-object in /in/88Hfq on line 3
Process exited with code 255.