3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 34324; //echo date('d.m.Y', ''); echo $date = strtotime('2013-07-31 12:34:59'); //$date = date_create('2000-01-01'); echo date_format($date, 'Y-m-d H:i:s');
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
343241375266899 Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in /in/cG6XK on line 9
Output for hhvm-3.10.0 - 3.12.0
343241375266899 Warning: date_format() expects parameter 1 to be object, integer given in /in/cG6XK on line 9
Output for 5.2.0 - 5.4.45
343241375266899 Warning: date_format() expects parameter 1 to be DateTime, integer given in /in/cG6XK on line 9
Output for 5.0.0 - 5.1.6
343241375266899 Fatal error: Call to undefined function date_format() in /in/cG6XK on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
343241375266899 Fatal error: Call to undefined function: date_format() in /in/cG6XK on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
343241375266899 Fatal error: Call to undefined function: date_format() in /in/cG6XK on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
343241375266899 Fatal error: Call to undefined function: date_format() in /in/cG6XK on line 9