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_combine($arr, $arr));
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(101) { ["pam param0"]=> string(10) "pam param0" ["pam param1"]=> string(10) "pam param1" ["pam param2"]=> string(10) "pam param2" ["pam param3"]=> string(10) "pam param3" ["pam param4"]=> string(10) "pam param4" ["pam param5"]=> string(10) "pam param5" ["pam param6"]=> string(10) "pam param6" ["pam param7"]=> string(10) "pam param7" ["pam param8"]=> string(10) "pam param8" ["pam param9"]=> string(10) "pam param9" ["pam param10"]=> string(11) "pam param10" ["pam param11"]=> string(11) "pam param11" ["pam param12"]=> string(11) "pam param12" ["pam param13"]=> string(11) "pam param13" ["pam param14"]=> string(11) "pam param14" ["pam param15"]=> string(11) "pam param15" ["pam param16"]=> string(11) "pam param16" ["pam param17"]=> string(11) "pam param17" ["pam param18"]=> string(11) "pam param18" ["pam param19"]=> string(11) "pam param19" ["pam param20"]=> string(11) "pam param20" ["pam param21"]=> string(11) "pam param21" ["pam param22"]=> string(11) "pam param22" ["pam param23"]=> string(11) "pam param23" ["pam param24"]=> string(11) "pam param24" ["pam param25"]=> string(11) "pam param25" ["pam param26"]=> string(11) "pam param26" ["pam param27"]=> string(11) "pam param27" ["pam param28"]=> string(11) "pam param28" ["pam param29"]=> string(11) "pam param29" ["pam param30"]=> string(11) "pam param30" ["pam param31"]=> string(11) "pam param31" ["pam param32"]=> string(11) "pam param32" ["pam param33"]=> string(11) "pam param33" ["pam param34"]=> string(11) "pam param34" ["pam param35"]=> string(11) "pam param35" ["pam param36"]=> string(11) "pam param36" ["pam param37"]=> string(11) "pam param37" ["pam param38"]=> string(11) "pam param38" ["pam param39"]=> string(11) "pam param39" ["pam param40"]=> string(11) "pam param40" ["pam param41"]=> string(11) "pam param41" ["pam param42"]=> string(11) "pam param42" ["pam param43"]=> string(11) "pam param43" ["pam param44"]=> string(11) "pam param44" ["pam param45"]=> string(11) "pam param45" ["pam param46"]=> string(11) "pam param46" ["pam param47"]=> string(11) "pam param47" ["pam param48"]=> string(11) "pam param48" ["pam param49"]=> string(11) "pam param49" ["pam param50"]=> string(11) "pam param50" ["pam param51"]=> string(11) "pam param51" ["pam param52"]=> string(11) "pam param52" ["pam param53"]=> string(11) "pam param53" ["pam param54"]=> string(11) "pam param54" ["pam param55"]=> string(11) "pam param55" ["pam param56"]=> string(11) "pam param56" ["pam param57"]=> string(11) "pam param57" ["pam param58"]=> string(11) "pam param58" ["pam param59"]=> string(11) "pam param59" ["pam param60"]=> string(11) "pam param60" ["pam param61"]=> string(11) "pam param61" ["pam param62"]=> string(11) "pam param62" ["pam param63"]=> string(11) "pam param63" ["pam param64"]=> string(11) "pam param64" ["pam param65"]=> string(11) "pam param65" ["pam param66"]=> string(11) "pam param66" ["pam param67"]=> string(11) "pam param67" ["pam param68"]=> string(11) "pam param68" ["pam param69"]=> string(11) "pam param69" ["pam param70"]=> string(11) "pam param70" ["pam param71"]=> string(11) "pam param71" ["pam param72"]=> string(11) "pam param72" ["pam param73"]=> string(11) "pam param73" ["pam param74"]=> string(11) "pam param74" ["pam param75"]=> string(11) "pam param75" ["pam param76"]=> string(11) "pam param76" ["pam param77"]=> string(11) "pam param77" ["pam param78"]=> string(11) "pam param78" ["pam param79"]=> string(11) "pam param79" ["pam param80"]=> string(11) "pam param80" ["pam param81"]=> string(11) "pam param81" ["pam param82"]=> string(11) "pam param82" ["pam param83"]=> string(11) "pam param83" ["pam param84"]=> string(11) "pam param84" ["pam param85"]=> string(11) "pam param85" ["pam param86"]=> string(11) "pam param86" ["pam param87"]=> string(11) "pam param87" ["pam param88"]=> string(11) "pam param88" ["pam param89"]=> string(11) "pam param89" ["pam param90"]=> string(11) "pam param90" ["pam param91"]=> string(11) "pam param91" ["pam param92"]=> string(11) "pam param92" ["pam param93"]=> string(11) "pam param93" ["pam param94"]=> string(11) "pam param94" ["pam param95"]=> string(11) "pam param95" ["pam param96"]=> string(11) "pam param96" ["pam param97"]=> string(11) "pam param97" ["pam param98"]=> string(11) "pam param98" ["pam param99"]=> string(11) "pam param99" ["pam param100"]=> string(12) "pam param100" }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/4I9jc on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/4I9jc on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/4I9jc on line 7