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");
based on Laj9Z
Output for 5.2.0 - 5.4.34, 5.6.9, 5.6.28, 7.0.5, 7.0.14 - 7.1.0
1975/11/28 11
Output for 5.4.35 - 5.4.42, 5.5.24, 5.6.20, 7.0.0, 7.0.3, 7.0.6
1975/11/28 10
Output for 5.5.29, 5.5.35, 5.6.12, 7.0.1, 7.0.4
1975/11/28 9
Output for 5.6.11, 7.0.2
1975/11/28 4
Output for 5.6.15, hhvm-3.12.0
1975/11/28 1
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.5.31, 5.6.19, 5.6.21
1975/11/28 5
Output for 5.6.17 - 5.6.18
1975/11/28 2
Output for 5.5.28, 5.5.34, 5.6.16
1975/11/28 12
Output for 5.4.43 - 5.4.45, 5.5.25, 5.5.27, 5.5.30, 5.5.32, 5.6.14
1975/11/28 3
Output for 5.6.8, 5.6.13
1975/11/28 7
Output for 5.6.10
1975/11/28 6
Output for 5.5.26, 5.5.33
1975/11/28 8
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/mUXuA 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/mUXuA 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/mUXuA 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/mUXuA on line 3