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
int(7) int(2)
Output for 7.1.0 - 7.1.10
int(7) int(1)
Output for 7.0.0 - 7.0.20
int(7) int(0)
Output for 5.6.8 - 5.6.28
int(5) int(6)
Output for 5.5.24 - 5.5.35
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)