3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $event_date_format = DateTime::createFromFormat('Ymd', '2016-03-03'); setlocale(LC_TIME, 'de_DE', 'de_DE.UTF-8'); echo strftime("%A, %d. %B %Y", $event_date_format->getTimestamp()); // Donnerstag, 03. M�rz 2016 echo $event_date_format->format('F'); // March ?>
based on 4Tr8i
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to a member function getTimestamp() on boolean in /in/uKH7Y:6 Stack trace: #0 {main} thrown in /in/uKH7Y on line 6
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Fatal error: Call to a member function getTimestamp() on boolean in /in/uKH7Y on line 6
Process exited with code 255.
Output for 5.3.20 - 5.5.35
Fatal error: Call to a member function getTimestamp() on a non-object in /in/uKH7Y on line 6
Process exited with code 255.