3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"multicast_id":123456,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}'; $b = json_decode($json); print_r($b); var_dump($b["results"]); ?>
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [multicast_id] => 123456 [success] => 0 [failure] => 1 [canonical_ids] => 0 [results] => Array ( [0] => stdClass Object ( [error] => InvalidRegistration ) ) ) Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/Q3tO6:5 Stack trace: #0 {main} thrown in /in/Q3tO6 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:
31.5 ms | 401 KiB | 8 Q