3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name=array("raj","ram","pooja"); $rel=array("brother","father","sister"); print_r(array_combine($rel,$name)); print_r(array_combine($name,$rel));
Output for 5.0.0 - 7.1.0
Array ( [brother] => raj [father] => ram [sister] => pooja ) Array ( [raj] => brother [ram] => father [pooja] => sister )
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: array_combine() in <b>/in/qal0K</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: array_combine() in <b>/in/qal0K</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: array_combine() in <b>/in/qal0K</b> on line <b>3</b><br />