3v4l.org

run code in 300+ PHP versions simultaneously
<?php $media = (json_decode('{"headerImage":{"type":"image","src":"\/assets\/media\/images\/groups\/Sub_SLS_Top_Shot.jpg","alt":"Subwoofers"},"heroImage":{"type":"image","src":"\/assets\/media\/images\/groups\/Subwoofer_SLS_Hero.jpg","alt":"Subwoofers"},"sharedSpecsImage":{"type":"image","src":"\/assets\/media\/images\/groups\/Subs","alt":"Subwoofers"},"bottomImage":{"type":"image","src":"\/assets\/media\/images\/groups\/SLS_Install.jpg","alt":"Subwoofers"},"sliderImage":{"type":"image","src":"Subwoofer_Icon.png","alt":"High performance in-wall subwoofers for serious bass"}} ')); $media->sliderImage = [ 'type' => 'image', 'src' => 'Sub_Icon.png', 'alt' => 'Below-ground and hardscape subwoofers' ]; echo json_encode( $media );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEUen
function name:  (null)
number of ops:  11
compiled vars:  !0 = $media
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22headerImage%22%3A%7B%22type%22%3A%22image%22%2C%22src%22%3A%22%5C%2Fassets%5C%2Fmedia%5C%2Fimages%5C%2Fgroups%5C%2FSub_SLS_Top_Shot.jpg%22%2C%22alt%22%3A%22Subwoofers%22%7D%2C%22heroImage%22%3A%7B%22type%22%3A%22image%22%2C%22src%22%3A%22%5C%2Fassets%5C%2Fmedia%5C%2Fimages%5C%2Fgroups%5C%2FSubwoofer_SLS_Hero.jpg%22%2C%22alt%22%3A%22Subwoofers%22%7D%2C%22sharedSpecsImage%22%3A%7B%22type%22%3A%22image%22%2C%22src%22%3A%22%5C%2Fassets%5C%2Fmedia%5C%2Fimages%5C%2Fgroups%5C%2FSubs%22%2C%22alt%22%3A%22Subwoofers%22%7D%2C%22bottomImage%22%3A%7B%22type%22%3A%22image%22%2C%22src%22%3A%22%5C%2Fassets%5C%2Fmedia%5C%2Fimages%5C%2Fgroups%5C%2FSLS_Install.jpg%22%2C%22alt%22%3A%22Subwoofers%22%7D%2C%22sliderImage%22%3A%7B%22type%22%3A%22image%22%2C%22src%22%3A%22Subwoofer_Icon.png%22%2C%22alt%22%3A%22High+performance+in-wall+subwoofers+for+serious+bass%22%7D%7D%0A'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    6     4        ASSIGN_OBJ                                               !0, 'sliderImage'
    7     5        OP_DATA                                                  <array>
   12     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150 ms | 1386 KiB | 17 Q