3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array('alan', 'ryan', 'mum', 'matt', 'mel', 'nat', 'sarah', 'shaun'); shuffle($x); while(sizeof($x) > 0) { echo array_pop($x) . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/gYJYn
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
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                                                 
    6     4      > JMP                                                      ->10
    8     5    >   INIT_FCALL                                               'array_pop'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $3      
          8        CONCAT                                           ~4      $3, '%0A'
          9        ECHO                                                     ~4
    6    10    >   COUNT                                            ~5      !0
         11        IS_SMALLER                                               0, ~5
         12      > JMPNZ                                                    ~6, ->5
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.47 ms | 1394 KiB | 17 Q