3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ignore = array(''=>'GLOBALS', ''=>'_FILES', '_COOKIE', '_POST', '_GET', '_SERVER', '_ENV', 'ignore'); var_dump($ignore); $i2=array_flip($ignore); var_dump($i2);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(7) { [""]=> string(6) "_FILES" [0]=> string(7) "_COOKIE" [1]=> string(5) "_POST" [2]=> string(4) "_GET" [3]=> string(7) "_SERVER" [4]=> string(4) "_ENV" [5]=> string(6) "ignore" } array(7) { ["_FILES"]=> string(0) "" ["_COOKIE"]=> int(0) ["_POST"]=> int(1) ["_GET"]=> int(2) ["_SERVER"]=> int(3) ["_ENV"]=> int(4) ["ignore"]=> int(5) }