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); shuffle($combined); print_r($combined);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ujoPh
function name:  (null)
number of ops:  24
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
    9    17        INIT_FCALL                                               'shuffle'
         18        SEND_REF                                                 !2
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.23 ms | 942 KiB | 24 Q