3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(defined('HHVM_VERSION')); var_dump(defined('HHVM_VERSION_ID')); var_dump(is_int(HHVM_VERSION_ID)); // test HHVM_VERSION and HHVM_VERSION_ID matches $version = explode('.', "3.4.0"); $version_int = $version[0] * 10000 + $version[1] * 100 + $version[2]; echo $version_int;
based on rdICO
Output for 4.3.5 - 5.6.28, 7.0.0 - 7.1.0
bool(false) bool(false) Notice: Use of undefined constant HHVM_VERSION_ID - assumed 'HHVM_VERSION_ID' in /in/rVhgV on line 5 bool(false) 30400
Output for hhvm-3.10.0 - 3.12.0
bool(true) bool(true) bool(true) 30400
Output for 4.3.0 - 4.3.4
int(0) int(0) Notice: Use of undefined constant HHVM_VERSION_ID - assumed 'HHVM_VERSION_ID' in /in/rVhgV on line 5 bool(false) 30400