3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ignore = array('wer'=>'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) { ["wer"]=> string(7) "GLOBALS" [0]=> string(6) "_FILES" [1]=> string(7) "_COOKIE" [2]=> string(5) "_POST" [3]=> string(4) "_GET" [4]=> string(7) "_SERVER" [5]=> string(4) "_ENV" [6]=> string(6) "ignore" } array(8) { ["GLOBALS"]=> string(3) "wer" ["_FILES"]=> int(0) ["_COOKIE"]=> int(1) ["_POST"]=> int(2) ["_GET"]=> int(3) ["_SERVER"]=> int(4) ["_ENV"]=> int(5) ["ignore"]=> int(6) }