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 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 18
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 18
Branch analysis from position: 31
Branch analysis from position: 18
Branch analysis from position: 27
filename:       /in/ErQe7
function name:  (null)
number of ops:  35
compiled vars:  !0 = $mainArr, !1 = $newObject, !2 = $n, !3 = $newArr, !4 = $decoded, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%0A++++%7B%22name%22%3A%22Saqib1%22%2C+%22id%22%3A%221%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib2%22%2C+%22id%22%3A%222%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib3%22%2C+%22id%22%3A%223%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib4%22%2C+%22id%22%3A%224%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib5%22%2C+%22id%22%3A%225%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib6%22%2C+%22id%22%3A%226%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib7%22%2C+%22id%22%3A%227%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib8%22%2C+%22id%22%3A%228%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib9%22%2C+%22id%22%3A%229%22%7D%2C%0A++++%7B%22name%22%3A%22Saqib10%22%2C+%22id%22%3A%2210%22%7D%0A%5D'
   18     1        NEW                                              $7      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $7
   20     4        ASSIGN_OBJ                                               !1, 'name'
          5        OP_DATA                                                  'New'
   21     6        ASSIGN_OBJ                                               !1, 'id'
          7        OP_DATA                                                  '11'
   22     8        ASSIGN_OBJ                                               !1, 'extraKey'
          9        OP_DATA                                                  'this+is+extra+key+for+newObjects+to+identify'
   24    10        ASSIGN                                                   !2, 3
   25    11        ASSIGN                                                   !3, <array>
   27    12        INIT_FCALL                                               'json_decode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $15     
         15        ASSIGN                                                   !4, $15
   29    16        ASSIGN                                                   !5, 0
         17      > JMP                                                      ->28
   30    18    >   FETCH_DIM_R                                      ~19     !4, !5
         19        ASSIGN_DIM                                               !3
         20        OP_DATA                                                  ~19
   32    21        ADD                                              ~20     !5, 1
         22        MOD                                              ~21     ~20, !2
         23        IS_EQUAL                                                 ~21, 0
         24      > JMPZ                                                     ~22, ->27
   33    25    >   ASSIGN_DIM                                               !3
         26        OP_DATA                                                  !1
   29    27    >   PRE_INC                                                  !5
         28    >   COUNT                                            ~25     !4
         29        IS_SMALLER                                               !5, ~25
         30      > JMPNZ                                                    ~26, ->18
   37    31    >   INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !3
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.96 ms | 973 KiB | 15 Q