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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.85 ms | 968 KiB | 15 Q