3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(0 =>1,'aa' => 2,3,4); foreach($arr as $key => $val){ print($key == 'aa' ? 5 : $val); }
Output for 4.3.0 - 7.2.0
5534