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 - 7.1.0
array(8) { [0]=> string(7) "GLOBALS" [1]=> string(6) "_FILES" [2]=> string(7) "_COOKIE" [3]=> string(5) "_POST" [4]=> string(4) "_GET" [5]=> string(7) "_SERVER" [6]=> string(4) "_ENV" [7]=> string(6) "ignore" } array(8) { ["GLOBALS"]=> int(0) ["_FILES"]=> int(1) ["_COOKIE"]=> int(2) ["_POST"]=> int(3) ["_GET"]=> int(4) ["_SERVER"]=> int(5) ["_ENV"]=> int(6) ["ignore"]=> int(7) }