3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "page": 1, "totalsCount": 1, "isLastPage": true, "lastPageNumber": 1, "firstOnPage": 1, "lastOnPage": 1, "itemsPerPage": 50, "entries": [ { "id": 60132, "statusName": "GIT", "dates": [ { "orderId": 60132, "typeId": 7, "date": "2021-06-03T00:00:00+02:00" }, { "orderId": 60132, "typeId": 11, "date": "2021-05-28T00:00:00+02:00" }, { "orderId": 60132, "typeId": 16, "date": "2021-05-27T20:20:28+02:00" }, { "orderId": 60132, "typeId": 2, "date": "2021-05-27T20:19:21+02:00" }, { "orderId": 60132, "typeId": 4, "date": "2021-06-03T15:16:14+02:00" } ] } ] }'; $obj = json_decode($json); foreach($obj->entries[0]->dates as $order => $value) { if($value->typeId == 11) echo '<th scope="row">' . $value->date . '</th>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/kGqd3
function name:  (null)
number of ops:  21
compiled vars:  !0 = $json, !1 = $obj, !2 = $value, !3 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22page%22%3A+1%2C%0A++++%22totalsCount%22%3A+1%2C%0A++++%22isLastPage%22%3A+true%2C%0A++++%22lastPageNumber%22%3A+1%2C%0A++++%22firstOnPage%22%3A+1%2C%0A++++%22lastOnPage%22%3A+1%2C%0A++++%22itemsPerPage%22%3A+50%2C%0A++++%22entries%22%3A+%5B%0A++++++++%7B%0A++++++++++++%22id%22%3A+60132%2C%0A++++++++++++%22statusName%22%3A+%22GIT%22%2C%0A++++++++++++%22dates%22%3A+%5B%0A++++++++++++++++%7B%0A++++++++++++++++++++%22orderId%22%3A+60132%2C%0A++++++++++++++++++++%22typeId%22%3A+7%2C%0A++++++++++++++++++++%22date%22%3A+%222021-06-03T00%3A00%3A00%2B02%3A00%22%0A++++++++++++++++%7D%2C%0A++++++++++++++++%7B%0A++++++++++++++++++++%22orderId%22%3A+60132%2C%0A++++++++++++++++++++%22typeId%22%3A+11%2C%0A++++++++++++++++++++%22date%22%3A+%222021-05-28T00%3A00%3A00%2B02%3A00%22%0A++++++++++++++++%7D%2C%0A++++++++++++++++%7B%0A++++++++++++++++++++%22orderId%22%3A+60132%2C%0A++++++++++++++++++++%22typeId%22%3A+16%2C%0A++++++++++++++++++++%22date%22%3A+%222021-05-27T20%3A20%3A28%2B02%3A00%22%0A++++++++++++++++%7D%2C%0A++++++++++++++++%7B%0A++++++++++++++++++++%22orderId%22%3A+60132%2C%0A++++++++++++++++++++%22typeId%22%3A+2%2C%0A++++++++++++++++++++%22date%22%3A+%222021-05-27T20%3A19%3A21%2B02%3A00%22%0A++++++++++++++++%7D%2C%0A++++++++++++++++%7B%0A++++++++++++++++++++%22orderId%22%3A+60132%2C%0A++++++++++++++++++++%22typeId%22%3A+4%2C%0A++++++++++++++++++++%22date%22%3A+%222021-06-03T15%3A16%3A14%2B02%3A00%22%0A++++++++++++++++%7D%0A++++++++++++%5D%0A++++++++%7D%0A++++%5D%0A%7D'
   45     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   46     5        FETCH_OBJ_R                                      ~7      !1, 'entries'
          6        FETCH_DIM_R                                      ~8      ~7, 0
          7        FETCH_OBJ_R                                      ~9      ~8, 'dates'
          8      > FE_RESET_R                                       $10     ~9, ->19
          9    > > FE_FETCH_R                                       ~11     $10, !2, ->19
         10    >   ASSIGN                                                   !3, ~11
   47    11        FETCH_OBJ_R                                      ~13     !2, 'typeId'
         12        IS_EQUAL                                                 ~13, 11
         13      > JMPZ                                                     ~14, ->18
         14    >   FETCH_OBJ_R                                      ~15     !2, 'date'
         15        CONCAT                                           ~16     '%3Cth+scope%3D%22row%22%3E', ~15
         16        CONCAT                                           ~17     ~16, '%3C%2Fth%3E'
         17        ECHO                                                     ~17
   46    18    > > JMP                                                      ->9
         19    >   FE_FREE                                                  $10
   48    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.76 ms | 1400 KiB | 15 Q