3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $checkfor = 'test'; $words = array('test','derp','herp'); function noop(){} for ($i = 1; $i++ < 100000;){ $flipped = array_flip($words); if (isset($flipped[$checkfor])) { noop(); } } /* if (in_array($checkfor,$words)) { echo "non-flip match"; } */
Output for 4.3.0 - 7.1.0