3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 34
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 30
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 30
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 34
filename:       /in/66Kv7
function name:  (null)
number of ops:  35
compiled vars:  !0 = $jsonContent, !1 = $jsonObj, !2 = $options, !3 = $html, !4 = $func, !5 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, '%7B%22myKey%22%3A%5B%22loop%22%2C+%22getItems%28%29%22%2C+%22%3Cdiv%3E%3Ch3%3E%7B%24products-%3Etitle%7D%3C%2Fh3%3E%3C%2Fdiv%3E%22%2C+%22%3Cdiv%3E%3Ch1%3E%7B%24products-%3Etitle%7D%3C%2Fh1%3E%3C%2Fdiv%3E%22%5D%7D'
   16     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
   18     5        FETCH_OBJ_R                                      ~9      !1, 'myKey'
          6        ASSIGN                                                   !2, ~9
   20     7        FETCH_DIM_R                                      ~11     !2, 0
          8        IS_EQUAL                                                 ~11, 'loop'
          9      > JMPZ                                                     ~12, ->34
   22    10    >   ASSIGN                                                   !3, <array>
   23    11        INIT_FCALL                                               'substr'
         12        FETCH_DIM_R                                      ~14     !2, 1
         13        SEND_VAL                                                 ~14
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 -2
         16        DO_ICALL                                         $15     
         17        ASSIGN                                                   !4, $15
   24    18        INIT_FCALL                                               'array_slice'
         19        SEND_VAR                                                 !2
         20        SEND_VAL                                                 2
         21        DO_ICALL                                         $17     
         22      > FE_RESET_R                                       $18     $17, ->30
         23    > > FE_FETCH_R                                               $18, !5, ->30
   25    24    >   INIT_DYNAMIC_CALL                                        !4
         25        SEND_VAR_EX                                              !5
         26        DO_FCALL                                      0  $20     
         27        ASSIGN_DIM                                               !3
         28        OP_DATA                                                  $20
   24    29      > JMP                                                      ->23
         30    >   FE_FREE                                                  $18
   28    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !3
         33        DO_ICALL                                                 
   29    34    > > RETURN                                                   1

Function getitems:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/66Kv7
function name:  getItems
number of ops:  22
compiled vars:  !0 = $item, !1 = $products, !2 = $return, !3 = $prod
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, <array>
    5     2        CAST                                          8  ~6      <array>
          3        ASSIGN_DIM                                               !1
          4        OP_DATA                                                  ~6
    6     5        CAST                                          8  ~8      <array>
          6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  ~8
    7     8        ASSIGN                                                   !2, ''
    8     9      > FE_RESET_R                                       $10     !1, ->19
         10    > > FE_FETCH_R                                               $10, !3, ->19
    9    11    >   INIT_FCALL                                               'str_replace'
         12        SEND_VAL                                                 '%24products-%3Etitle'
         13        FETCH_OBJ_R                                      ~11     !3, 'title'
         14        SEND_VAL                                                 ~11
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $12     
         17        ASSIGN_OP                                     8          !2, $12
    8    18      > JMP                                                      ->10
         19    >   FE_FREE                                                  $10
   11    20      > RETURN                                                   !2
   12    21*     > RETURN                                                   null

End of function getitems

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
266.79 ms | 975 KiB | 18 Q