3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsndata = '{ "success":true, "data":"{\"campaign_name\":\"helloworld\",\"download_link\":\"https:\\\/\\\/google.com\\\/accesskey\\\/getfile\\\/m-spqn-e61-2aef2575a0b5250354f2b0fda033e703?token=HUSYjdC5jyJskXUHiKn13l1A1BaAjH2R&dcma=5ecceb0522bcd0db\",\"link\":\"http:\\\/\\\/www.lol.com\\\/remove\\\/remove.php\"}", "message":null }'; // Decode the main json object $jsn = json_decode($jsndata,true); // Since 'data' is another serialized object, you need to decode that as well: $data = json_decode($jsn['data'], true); // Now you can access the contents of 'data' echo $data['download_link'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1PcQp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $jsndata, !1 = $jsn, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A+++%22success%22%3Atrue%2C%0A++++%22data%22%3A%22%7B%5C%22campaign_name%5C%22%3A%5C%22helloworld%5C%22%2C%5C%22download_link%5C%22%3A%5C%22https%3A%5C%5C%2F%5C%5C%2Fgoogle.com%5C%5C%2Faccesskey%5C%5C%2Fgetfile%5C%5C%2Fm-spqn-e61-2aef2575a0b5250354f2b0fda033e703%3Ftoken%3DHUSYjdC5jyJskXUHiKn13l1A1BaAjH2R%26dcma%3D5ecceb0522bcd0db%5C%22%2C%5C%22link%5C%22%3A%5C%22http%3A%5C%5C%2F%5C%5C%2Fwww.lol.com%5C%5C%2Fremove%5C%5C%2Fremove.php%5C%22%7D%22%2C%0A++++%22message%22%3Anull%0A%7D'
    9     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   12     6        INIT_FCALL                                               'json_decode'
          7        FETCH_DIM_R                                      ~6      !1, 'data'
          8        SEND_VAL                                                 ~6
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
   15    12        FETCH_DIM_R                                      ~9      !2, 'download_link'
         13        ECHO                                                     ~9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.21 ms | 1436 KiB | 14 Q