3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = json_decode('{"services": {"service": [ { "custom_name": "My Compose Service", "service_id": "73", "cloud_services": {"cloud_service": [ { "custom_name": "My Personal TAI Cloud", "service_id": "71" }, { "custom_name": "My Professional TAI Cloud", "service_id": "72" }, null ]} }, null ]}}', true); foreach(new RecursiveIteratorIterator(new RecursiveArrayIterator($response)) as $elt) { var_dump($elt); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/ngsTB
function name:  (null)
number of ops:  19
compiled vars:  !0 = $response, !1 = $elt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22services%22%3A+%7B%22service%22%3A+%5B%0A++++++++++++++%7B%0A++++++++++++++%22custom_name%22%3A+%22My+Compose+Service%22%2C%0A++++++++++++++%22service_id%22%3A+%2273%22%2C%0A++++++++++++++%22cloud_services%22%3A+%7B%22cloud_service%22%3A+++++++%5B%0A++++++++++++++++++++++++++%7B%0A++++++++++++++++++++%22custom_name%22%3A+%22My+Personal+TAI+Cloud%22%2C%0A++++++++++++++++++++%22service_id%22%3A+%2271%22%0A+++++++++++++++++%7D%2C%0A++++++++++++++++++++++++++%7B%0A++++++++++++++++++++%22custom_name%22%3A+%22My+Professional+TAI+Cloud%22%2C%0A++++++++++++++++++++%22service_id%22%3A+%2272%22%0A+++++++++++++++++%7D%2C%0A+++++++++++++++++null%0A++++++++++++++%5D%7D%0A+++++++++++%7D%2C%0A+++++++++++null%0A++++++++%5D%7D%7D'
   20     2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $2      
    3     4        ASSIGN                                                   !0, $2
   23     5        NEW                                              $4      'RecursiveIteratorIterator'
          6        NEW                                              $5      'RecursiveArrayIterator'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $5
         10        DO_FCALL                                      0          
         11      > FE_RESET_R                                       $8      $4, ->17
         12    > > FE_FETCH_R                                               $8, !1, ->17
   24    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   23    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $8
   25    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1395 KiB | 17 Q