3v4l.org

run code in 300+ PHP versions simultaneously
<?php $player = array("lawrence","joey","jason","joel","bianca","paulo","albert"); shuffle($player); $player2 = $player; array_unshift($player, array_pop($player)); $combined = array_combine($player, $player2); print_r($combined);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NhArm
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
    6     5        INIT_FCALL                                               'array_unshift'
          6        SEND_REF                                                 !0
          7        INIT_FCALL                                               'array_pop'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'array_combine'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
   10    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:
149.59 ms | 1395 KiB | 23 Q