3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '{ "response": [ { "flight": { "number": "6204", "iata_number": "HV6204", "icao_number": "TRA6204" } }, { "flight": { "number": "7012", "iata_number": "TB7012", "icao_number": "JAF7012" } }, { "flight": { "number": "6652", "iata_number": "HV6652", "icao_number": "TRA6652" } }, { "flight": { "number": "1925", "iata_number": "W61925", "icao_number": "WZZ1925" } }, { "flight": { "number": "5075", "iata_number": "W65075", "icao_number": "WZZ5075" } } ]}'; $s = json_decode($s, true); foreach ($s['response'] as $item) { echo $item['flight']['iata_number'] . '<br />'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/5lFE1
function name:  (null)
number of ops:  16
compiled vars:  !0 = $s, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++%22response%22%3A+%5B%0A++++%7B%0A++++++%22flight%22%3A+%7B%0A++++++++%22number%22%3A+%226204%22%2C%0A++++++++%22iata_number%22%3A+%22HV6204%22%2C%0A++++++++%22icao_number%22%3A+%22TRA6204%22%0A++++++%7D%0A++++%7D%2C%0A++++%7B%0A++++++%22flight%22%3A+%7B%0A++++++++%22number%22%3A+%227012%22%2C%0A++++++++%22iata_number%22%3A+%22TB7012%22%2C%0A++++++++%22icao_number%22%3A+%22JAF7012%22%0A++++++%7D%0A++++%7D%2C%0A++++%7B%0A++++++%22flight%22%3A+%7B%0A++++++++%22number%22%3A+%226652%22%2C%0A++++++++%22iata_number%22%3A+%22HV6652%22%2C%0A++++++++%22icao_number%22%3A+%22TRA6652%22%0A++++++%7D%0A++++%7D%2C%0A++++%7B%0A++++++%22flight%22%3A+%7B%0A++++++++%22number%22%3A+%221925%22%2C%0A++++++++%22iata_number%22%3A+%22W61925%22%2C%0A++++++++%22icao_number%22%3A+%22WZZ1925%22%0A++++++%7D%0A++++%7D%2C%0A++++%7B%0A++++++%22flight%22%3A+%7B%0A++++++++%22number%22%3A+%225075%22%2C%0A++++++++%22iata_number%22%3A+%22W65075%22%2C%0A++++++++%22icao_number%22%3A+%22WZZ5075%22%0A++++++%7D%0A++++%7D%0A%5D%7D'
   42     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
   43     6        FETCH_DIM_R                                      ~5      !0, 'response'
          7      > FE_RESET_R                                       $6      ~5, ->14
          8    > > FE_FETCH_R                                               $6, !1, ->14
   44     9    >   FETCH_DIM_R                                      ~7      !1, 'flight'
         10        FETCH_DIM_R                                      ~8      ~7, 'iata_number'
         11        CONCAT                                           ~9      ~8, '%3Cbr+%2F%3E'
         12        ECHO                                                     ~9
   43    13      > JMP                                                      ->8
         14    >   FE_FREE                                                  $6
   45    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.6 ms | 1409 KiB | 15 Q