3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d->modify( '+41660 days' ); echo $d->format( 'Y-m-d' ), "\n";
based on e5OoW
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: d in /in/KMi9T on line 2 Fatal error: Uncaught Error: Call to a member function modify() on null in /in/KMi9T:2 Stack trace: #0 {main} thrown in /in/KMi9T on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: d in /in/KMi9T on line 2 Fatal error: Uncaught Error: Call to a member function modify() on unknown in /in/KMi9T:2 Stack trace: #0 {main} thrown in /in/KMi9T on line 2
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: d in /in/KMi9T on line 2 Fatal error: Call to a member function modify() on null in /in/KMi9T on line 2
Process exited with code 255.
Output for 5.3.19 - 5.5.35
Notice: Undefined variable: d in /in/KMi9T on line 2 Fatal error: Call to a member function modify() on a non-object in /in/KMi9T on line 2
Process exited with code 255.