3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prevYear = date("Y", strtotime("-1 year", strtotime(2013)); $nextYear = date("Y", strtotime("2013 +1 year")); var_dump($prevYear);
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/ZJHnE on line 2
Process exited with code 255.