3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date_string = date('Ymd') . " + 36 months"; echo date('Ymd', strtotime($date_string));
Output for 4.3.0 - 5.0.5, 5.1.2 - 7.3.0rc4
20180224
Output for 5.1.0 - 5.1.1
19700101