3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $player = array("lawrence","joey","jason","joel","bianca","paulo","albert"); shuffle($player); $player2 = $player; $combined = array_combine($player, array_unshift($player, array_pop($player))); print_r($combined);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_combine() expects parameter 2 to be array, integer given in /in/tQSsj on line 7
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: array_combine expects arrays or collections in /in/tQSsj on line 7
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/tQSsj 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/tQSsj 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/tQSsj on line 7