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 = 44
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 40
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 40
Branch analysis from position: 27
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 38
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 38
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 38
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 44
filename:       /in/1jT48
function name:  (null)
number of ops:  45
compiled vars:  !0 = $jsonContent, !1 = $jsonObj, !2 = $options, !3 = $html, !4 = $func, !5 = $products, !6 = $arg, !7 = $prod
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     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'
   12     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $9      
          4        ASSIGN                                                   !1, $9
   14     5        FETCH_OBJ_R                                      ~11     !1, 'myKey'
          6        ASSIGN                                                   !2, ~11
   16     7        FETCH_DIM_R                                      ~13     !2, 0
          8        IS_EQUAL                                                 ~13, 'loop'
          9      > JMPZ                                                     ~14, ->44
   18    10    >   ASSIGN                                                   !3, <array>
   19    11        INIT_FCALL                                               'substr'
         12        FETCH_DIM_R                                      ~16     !2, 1
         13        SEND_VAL                                                 ~16
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 -2
         16        DO_ICALL                                         $17     
         17        ASSIGN                                                   !4, $17
   20    18        INIT_DYNAMIC_CALL                                        !4
         19        DO_FCALL                                      0  $19     
         20        ASSIGN                                                   !5, $19
   22    21        INIT_FCALL                                               'array_slice'
         22        SEND_VAR                                                 !2
         23        SEND_VAL                                                 2
         24        DO_ICALL                                         $21     
         25      > FE_RESET_R                                       $22     $21, ->40
         26    > > FE_FETCH_R                                               $22, !6, ->40
   23    27    > > FE_RESET_R                                       $23     !5, ->38
         28    > > FE_FETCH_R                                               $23, !7, ->38
   24    29    >   INIT_FCALL                                               'str_replace'
         30        SEND_VAL                                                 '%24products-%3Etitle'
         31        FETCH_OBJ_R                                      ~25     !7, 'title'
         32        SEND_VAL                                                 ~25
         33        SEND_VAR                                                 !6
         34        DO_ICALL                                         $26     
         35        ASSIGN_DIM                                               !3
         36        OP_DATA                                                  $26
   23    37      > JMP                                                      ->28
         38    >   FE_FREE                                                  $23
   22    39      > JMP                                                      ->26
         40    >   FE_FREE                                                  $22
   28    41        INIT_FCALL                                               'var_dump'
         42        SEND_VAR                                                 !3
         43        DO_ICALL                                                 
   29    44    > > RETURN                                                   1

Function getitems:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1jT48
function name:  getItems
number of ops:  9
compiled vars:  !0 = $products
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        CAST                                          8  ~3      <array>
          2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  ~3
    6     4        CAST                                          8  ~5      <array>
          5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  ~5
    7     7      > RETURN                                                   !0
    8     8*     > RETURN                                                   null

End of function getitems

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
257.76 ms | 975 KiB | 18 Q