3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/Los_Angeles'); $datetime=(new DateTime())->format('m-d-Y'); echo $datetime;
based on AW5gL
Output for 5.4.11 - 5.4.45, 7.0.20 - 7.3.0alpha1
12-22-2015
Output for 7.0.6
05-21-2016
Output for 7.0.5
04-03-2016
Output for 7.0.4
03-10-2016
Output for 7.0.3
03-18-2016
Output for 7.0.2
03-22-2016
Output for 7.0.1
03-23-2016
Output for 7.0.0
03-27-2016
Output for 5.6.21
05-02-2016
Output for 5.6.20
04-09-2016
Output for 5.6.19
03-07-2016
Output for 5.6.18
03-15-2016
Output for 5.6.17
03-19-2016
Output for 5.6.16
03-28-2016
Output for 5.6.15
03-29-2016
Output for 5.6.14
04-14-2016
Output for 5.6.13
04-15-2016
Output for 5.6.12
04-19-2016
Output for 5.6.11
04-24-2016
Output for 5.6.10
04-25-2016
Output for 5.6.9
04-27-2016
Output for 5.6.8
04-29-2016
Output for 5.5.35
05-22-2016
Output for 5.5.34
04-11-2016
Output for 5.5.33
03-08-2016
Output for 5.5.32
03-17-2016
Output for 5.5.31
03-20-2016
Output for 5.5.30
04-01-2016
Output for 5.5.29
04-16-2016
Output for 5.5.28
04-21-2016
Output for 5.5.27
04-22-2016
Output for 5.5.26
04-26-2016
Output for 5.5.25
04-28-2016
Output for 5.5.24
05-24-2016
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/ISn21 on line 3
Process exited with code 255.