3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(PHP_MAJOR_VERSION, PHP_MINOR_VERSION); ?>
Output for 7.2.0 - 7.2.11
int(7) int(2)
Output for hhvm-3.18.4 - 3.18.5, hhvm-3.20.2 - 3.22.0, 7.1.0 - 7.1.23
int(7) int(1)
Output for hhvm-3.12.14 - 3.17.3, hhvm-3.19.2, 7.0.0 - 7.0.31
int(7) int(0)
Output for 5.6.0 - 5.6.38, hhvm-3.10.1 - 3.11.1
int(5) int(6)
Output for 5.5.0 - 5.5.38
int(5) int(5)
Output for 5.4.10 - 5.4.45
int(5) int(4)
Output for 5.3.20 - 5.3.29
int(5) int(3)