3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // prints e.g. 'Current PHP version: 4.1.1' //echo 'Current PHP version: ' . phpversion(); echo $PHP_VERSION_ID; ?>
Output for 5.3.28 - 5.3.29, 5.4.18 - 7.1.0
Notice: Undefined variable: PHP_VERSION_ID in /in/SdcSi on line 4
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined variable: PHP_VERSION_ID in /in/AXmB0 on line 4