3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $deliveryDate = DateTime::createFromFormat( 'd/m/Y ', '11/03/2017' ); print_r($deliveryDate->format('Y-m-d'));
Output for 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Call to a member function format() on bool in /in/km7gI:8 Stack trace: #0 {main} thrown in /in/km7gI on line 8
Process exited with code 255.
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to a member function format() on boolean in /in/km7gI:8 Stack trace: #0 {main} thrown in /in/km7gI on line 8
Process exited with code 255.
Output for hhvm-3.12.14 - 3.17.3
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function format() on a non-object (boolean)' in /in/km7gI:8 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to a member function format() on boolean in /in/km7gI on line 8
Process exited with code 255.