3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
Branch analysis from position: 6
filename:       /in/0r4Hl
function name:  (null)
number of ops:  27
compiled vars:  !0 = $array, !1 = $n, !2 = $lastIndex, !3 = $result, !4 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 10
   11     2        ASSIGN                                                   !2, -1
   12     3        ASSIGN                                                   !3, <array>
   13     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->19
   14     6    >   INIT_FCALL                                               'array_rand'
          7        INIT_FCALL                                               'array_diff_key'
          8        SEND_VAR                                                 !0
          9        INIT_ARRAY                                       ~11     null, !2
         10        SEND_VAL                                                 ~11
         11        DO_ICALL                                         $12     
         12        SEND_VAR                                                 $12
         13        DO_ICALL                                         $13     
         14        ASSIGN                                           ~14     !2, $13
         15        FETCH_DIM_R                                      ~15     !0, ~14
         16        ASSIGN_DIM                                               !3
         17        OP_DATA                                                  ~15
   13    18        PRE_INC                                                  !4
         19    >   IS_SMALLER                                               !4, 10
         20      > JMPNZ                                                    ~17, ->6
   16    21    >   INIT_FCALL                                               'json_encode'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $18     
         24        CONCAT                                           ~19     '%0A', $18
         25        ECHO                                                     ~19
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.85 ms | 969 KiB | 16 Q