3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_combine(['1','2'],array_fill(0,['1','2'])));
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: array_fill() expects exactly 3 parameters, 2 given in /in/iNnKe on line 3 Warning: array_combine() expects parameter 2 to be array, null given in /in/iNnKe on line 3 NULL
Output for hhvm-3.15.4
Warning: array_fill() expects exactly 3 parameters, 2 given in /in/iNnKe on line 3 Warning: Invalid operand type was used: array_combine expects arrays or collections in /in/iNnKe on line 3 NULL