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") . "\n"; $date1=date_create_from_format("j-M-Y","15-Mar-2013"); //echo $date1 . "\n"; echo date_format($date1,"Y/n/d h");
based on lF5Hf
Output for 5.3.0 - 5.4.34, 5.5.24, 5.5.29, 5.6.28, 7.0.0, 7.0.6, 7.0.14 - 7.1.0
1975/11/28 2013/3/15 11
Output for 5.5.28, 5.5.34, 5.6.16, 7.0.7
1975/11/28 2013/3/15 01
Output for 5.6.9, hhvm-3.12.0, 7.0.5
1975/11/28 2013/3/15 12
Output for 5.5.26, 5.5.35, 5.6.13, 7.0.4
1975/11/28 2013/3/15 09
Output for 5.4.35 - 5.4.42, 5.6.12, 7.0.3
1975/11/28 2013/3/15 10
Output for 5.5.33, 5.6.20, 7.0.1 - 7.0.2
1975/11/28 2013/3/15 08
Output for 5.4.43 - 5.4.45, 5.5.25, hhvm-3.10.0
1975/11/28 2013/3/15 03
Output for 5.5.32, 5.6.19, 5.6.21
1975/11/28 2013/3/15 06
Output for 5.6.8, 5.6.10, 5.6.18
1975/11/28 2013/3/15 07
Output for 5.6.15, 5.6.17
1975/11/28 2013/3/15 02
Output for 5.5.31, 5.6.7, 5.6.11, 5.6.14
1975/11/28 2013/3/15 05
Output for 5.5.27, 5.5.30
1975/11/28 2013/3/15 04
Output for 5.2.0 - 5.2.17
1975/11/28 Fatal error: Call to undefined function date_create_from_format() in /in/WpTSS 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/WpTSS 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/WpTSS 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/WpTSS 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/WpTSS on line 3