3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d', strtotime('first day of current month', $lastWeek)); echo "\n"; echo date('Y-m-d', strtotime('last day of current month', $lastWeek));
based on SDQH5
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: lastWeek in /in/9VoZI on line 2 1970-01-01 Notice: Undefined variable: lastWeek in /in/9VoZI on line 4 1970-01-01
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: lastWeek in /in/9VoZI on line 2 1970-01-01 Notice: Undefined variable: lastWeek in /in/9VoZI on line 4 1970-01-01