3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $today = getdate(); echo $today['year']; ?>
based on XGEVi
Output for 5.4.34 - 5.4.35, 5.6.28, 7.0.14 - 7.1.0
2014
Output for 5.5.24 - 5.6.21, 7.0.0 - 7.0.6
2016
Output for 5.4.36 - 5.4.45
2015
Output for 4.3.0 - 5.4.32
<? $today = getdate(); echo $today['year']; ?>