3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateSelected= date('Y-m-d'); $lasdate = strtotime("last year", strtotime($dateSelected)); $lasdate=date('Y-m-d', $lasdate); $lasone=$lasdate-1; echo $lasdate; echo $lasone; ?>
based on VUW36
Output for 7.1.0 - 7.3.0rc2
Notice: A non well formed numeric value encountered in /in/J1WSK on line 5 2015-01-022014
Output for 5.5.0 - 7.0.20
2015-01-022014