3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yesterday = date('Y-m-d', strtotime("-1d")); $test = date('Y-m-d', strtotime("2018-06-28 16:03:34")); echo $test; $test2 = date('Y-m-d', strtotime("-4 days")); echo $test2;

preferences:
28.01 ms | 402 KiB | 5 Q