3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = "hkjhkj"; if(!isset($d) || $d<=0){ die('returned'); } $dt = new DateTime(); $dt = $dt->modify('-' . $d . 'days'); echo date('Y-M-d h:i:s A', $dt->getTimeStamp());
based on 2qK1h
Output for 4.3.0 - 7.1.0
returned