3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('YmdHis', strtotime('1962-11-17T00:00:00+00:00')); // 19621117000000 print_r(DateTime::createFromFormat('U', strtotime('1962-11-17T00:00:00+00:00'), new \DateTimeZone('UTC'))->format('YmdHis')); // fails as createFromFormat returns false
based on ihR8i
Output for 5.6.24 - 5.6.28, 7.0.9 - 7.3.0beta1
1962111701000019621117000000
Output for 7.0.0 - 7.0.8
19621117010000 Fatal error: Uncaught Error: Call to a member function format() on boolean in /in/6P8dS:4 Stack trace: #0 {main} thrown in /in/6P8dS on line 4
Process exited with code 255.
Output for 5.6.0 - 5.6.23
19621117010000 Fatal error: Call to a member function format() on boolean in /in/6P8dS on line 4
Process exited with code 255.