3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('x' => 'X'); foreach ($a as $k => $v) { $a['X'] = $v; unset($a['x']); } echo $a['X'];
Output for 4.3.0 - 7.1.0
X