3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(\DateTime::createFromFormat('d/m/Y', null)); var_dump(strtotime('2018-12-31 +3 month')); $date = new DateTime('@1537622532'); echo $date->format('Y-m-d H:i:sP') . "\n";
based on lYHWD
Output for 5.6.30, hhvm-3.21.3 - 3.22.0, 7.0.30 - 7.3.0beta1
bool(false) int(1553986800) 2018-09-22 13:22:12+00:00
Output for hhvm-3.18.5
Warning: createFromFormat() expects parameter 2 to be string, null given in /in/n5fnA on line 3 NULL int(1553986800) 2018-09-22 13:22:12+00:00