3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (version_compare(PHP_MAJOR_VERSION, 5)) { echo 'true'; }
based on jCk5Q
Output for 7.0.0 - 7.2.0
true
Output for 5.3.21 - 5.6.28