3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date=date_create(); date_date_set($date,1975,11,28); echo date_format($date,"Y/m/d g"); $date1=date_create_from_format("j-M-Y","15-Mar-2013"); echo $date1;
based on XKvhN
Output for 7.1.0
1975/11/28 11 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.3.0 - 5.4.34, 5.5.31, 5.6.21 - 5.6.28, 7.0.14
1975/11/28 11 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.5.29, 7.0.0, 7.0.6
1975/11/28 4 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.6.9, 7.0.5
1975/11/28 5 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.5.24, 5.5.35, 5.6.12, 5.6.18, 7.0.3 - 7.0.4
1975/11/28 3 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.4.43 - 5.4.45, 5.5.26, 5.5.33, 5.6.13, 5.6.19, 7.0.1 - 7.0.2
1975/11/28 2 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.4.35 - 5.4.42, 5.6.11, 5.6.14, hhvm-3.12.0
1975/11/28 10 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.10, 5.6.20
1975/11/28 12 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.5.25, 5.5.27, 5.5.32, 5.6.17
1975/11/28 8 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.5.28, 5.5.34, 5.6.16
1975/11/28 6 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.6.15
1975/11/28 7 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.6.7 - 5.6.8
1975/11/28 1 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.5.30
1975/11/28 9 Catchable fatal error: Object of class DateTime could not be converted to string in /in/72mDK on line 8
Process exited with code 255.
Output for 5.2.0 - 5.2.17
1975/11/28 11 Fatal error: Call to undefined function date_create_from_format() in /in/72mDK on line 7
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/72mDK on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_create() in /in/72mDK on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_create() in /in/72mDK on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_create() in /in/72mDK on line 3