3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bdate = date_format(date_create('2711.1966'), "d.m.Y"); $bdate2 = date('d.m.Y', date_format(date_create('27.11.1966'), "d.m.Y")); echo $bdate; echo $bdate2; ?>
based on nTG0l
Output for 5.5.0 - 7.1.0
Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in /in/kH86n on line 2 Notice: A non well formed numeric value encountered in /in/kH86n on line 3 01.01.1970
Output for 5.2.6 - 5.4.45
Warning: date_format() expects parameter 1 to be DateTime, boolean given in /in/kH86n on line 2 Notice: A non well formed numeric value encountered in /in/kH86n on line 3 01.01.1970
Output for 5.2.0 - 5.2.5
Warning: date_create(): Failed to parse time string (2711.1966) at position 8 (6): Unexpected character in /in/kH86n on line 2 Notice: A non well formed numeric value encountered in /in/kH86n on line 3 15.07.271101.01.1970
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_format() in /in/kH86n on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_format() in /in/kH86n on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_format() in /in/kH86n on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_format() in /in/kH86n on line 2