3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [1,2,3]; $coverageList = [1=>0]; var_dump(array_flip($a)); var_dump($coverageList); var_dump(array_diff_key(array_flip($a), $coverageList)); ?>
based on HSgDG
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
array(3) { [1]=> int(0) [2]=> int(1) [3]=> int(2) } array(1) { [1]=> int(0) } array(2) { [2]=> int(1) [3]=> int(2) }