3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $today = getdate(); echo $today[year]; ?>
Output for 5.6.28, 7.0.14 - 7.1.0
Notice: Use of undefined constant year - assumed 'year' in /in/XGEVi on line 3 2014
Output for 5.5.24 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.6
Notice: Use of undefined constant year - assumed 'year' in /in/XGEVi on line 3 2016
Output for 5.4.34 - 5.4.45
Notice: Use of undefined constant year - assumed 'year' in /in/XGEVi on line 3 2015
Output for 4.3.0 - 5.4.32
<? $today = getdate(); echo $today[year]; ?>