3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '{"ORDERLIST":"{\"ORDER_LIST\":[{\"itemCount\":1,\"order_id\":\"2269\",\"uname\":\"jordan\",\"prod_name\":\"ABC\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"},{\"itemCount\":1,\"order_id\":\"2269\",\"uname\":\"jordan\",\"prod_name\":\"AMD Kaveri A4-7300 APU HD8470D 2-Core 2GB 500GB CPU Package\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"}]}"}'; $response = json_decode($content, true); $orderlist = json_decode($response['ORDERLIST'], true); for($x=0;$x<1;$x++){ foreach(orderlist AS $row){ $iteration=$row[$x]['itemCount']; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 14
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 14
Branch analysis from position: 25
Branch analysis from position: 14
Branch analysis from position: 21
filename:       /in/pamQi
function name:  (null)
number of ops:  26
compiled vars:  !0 = $content, !1 = $response, !2 = $orderlist, !3 = $x, !4 = $row, !5 = $iteration
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22ORDERLIST%22%3A%22%7B%5C%22ORDER_LIST%5C%22%3A%5B%7B%5C%22itemCount%5C%22%3A1%2C%5C%22order_id%5C%22%3A%5C%222269%5C%22%2C%5C%22uname%5C%22%3A%5C%22jordan%5C%22%2C%5C%22prod_name%5C%22%3A%5C%22ABC%5C%22%2C%5C%22quantity%5C%22%3A%5C%221%5C%22%2C%5C%22branch%5C%22%3A%5C%22Dapitan%5C%22%2C%5C%22totalPrice%5C%22%3A%5C%2223500%5C%22%7D%2C%7B%5C%22itemCount%5C%22%3A1%2C%5C%22order_id%5C%22%3A%5C%222269%5C%22%2C%5C%22uname%5C%22%3A%5C%22jordan%5C%22%2C%5C%22prod_name%5C%22%3A%5C%22AMD+Kaveri+A4-7300+APU+HD8470D+2-Core+2GB+500GB+CPU+Package%5C%22%2C%5C%22quantity%5C%22%3A%5C%221%5C%22%2C%5C%22branch%5C%22%3A%5C%22Dapitan%5C%22%2C%5C%22totalPrice%5C%22%3A%5C%2223500%5C%22%7D%5D%7D%22%7D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    4     6        INIT_FCALL                                               'json_decode'
          7        FETCH_DIM_R                                      ~9      !1, 'ORDERLIST'
          8        SEND_VAL                                                 ~9
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !2, $10
    6    12        ASSIGN                                                   !3, 0
         13      > JMP                                                      ->23
    7    14    >   FETCH_CONSTANT                                   ~13     'orderlist'
         15      > FE_RESET_R                                       $14     ~13, ->21
         16    > > FE_FETCH_R                                               $14, !4, ->21
    8    17    >   FETCH_DIM_R                                      ~15     !4, !3
         18        FETCH_DIM_R                                      ~16     ~15, 'itemCount'
         19        ASSIGN                                                   !5, ~16
    7    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $14
    6    22        PRE_INC                                                  !3
         23    >   IS_SMALLER                                               !3, 1
         24      > JMPNZ                                                    ~19, ->14
   11    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.88 ms | 1396 KiB | 15 Q