3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('UTC'); $date = date_create_from_format('Ym','201302'); echo $date->format('d-M-Y');
Output for 5.6.28, 7.0.12 - 7.1.0
01-Mar-2013
Output for 7.0.6
03-Feb-2013
Output for 5.3.0 - 5.5.34, 5.6.0 - 5.6.20, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.5
12-Feb-2013
Output for 5.6.21
02-Feb-2013
Output for 5.5.35
22-Feb-2013
Output for 5.2.3 - 5.2.17
Fatal error: Call to undefined function date_create_from_format() in /in/biXhF on line 4
Process exited with code 255.
Output for 5.1.0 - 5.2.2
<br /> <b>Fatal error</b>: Call to undefined function date_create_from_format() in <b>/in/biXhF</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<br /> <b>Fatal error</b>: Call to undefined function date_default_timezone_set() in <b>/in/biXhF</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: date_default_timezone_set() in <b>/in/biXhF</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: date_default_timezone_set() in <b>/in/biXhF</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: date_default_timezone_set() in <b>/in/biXhF</b> on line <b>3</b><br />