3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date_now_start = date('Y-m-d H:i:s'); echo date('Y-m-d', strtotime('yesterday', strtotime($date_now_start))); $date_end = date('Y-m-d ', strtotime("yesterday")); echo date('Y-m-d', strtotime($date_end));
based on SMmlq
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0beta1
2018-06-252018-06-25