3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i=0; $i<=100; $i++) { $arr[] = 'pam param' . $i; } var_dump(array_flip($arr));
Output for 4.3.0 - 7.1.0
array(101) { ["pam param0"]=> int(0) ["pam param1"]=> int(1) ["pam param2"]=> int(2) ["pam param3"]=> int(3) ["pam param4"]=> int(4) ["pam param5"]=> int(5) ["pam param6"]=> int(6) ["pam param7"]=> int(7) ["pam param8"]=> int(8) ["pam param9"]=> int(9) ["pam param10"]=> int(10) ["pam param11"]=> int(11) ["pam param12"]=> int(12) ["pam param13"]=> int(13) ["pam param14"]=> int(14) ["pam param15"]=> int(15) ["pam param16"]=> int(16) ["pam param17"]=> int(17) ["pam param18"]=> int(18) ["pam param19"]=> int(19) ["pam param20"]=> int(20) ["pam param21"]=> int(21) ["pam param22"]=> int(22) ["pam param23"]=> int(23) ["pam param24"]=> int(24) ["pam param25"]=> int(25) ["pam param26"]=> int(26) ["pam param27"]=> int(27) ["pam param28"]=> int(28) ["pam param29"]=> int(29) ["pam param30"]=> int(30) ["pam param31"]=> int(31) ["pam param32"]=> int(32) ["pam param33"]=> int(33) ["pam param34"]=> int(34) ["pam param35"]=> int(35) ["pam param36"]=> int(36) ["pam param37"]=> int(37) ["pam param38"]=> int(38) ["pam param39"]=> int(39) ["pam param40"]=> int(40) ["pam param41"]=> int(41) ["pam param42"]=> int(42) ["pam param43"]=> int(43) ["pam param44"]=> int(44) ["pam param45"]=> int(45) ["pam param46"]=> int(46) ["pam param47"]=> int(47) ["pam param48"]=> int(48) ["pam param49"]=> int(49) ["pam param50"]=> int(50) ["pam param51"]=> int(51) ["pam param52"]=> int(52) ["pam param53"]=> int(53) ["pam param54"]=> int(54) ["pam param55"]=> int(55) ["pam param56"]=> int(56) ["pam param57"]=> int(57) ["pam param58"]=> int(58) ["pam param59"]=> int(59) ["pam param60"]=> int(60) ["pam param61"]=> int(61) ["pam param62"]=> int(62) ["pam param63"]=> int(63) ["pam param64"]=> int(64) ["pam param65"]=> int(65) ["pam param66"]=> int(66) ["pam param67"]=> int(67) ["pam param68"]=> int(68) ["pam param69"]=> int(69) ["pam param70"]=> int(70) ["pam param71"]=> int(71) ["pam param72"]=> int(72) ["pam param73"]=> int(73) ["pam param74"]=> int(74) ["pam param75"]=> int(75) ["pam param76"]=> int(76) ["pam param77"]=> int(77) ["pam param78"]=> int(78) ["pam param79"]=> int(79) ["pam param80"]=> int(80) ["pam param81"]=> int(81) ["pam param82"]=> int(82) ["pam param83"]=> int(83) ["pam param84"]=> int(84) ["pam param85"]=> int(85) ["pam param86"]=> int(86) ["pam param87"]=> int(87) ["pam param88"]=> int(88) ["pam param89"]=> int(89) ["pam param90"]=> int(90) ["pam param91"]=> int(91) ["pam param92"]=> int(92) ["pam param93"]=> int(93) ["pam param94"]=> int(94) ["pam param95"]=> int(95) ["pam param96"]=> int(96) ["pam param97"]=> int(97) ["pam param98"]=> int(98) ["pam param99"]=> int(99) ["pam param100"]=> int(100) }