3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $my_key = uniqid("\x00"); $var[$my_key] = TRUE; foreach($var as $key => $val) { if ($key === $my_key) { echo 'You got it right'; } else { echo 'You got it wrong'; } }
based on SP8bn
Output for 4.3.0 - 7.1.7
You got it right