3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(date('Y', time()));
based on EOudT
Output for 5.6.26 - 5.6.27, 5.6.29 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.11 - 7.0.13, 7.0.15 - 7.0.19, 7.0.21 - 7.0.30, 7.1.1 - 7.1.4, 7.1.8 - 7.1.9, 7.1.11 - 7.1.20, 7.2.1 - 7.2.8
string(4) "2018"
Output for 4.3.0 - 5.6.25, 5.6.28, 7.0.0 - 7.0.10, 7.0.14, 7.0.20, 7.1.0, 7.1.5 - 7.1.7, 7.1.10, 7.2.0
string(4) "2015"