3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['dev', 'staging', 'regcheck', 'production'] as $env) { foreach ([true, false] as $on_fr) { if (! in_array($env, ['dev', 'staging']) && ! ($on_fr && $env === 'production')) { echo 'This environment is invalid ' . $env . '/' . ($on_fr ? 'FR' : 'Not FR') . PHP_EOL; } else { echo 'This environment is valid ' . $env . '/' . ($on_fr ? 'FR' : 'Not FR') . PHP_EOL; } } }
Output for git.master, git.master_jit, rfc.property-hooks
This environment is valid dev/FR This environment is valid dev/Not FR This environment is valid staging/FR This environment is valid staging/Not FR This environment is invalid regcheck/FR This environment is invalid regcheck/Not FR This environment is valid production/FR This environment is invalid production/Not FR

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.03 ms | 402 KiB | 8 Q