3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = date('Y-m-d', strtotime(!is_null('2018-03-13 14:15:58') ? '2018-03-13 14:15:58' : '31.12.2200 23:59:59')); var_dump($t);
based on S8n6g
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0beta1
string(10) "2018-03-13"