3v4l.org

run code in 300+ PHP versions simultaneously
<?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; } }

preferences:
58.74 ms | 402 KiB | 5 Q