3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = ["one", "two"]; $newItem = "three"; var_dump(array_combine($arr + [$newItem]));
based on GCXNZ
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0beta1
Warning: array_combine() expects exactly 2 parameters, 1 given in /in/NQLE9 on line 6 NULL
Output for hhvm-3.22.0
Warning: array_combine() expects exactly 2 parameters, 1 given in /in/NQLE9 on line -1 NULL