3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data= '{ "pid": "81", "fname": "Parth", "lname": "Tandel", "pfname": "Parth", "plname": "Tandel", "userprofilephoto": "/Images/ProfilePictures/18/DSC_0164.JPG", "parentprofilephoto": "/Images/ProfilePictures/18/DSC_0164.JPG", "type": "ALBUM", "likescount": "1", "commentscount": "1", "sharecount": "0", "sharepid": null, "uaid": "18", "ownerid": "18", "parentid": null, "title": "newalbum2", "description": "", "sharedescription": null, "imagepath": null, "previewurl": null, "previewtitle": null, "previewshortdescription": null, "previewimageurl": null, "createdon": "2017-05-29 15:44:04", "posttype": "5", "comments": [ { "pcid": "21", "uaid": "31", "comment": "this is dope", "fname": "maulik", "lname": "kanani", "profPicturepath": "https://www.gravatar.com/avatar/003dbb32079ee5ff19ed75476f562bd1", "createdon": "2017-06-15 23:50:36" } ], "albumimages": [ { "imagepath": "/Images/18/Albums/newalbum2/Screenshot_from_2017-06-12_15-11-36.png" }, { "imagepath": "/Images/18/Albums/newalbum2/Screenshot_from_2017-06-12_15-11-361.png" }, { "imagepath": "/Images/18/Albums/newalbum2/Screenshot_from_2017-06-12_15-11-363.png" }, { "imagepath": "/Images/18/Albums/newalbum2/Screenshot_from_2017-06-12_15-11-364.png" }, { "imagepath": "/Images/18/Albums/newalbum2/Screenshot_from_2017-06-12_15-11-365.png" } ] }'; $data = json_decode($data, true); foreach($data["albumimages"] as $val){ echo $val["imagepath"] ."\n\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/9rRSF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++++++++++++++%22pid%22%3A+%2281%22%2C%0A++++++++++++++++%22fname%22%3A+%22Parth%22%2C%0A++++++++++++++++%22lname%22%3A+%22Tandel%22%2C%0A++++++++++++++++%22pfname%22%3A+%22Parth%22%2C%0A++++++++++++++++%22plname%22%3A+%22Tandel%22%2C%0A++++++++++++++++%22userprofilephoto%22%3A+%22%2FImages%2FProfilePictures%2F18%2FDSC_0164.JPG%22%2C%0A++++++++++++++++%22parentprofilephoto%22%3A+%22%2FImages%2FProfilePictures%2F18%2FDSC_0164.JPG%22%2C%0A++++++++++++++++%22type%22%3A+%22ALBUM%22%2C%0A++++++++++++++++%22likescount%22%3A+%221%22%2C%0A++++++++++++++++%22commentscount%22%3A+%221%22%2C%0A++++++++++++++++%22sharecount%22%3A+%220%22%2C%0A++++++++++++++++%22sharepid%22%3A+null%2C%0A++++++++++++++++%22uaid%22%3A+%2218%22%2C%0A++++++++++++++++%22ownerid%22%3A+%2218%22%2C%0A++++++++++++++++%22parentid%22%3A+null%2C%0A++++++++++++++++%22title%22%3A+%22newalbum2%22%2C%0A++++++++++++++++%22description%22%3A+%22%22%2C%0A++++++++++++++++%22sharedescription%22%3A+null%2C%0A++++++++++++++++%22imagepath%22%3A+null%2C%0A++++++++++++++++%22previewurl%22%3A+null%2C%0A++++++++++++++++%22previewtitle%22%3A+null%2C%0A++++++++++++++++%22previewshortdescription%22%3A+null%2C%0A++++++++++++++++%22previewimageurl%22%3A+null%2C%0A++++++++++++++++%22createdon%22%3A+%222017-05-29+15%3A44%3A04%22%2C%0A++++++++++++++++%22posttype%22%3A+%225%22%2C%0A++++++++++++++++%22comments%22%3A+%5B%0A++++++++++++++++++++%7B%0A++++++++++++++++++++++++%22pcid%22%3A+%2221%22%2C%0A++++++++++++++++++++++++%22uaid%22%3A+%2231%22%2C%0A++++++++++++++++++++++++%22comment%22%3A+%22this+is+dope%22%2C%0A++++++++++++++++++++++++%22fname%22%3A+%22maulik%22%2C%0A++++++++++++++++++++++++%22lname%22%3A+%22kanani%22%2C%0A++++++++++++++++++++++++%22profPicturepath%22%3A+%22https%3A%2F%2Fwww.gravatar.com%2Favatar%2F003dbb32079ee5ff19ed75476f562bd1%22%2C%0A++++++++++++++++++++++++%22createdon%22%3A+%222017-06-15+23%3A50%3A36%22%0A++++++++++++++++++++%7D%0A++++++++++++++++%5D%2C%0A++++++++++++++++%22albumimages%22%3A+%5B%0A++++++++++++++++++++%7B%0A++++++++++++++++++++++++%22imagepath%22%3A+%22%2FImages%2F18%2FAlbums%2Fnewalbum2%2FScreenshot_from_2017-06-12_15-11-36.png%22%0A++++++++++++++++++++%7D%2C%0A++++++++++++++++++++%7B%0A++++++++++++++++++++++++%22imagepath%22%3A+%22%2FImages%2F18%2FAlbums%2Fnewalbum2%2FScreenshot_from_2017-06-12_15-11-361.png%22%0A++++++++++++++++++++%7D%2C%0A++++++++++++++++++++%7B%0A++++++++++++++++++++++++%22imagepath%22%3A+%22%2FImages%2F18%2FAlbums%2Fnewalbum2%2FScreenshot_from_2017-06-12_15-11-363.png%22%0A++++++++++++++++++++%7D%2C%0A++++++++++++++++++++%7B%0A++++++++++++++++++++++++%22imagepath%22%3A+%22%2FImages%2F18%2FAlbums%2Fnewalbum2%2FScreenshot_from_2017-06-12_15-11-364.png%22%0A++++++++++++++++++++%7D%2C%0A++++++++++++++++++++%7B%0A++++++++++++++++++++++++%22imagepath%22%3A+%22%2FImages%2F18%2FAlbums%2Fnewalbum2%2FScreenshot_from_2017-06-12_15-11-365.png%22%0A++++++++++++++++++++%7D%0A++++++++++++++++%5D%0A++++++++++++%7D'
   59     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
   60     6        FETCH_DIM_R                                      ~5      !0, 'albumimages'
          7      > FE_RESET_R                                       $6      ~5, ->13
          8    > > FE_FETCH_R                                               $6, !1, ->13
   61     9    >   FETCH_DIM_R                                      ~7      !1, 'imagepath'
         10        CONCAT                                           ~8      ~7, '%0A%0A'
         11        ECHO                                                     ~8
   60    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $6
   62    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.48 ms | 1007 KiB | 14 Q