3v4l.org

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

preferences:
27.04 ms | 402 KiB | 5 Q