3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = time(); $two_years = strtotime("-2 years", $today); $niceyear = date('Y-m-d', $two_years); echo $two_years;
based on BXsQe
Output for 5.6.28, 7.0.20 - 7.2.0
1379428674
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
1379427021