3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $keys = ['aaa', 'bbb']; $val = [123,'dddd']; $arr = array_combine($keys,$val); var_dump($arr);
based on So00q
Output for 5.6.38 - 7.3.0rc3
array(2) { ["aaa"]=> int(123) ["bbb"]=> string(4) "dddd" }