3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('0' => 'A_VALUE'); foreach ($data as $key => $value) { if (strcmp("Something to match the key on", $key)) { print_r($key); print_r('key matches'); } }

preferences:
39.26 ms | 402 KiB | 5 Q