3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json = <<<_JSON { "status": "success", "id": "some_id_here", "denormalized": { "some_url_here": { "data": { "created": "2019-01-10T04:19:21Z", "registered": 1547093961, "gender": "f", "display_name": "", "age": 23, "country": "US", "state": "NY" } } } } _JSON; $response = json_decode($json, true); foreach ($response['denormalized'] as $url => $value) { $data = $value['data']; $created = $data['created']; $registered = $data['registered']; echo 'url: ', $url, ' created: ', $created, ' registered: ', $registered; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/AtXCQ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $json, !1 = $response, !2 = $value, !3 = $url, !4 = $data, !5 = $created, !6 = $registered
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%7B%0A%22status%22%3A+%22success%22%2C%0A%22id%22%3A+%22some_id_here%22%2C%0A%22denormalized%22%3A+%7B%0A++++%22some_url_here%22%3A+%7B%0A++++++++%22data%22%3A+%7B%0A++++++++++++%22created%22%3A+%222019-01-10T04%3A19%3A21Z%22%2C%0A++++++++++++%22registered%22%3A+1547093961%2C%0A++++++++++++%22gender%22%3A+%22f%22%2C%0A++++++++++++%22display_name%22%3A+%22%22%2C%0A++++++++++++%22age%22%3A+23%2C%0A++++++++++++%22country%22%3A+%22US%22%2C%0A++++++++++++%22state%22%3A+%22NY%22%0A++++++++%7D%0A++++%7D%0A%7D%0A%7D'
   23     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $8      
          5        ASSIGN                                                       !1, $8
   25     6        FETCH_DIM_R                                          ~10     !1, 'denormalized'
          7      > FE_RESET_R                                           $11     ~10, ->23
          8    > > FE_FETCH_R                                           ~12     $11, !2, ->23
          9    >   ASSIGN                                                       !3, ~12
   26    10        FETCH_DIM_R                                          ~14     !2, 'data'
         11        ASSIGN                                                       !4, ~14
   28    12        FETCH_DIM_R                                          ~16     !4, 'created'
         13        ASSIGN                                                       !5, ~16
   29    14        FETCH_DIM_R                                          ~18     !4, 'registered'
         15        ASSIGN                                                       !6, ~18
   31    16        ECHO                                                         'url%3A+'
         17        ECHO                                                         !3
         18        ECHO                                                         '+created%3A+'
         19        ECHO                                                         !5
         20        ECHO                                                         '+registered%3A+'
         21        ECHO                                                         !6
   25    22      > JMP                                                          ->8
         23    >   FE_FREE                                                      $11
   32    24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
131.53 ms | 480 KiB | 8 Q