3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D7Efh
function name:  (null)
number of ops:  27
compiled vars:  !0 = $json_response, !1 = $response_body, !2 = $currKey, !3 = $result, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%0A++++%22INDEX_ID%22%3A+%220%22%2C%0A++++%22NOTES%22%3A+%220%3B+Farming%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%221%22%2C%0A++++%22NOTES%22%3A+%22Fruit+Name%3B+List+of+Fruits%3B%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%222%22%2C%0A++++%22NOTES%22%3A+%22Apple%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%223%22%2C%0A++++%22NOTES%22%3A+%22Orange%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%224%22%2C%0A++++%22NOTES%22%3A+%22Grapes%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%225%22%2C%0A++++%22NOTES%22%3A+%22Mango%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%226%22%2C%0A++++%22NOTES%22%3A+%22Animal+Name%3B+List+of+Animal%3B%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%227%22%2C%0A++++%22NOTES%22%3A+%22Pig%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%228%22%2C%0A++++%22NOTES%22%3A+%22Goat%22%0A%7D%2C%0A%7B%0A++++%22INDEX_ID%22%3A+%229%22%2C%0A++++%22NOTES%22%3A+%22Cow%22%0A%7D%5D'
   45     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
   46     6        ASSIGN                                                   !2, '0'
   48     7        INIT_FCALL                                               'array_reduce'
          8        SEND_VAR                                                 !1
          9        DECLARE_LAMBDA_FUNCTION                          ~9      [0]
         10        BIND_LEXICAL                                             ~9, !2
   55    11        SEND_VAL                                                 ~9
   48    12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !1, $10
   59    14        INIT_ARRAY                                       ~12     '001', 'NOTE_NO'
   60    15        ASSIGN                                           ~13     !4, 'FRUITS'
         16        ADD_ARRAY_ELEMENT                                ~12     ~13, 'CATEGORY'
   61    17        FETCH_DIM_R                                      ~14     !1, 'FRUIT'
         18        ADD_ARRAY_ELEMENT                                ~12     ~14, 'LISTS_TO_BUY'
         19        INIT_ARRAY                                       ~15     ~12
   57    20        ASSIGN                                                   !3, ~15
   64    21        INIT_FCALL                                               'json_encode'
         22        SEND_VAR                                                 !3
         23        SEND_VAL                                                 128
         24        DO_ICALL                                         $17     
         25        ECHO                                                     $17
         26      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D7Efh
function name:  {closure}
number of ops:  29
compiled vars:  !0 = $carry, !1 = $item, !2 = $currKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   48     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   49     3        INIT_FCALL                                               'strpos'
          4        FETCH_DIM_R                                      ~3      !1, 'NOTES'
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 'Name%3B+List'
          7        DO_ICALL                                         $4      
          8        TYPE_CHECK                                  1018          $4
          9      > JMPZ                                                     ~5, ->22
   50    10    >   INIT_FCALL                                               'strtoupper'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '+'
         13        FETCH_DIM_R                                      ~6      !1, 'NOTES'
         14        SEND_VAL                                                 ~6
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $7      
         17        FETCH_DIM_R                                      ~8      $7, 0
         18        SEND_VAL                                                 ~8
         19        DO_ICALL                                         $9      
         20        ASSIGN                                                   !2, $9
   51    21      > RETURN                                                   !0
   53    22    >   FETCH_DIM_R                                      ~13     !1, 'NOTES'
         23        INIT_ARRAY                                       ~14     ~13, 'FRUITS'
         24        FETCH_DIM_W                                      $11     !0, !2
         25        ASSIGN_DIM                                               $11
         26        OP_DATA                                                  ~14
   54    27      > RETURN                                                   !0
   55    28*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
232.31 ms | 979 KiB | 19 Q