3v4l.org

run code in 300+ PHP versions simultaneously
<?php $players = array("Player 1", "Player 2", "Player 3", "Player 4", "Player 5"); $numbers = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"); shuffle($numbers); foreach($players as $player) { echo $player." 2 Selections:<br />"; echo array_pop($numbers) . ';' . array_pop($numbers); echo "<br /><br />"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/OnUv6
function name:  (null)
number of ops:  22
compiled vars:  !0 = $players, !1 = $numbers, !2 = $player
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'shuffle'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    9     5      > FE_RESET_R                                       $6      !0, ->20
          6    > > FE_FETCH_R                                               $6, !2, ->20
   10     7    >   CONCAT                                           ~7      !2, '+2+Selections%3A%3Cbr+%2F%3E'
          8        ECHO                                                     ~7
   11     9        INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $8      
         12        CONCAT                                           ~9      $8, '%3B'
         13        INIT_FCALL                                               'array_pop'
         14        SEND_REF                                                 !1
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     ~9, $10
         17        ECHO                                                     ~11
   12    18        ECHO                                                     '%3Cbr+%2F%3E%3Cbr+%2F%3E'
    9    19      > JMP                                                      ->6
         20    >   FE_FREE                                                  $6
   13    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.13 ms | 1400 KiB | 17 Q