3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date_create((string) 'Wed 11:31:18 EST')->format('Y-m-d H:i:s');
based on uFSVQ
Output for 5.2.0 - 5.4.32, 7.0.14 - 7.1.0
2014-10-01 11:31:18
Output for 5.5.25, 5.6.8, 5.6.21, 7.0.6
2016-05-04 11:31:18
Output for 5.5.30, 5.6.14, 7.0.5
2016-04-06 11:31:18
Output for 5.6.18, hhvm-3.12.0, 7.0.4
2016-03-16 11:31:18
Output for 5.5.31 - 5.5.32, 5.6.17, 7.0.1 - 7.0.3
2016-03-23 11:31:18
Output for 5.6.15 - 5.6.16, hhvm-3.10.0, 7.0.0
2016-03-30 11:31:18
Output for 5.5.34, 5.6.20
2016-04-13 11:31:18
Output for 5.5.33, 5.6.19
2016-03-09 11:31:18
Output for 5.5.29, 5.6.12 - 5.6.13
2016-04-20 11:31:18
Output for 5.5.26 - 5.5.28, 5.6.9 - 5.6.11
2016-04-27 11:31:18
Output for 5.5.24, 5.5.35
2016-05-25 11:31:18
Output for 5.4.39 - 5.4.45
2015-09-23 11:31:18
Output for 5.4.34 - 5.4.38
2015-03-18 11:31:18
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/ubivU on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ubivU on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ubivU on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/ubivU on line 2
Process exited with code 255.