3v4l.org

run code in 300+ PHP versions simultaneously
<?php $media = (json_decode('{"headerImage":{"type":"image","src":"\/assets\/media\/images\/groups\/In-Wall_NC_Subwoofers_Top_Shot.jpg","alt":"In-Wall New Construction Subwoofer"},"heroImage":{"type":"image","src":"\/assets\/media\/images\/groups\/IN-Wall_NC_Subwoofers.jpg","alt":"In-Wall New Construction Subwoofer"},"sharedSpecsImage":{"type":"image","src":"\/assets\/media\/images\/groups\/In-Wall_New_Construction","alt":"In-Wall New Construction Subwoofer"},"bottomImage":{"type":"image","src":"\/assets\/media\/images\/groups\/VP_SUB_Install.jpg","alt":"In-Wall New Construction Subwoofer"}} ')); $media->sliderImage = [ 'type' => 'image', 'src' => 'New_Construction_Icon.png', 'alt' => 'In-wall subwoofer with integrated cabinet for new construction' ]; echo json_encode( $media );

preferences:
59.81 ms | 402 KiB | 5 Q