3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tQSsj
function name:  (null)
number of ops:  21
compiled vars:  !0 = $player, !1 = $player2, !2 = $combined
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'shuffle'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !1, !0
    7     5        INIT_FCALL                                               'array_combine'
          6        SEND_VAR                                                 !0
          7        INIT_FCALL                                               'array_unshift'
          8        SEND_REF                                                 !0
          9        INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
    9    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.85 ms | 1395 KiB | 23 Q