3v4l.org

run code in 300+ PHP versions simultaneously
<?php $media = (json_decode('{"sliderImage":{"type":"image","src":"","alt":""},"headerImage":{"type":"image","src":"\/assets\/media\/images\/groups\/1230-Rack_Mount_Amplifiers_Top_Shot.jpg","alt":"Sonamp 1230"},"heroImage":{"type":"image","src":"\/assets\/media\/images\/groups\/1230-Rack_Mount_Amps_Hero.jpg","alt":"Sonamp 1230"},"sharedSpecsImage":{"type":"image","src":"\/assets\/media\/images\/groups\/_1230_RMF","alt":"Sonamp 1230"},"bottomImage":{"type":"image","src":"\/assets\/media\/images\/groups\/","alt":"Sonamp 1230"}}')); $media->sliderImage['type'] = 'image'; $media->sliderImage['src'] = 'test'; $media->sliderImage['alt'] = 'alt'; echo json_encode( $media );
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/gd71V:5 Stack trace: #0 {main} thrown in /in/gd71V on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
33.44 ms | 401 KiB | 8 Q