3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new \DateTime(); var_dump($dt->format('m/d/Y'));
Output for 5.6.28, 7.0.7 - 7.1.0
string(10) "10/11/2013"
Output for 7.0.6
string(10) "05/02/2016"
Output for 7.0.5
string(10) "04/02/2016"
Output for 7.0.4
string(10) "03/09/2016"
Output for 7.0.3
string(10) "03/17/2016"
Output for 7.0.2
string(10) "03/21/2016"
Output for 7.0.1
string(10) "03/23/2016"
Output for 7.0.0
string(10) "03/26/2016"
Output for hhvm-3.12.0
string(10) "03/11/2016"
Output for hhvm-3.10.0
string(10) "03/29/2016"
Output for 5.6.21
string(10) "05/01/2016"
Output for 5.6.20
string(10) "04/09/2016"
Output for 5.6.19
string(10) "03/06/2016"
Output for 5.6.18
string(10) "03/14/2016"
Output for 5.6.17
string(10) "03/19/2016"
Output for 5.6.16
string(10) "03/27/2016"
Output for 5.6.15
string(10) "03/28/2016"
Output for 5.6.14
string(10) "04/01/2016"
Output for 5.6.13
string(10) "04/14/2016"
Output for 5.6.12
string(10) "04/19/2016"
Output for 5.6.11
string(10) "04/22/2016"
Output for 5.6.10
string(10) "04/24/2016"
Output for 5.6.9
string(10) "04/26/2016"
Output for 5.6.8
string(10) "04/29/2016"
Output for 5.6.7
string(10) "05/24/2016"
Output for 5.5.35
string(10) "05/21/2016"
Output for 5.5.34
string(10) "04/10/2016"
Output for 5.5.33
string(10) "03/08/2016"
Output for 5.5.32
string(10) "03/15/2016"
Output for 5.5.31
string(10) "03/20/2016"
Output for 5.5.30
string(10) "03/31/2016"
Output for 5.5.29
string(10) "04/16/2016"
Output for 5.5.28
string(10) "04/20/2016"
Output for 5.5.27
string(10) "04/21/2016"
Output for 5.5.26
string(10) "04/25/2016"
Output for 5.5.25
string(10) "04/28/2016"
Output for 5.5.24
string(10) "04/30/2016"
Output for 5.3.0 - 5.4.45
string(10) "11/20/2015"
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/4lKIT on line 2 string(10) "11/20/2015"
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/4lKIT on line 2 Fatal error: Class 'DateTime' not found in /in/4lKIT on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/4lKIT on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/4lKIT on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/4lKIT on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/4lKIT on line 2