3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $week_start->setISODate('2015','46'); echo $week_start->format('d-M-Y');
based on R4CM8
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: week_start in /in/WIUGs on line 4 Fatal error: Uncaught Error: Call to a member function setISODate() on null in /in/WIUGs:4 Stack trace: #0 {main} thrown in /in/WIUGs on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: week_start in /in/WIUGs on line 4 Fatal error: Uncaught Error: Call to a member function setISODate() on unknown in /in/WIUGs:4 Stack trace: #0 {main} thrown in /in/WIUGs on line 4
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: week_start in /in/WIUGs on line 4 Fatal error: Call to a member function setISODate() on null in /in/WIUGs on line 4
Process exited with code 255.
Output for 5.3.19 - 5.5.35
Notice: Undefined variable: week_start in /in/WIUGs on line 4 Fatal error: Call to a member function setISODate() on a non-object in /in/WIUGs on line 4
Process exited with code 255.