3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = time(); $two_years = strtotime("-2 years", $today); $niceyear = date('Y-m-d', $two_years); echo $two_years
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/BXsQe on line 6
Process exited with code 255.

preferences:
185.37 ms | 1395 KiB | 64 Q