3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('FOO', 10); $array = array(10 => FOO, "FOO" => 20); var_dump($array); print $array[$array[FOO]] * $array["FOO"];
based on IFYU1
Output for 4.3.0 - 7.1.0
array(2) { [10]=> int(10) ["FOO"]=> int(20) } 200