3v4l.org

run code in 300+ PHP versions simultaneously
<?php $media = (json_decode('{"headerImage":{"type":"image","src":"\/assets\/media\/images\/groups\/Small_RS_Visual_Performance_Top_Shot.jpg","alt":"Small Round & Square"},"heroImage":{"type":"image","src":"\/assets\/media\/images\/groups\/Small_RS_Visual_Performance_Hero.jpg","alt":"Small Round & Square"},"sharedSpecsImage":{"type":"image","src":"\/assets\/media\/images\/groups\/Small_Round_&_Square","alt":"Small Round & Square"},"bottomImage":{"type":"image","src":"\/assets\/media\/images\/groups\/VP_Install.jpg","alt":"Small Round & Square"}}')); $media->sliderImage->type = 'image'; $media->sliderImage->src = 'Small_RS_Icon.png'; $media->sliderImage->alt = 'Small round or square in-ceiling speakers to match the shape of down lights'; echo json_encode( $media );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aJcPo
function name:  (null)
number of ops:  18
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%2FSmall_RS_Visual_Performance_Top_Shot.jpg%22%2C%22alt%22%3A%22Small+Round+%26+Square%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%2FSmall_RS_Visual_Performance_Hero.jpg%22%2C%22alt%22%3A%22Small+Round+%26+Square%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%2FSmall_Round_%26_Square%22%2C%22alt%22%3A%22Small+Round+%26+Square%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%2FVP_Install.jpg%22%2C%22alt%22%3A%22Small+Round+%26+Square%22%7D%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        FETCH_OBJ_W                                      $3      !0, 'sliderImage'
          5        ASSIGN_OBJ                                               $3, 'type'
          6        OP_DATA                                                  'image'
    6     7        FETCH_OBJ_W                                      $5      !0, 'sliderImage'
          8        ASSIGN_OBJ                                               $5, 'src'
          9        OP_DATA                                                  'Small_RS_Icon.png'
    7    10        FETCH_OBJ_W                                      $7      !0, 'sliderImage'
         11        ASSIGN_OBJ                                               $7, 'alt'
         12        OP_DATA                                                  'Small+round+or+square+in-ceiling+speakers+to+match+the+shape+of+down+lights'
    9    13        INIT_FCALL                                               'json_encode'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.4 ms | 1395 KiB | 17 Q