3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = strtotime('2014-05-20 12:34'); $x = null; echo date('Y-m-d H:i:s', $x);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
1970-01-01 01:00:00
Output for hhvm-3.12.0 - 3.13.2
Warning: date() expects parameter 2 to be integer, null given in /in/7PT92 on line 4