3v4l.org

run code in 300+ PHP versions simultaneously
<?php $craneids_json = ' { "craneIDs": [{ "craneID": "R01" }, { "craneID": "R02" }, { "craneID": "R04" }, { "craneID": "R08" }, { "craneID": "R09" }, { "craneID": "R10" }, { "craneID": "R16" }, { "craneID": "TC01" }, { "craneID": "T06" }, { "craneID": "T08" }, { "craneID": "T08/2" }, { "craneID": "T12" }] } '; $craneids_array = json_decode($craneids_json); $i =0; while (isset($craneids_array->craneIDs[$i])) { print_r($craneids_array->craneIDs[$i]->craneID); echo "<br />"; $i++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
Branch analysis from position: 7
filename:       /in/qNHfJ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $craneids_json, !1 = $craneids_array, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%7B%0A++++%22craneIDs%22%3A+%5B%7B%0A++++++++%22craneID%22%3A+%22R01%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22R02%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22R04%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22R08%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22R09%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22R10%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22R16%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22TC01%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22T06%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22T08%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22T08%2F2%22%0A++++%7D%2C+%7B%0A++++++++%22craneID%22%3A+%22T12%22%0A++++%7D%5D%0A%7D%0A'
   32     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   33     5        ASSIGN                                                   !2, 0
   34     6      > JMP                                                      ->15
   35     7    >   INIT_FCALL                                               'print_r'
          8        FETCH_OBJ_R                                      ~7      !1, 'craneIDs'
          9        FETCH_DIM_R                                      ~8      ~7, !2
         10        FETCH_OBJ_R                                      ~9      ~8, 'craneID'
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
   36    13        ECHO                                                     '%3Cbr+%2F%3E'
   37    14        PRE_INC                                                  !2
   34    15    >   FETCH_OBJ_IS                                     ~12     !1, 'craneIDs'
         16        ISSET_ISEMPTY_DIM_OBJ                         0          ~12, !2
         17      > JMPNZ                                                    ~13, ->7
   38    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.5 ms | 1006 KiB | 15 Q