3v4l.org

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