3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = (string) intval(date('Y'))-1; echo $x; echo date('Y-m-d',$x);
Output for 4.3.0 - 7.2.0
20121970-01-01