3v4l.org

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

preferences:
41.43 ms | 402 KiB | 5 Q