3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $yesterday = date('Y-m-d', strtotime("-1d")); $test = date('Y-m-d', "2018-06-28 16:03:34"); echo $test; $test2 = date('Y-m-d', strtotime("-4 days")); echo $test2;
based on fTb4q
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0beta1
Notice: A non well formed numeric value encountered in /in/VTCqC on line 3 1970-01-012018-06-28
Output for hhvm-3.22.0
Notice: A non well formed numeric value encountered in /in/VTCqC on line -1 1970-01-012018-06-28