3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ignore = array('44'=>'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(8) { [44]=> string(7) "GLOBALS" [45]=> string(6) "_FILES" [46]=> string(7) "_COOKIE" [47]=> string(5) "_POST" [48]=> string(4) "_GET" [49]=> string(7) "_SERVER" [50]=> string(4) "_ENV" [51]=> string(6) "ignore" } array(8) { ["GLOBALS"]=> int(44) ["_FILES"]=> int(45) ["_COOKIE"]=> int(46) ["_POST"]=> int(47) ["_GET"]=> int(48) ["_SERVER"]=> int(49) ["_ENV"]=> int(50) ["ignore"]=> int(51) }