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 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
Branch analysis from position: 6
filename:       /in/egjK5
function name:  (null)
number of ops:  28
compiled vars:  !0 = $array, !1 = $n, !2 = $lastIndex, !3 = $result, !4 = $x, !5 = $key
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                                                      ->20
   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                                                   !5, $13
   15    15        FETCH_DIM_R                                      ~16     !0, !5
         16        ASSIGN_DIM                                               !3
         17        OP_DATA                                                  ~16
   16    18        ASSIGN                                                   !2, !5
   13    19        PRE_INC                                                  !4
         20    >   IS_SMALLER                                               !4, !1
         21      > JMPNZ                                                    ~19, ->6
   18    22    >   INIT_FCALL                                               'json_encode'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $20     
         25        CONCAT                                           ~21     '%0A', $20
         26        ECHO                                                     ~21
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 970 KiB | 16 Q