3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('a' => 3, 'b' => 4, 'c' => 3); $newArray = array_flip($array); print_r(array('array' => $array, 'newArray' => $newArray));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [array] => Array ( [a] => 3 [b] => 4 [c] => 3 ) [newArray] => Array ( [3] => c [4] => b ) )