3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $trans = array(0 => 4, 2 => 4, 1 => 2); $trans = array_flip($trans); print_r($trans);
Output for 4.3.0 - 7.1.0
Array ( [4] => 2 [2] => 1 )