3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mykey = "\x00" . uniqid(); $var[$mykey] = TRUE; foreach($var as $key => $val) { if ($key === $mykey) { echo 'You got it right'; } else { echo 'You got it wrong'; } }

preferences:
34.61 ms | 402 KiB | 5 Q