3v4l.org

run code in 300+ PHP versions simultaneously
<?php $getfile='{ "playlist": [ { "title": "Test title", "title_bg": "link/to/image.png", "link": "https://www.google.com", "description": "This is a test JSON Object" } ] }'; $jsonfile = json_decode($getfile); print_r($jsonfile);?> <table align="center"> <tr> <th>Title</th> <th>Background Image</th> <th>Video URL (Link to Video)</th> <th>Description of Video</th> </tr> <tr> <?php foreach ($jsonfile->playlist as $obj) { echo '<td>' . $obj->title . '</td>'; echo '<td>' . $obj->title_bg . '</td>'; echo '<td>' . $obj->link . '</td>'; echo '<td>' . $obj->description . '</td>'; } ?> </tr> </table>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 29
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/BpPc1
function name:  (null)
number of ops:  32
compiled vars:  !0 = $getfile, !1 = $jsonfile, !2 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++%22playlist%22%3A+%5B%0A++++%7B%0A++++++%22title%22%3A+%22Test+title%22%2C%0A++++++%22title_bg%22%3A+%22link%2Fto%2Fimage.png%22%2C%0A++++++%22link%22%3A+%22https%3A%2F%2Fwww.google.com%22%2C%0A++++++%22description%22%3A+%22This+is+a+test+JSON+Object%22%0A++++%7D%0A++%5D%0A%7D'
   13     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   14     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   15     8        ECHO                                                     '+%3Ctable+align%3D%22center%22%3E%0A%3Ctr%3E%0A++%3Cth%3ETitle%3C%2Fth%3E%0A++%3Cth%3EBackground+Image%3C%2Fth%3E%0A++%3Cth%3EVideo+URL+%28Link+to+Video%29%3C%2Fth%3E%0A++%3Cth%3EDescription+of+Video%3C%2Fth%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A++'
   24     9        FETCH_OBJ_R                                      ~7      !1, 'playlist'
         10      > FE_RESET_R                                       $8      ~7, ->29
         11    > > FE_FETCH_R                                               $8, !2, ->29
   25    12    >   FETCH_OBJ_R                                      ~9      !2, 'title'
         13        CONCAT                                           ~10     '%3Ctd%3E', ~9
         14        CONCAT                                           ~11     ~10, '%3C%2Ftd%3E'
         15        ECHO                                                     ~11
   26    16        FETCH_OBJ_R                                      ~12     !2, 'title_bg'
         17        CONCAT                                           ~13     '%3Ctd%3E', ~12
         18        CONCAT                                           ~14     ~13, '%3C%2Ftd%3E'
         19        ECHO                                                     ~14
   27    20        FETCH_OBJ_R                                      ~15     !2, 'link'
         21        CONCAT                                           ~16     '%3Ctd%3E', ~15
         22        CONCAT                                           ~17     ~16, '%3C%2Ftd%3E'
         23        ECHO                                                     ~17
   28    24        FETCH_OBJ_R                                      ~18     !2, 'description'
         25        CONCAT                                           ~19     '%3Ctd%3E', ~18
         26        CONCAT                                           ~20     ~19, '%3C%2Ftd%3E'
         27        ECHO                                                     ~20
   24    28      > JMP                                                      ->11
         29    >   FE_FREE                                                  $8
   31    30        ECHO                                                     '++%3C%2Ftr%3E%0A%3C%2Ftable%3E'
   32    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.14 ms | 1396 KiB | 17 Q