3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("one", "two", "three"); var_dump(array_flip($a)); var_dump($a);
Output for 4.3.0 - 7.1.0
array(3) { ["one"]=> int(0) ["two"]=> int(1) ["three"]=> int(2) } array(3) { [0]=> string(3) "one" [1]=> string(3) "two" [2]=> string(5) "three" }