3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 6; $endTime = date('Y-m-d', strtotime("-$i+2 months")); echo $endTime; ?>
based on REnfO
Output for 5.4.0 - 7.2.0
2015-11-17