3v4l.org

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

preferences:
52.03 ms | 2319 KiB | 5 Q