3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = '2016-10-19'; if ($start != '0000-00-00' and strtotime($start) > strtotime('now')) { $start = strtotime($start); } echo date('Y-m-d', $start);
based on EUld8
Output for 5.6.0 - 7.3.0alpha1
Notice: A non well formed numeric value encountered in /in/u5ZtM on line 9 1970-01-01