3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array(); $y = array(2, 4); echo var_dump(array_diff($y, array_keys($y)));
based on qhCkd
Output for 4.3.0 - 7.2.0
array(2) { [0]=> int(2) [1]=> int(4) }