3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('ON_FR', true); foreach (['dev', 'staging', 'production'] as $env) { if (! in_array($env, ['dev', 'staging']) && ! (ON_FR && $env === 'production')) { echo 'we are on ' . $env; } }
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0