3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]} ]'; $args = json_decode($json); foreach($args as $arg) { print_r($arg); print_r($arg->a); }
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [identifier] => 1 [title] => hello [tags] => Array ( [0] => a [1] => b [2] => c ) [cats] => Array ( [0] => a [1] => b [2] => c ) ) Warning: Undefined property: stdClass::$a in /in/8Dr2U on line 13 stdClass Object ( [identifier] => 2 [title] => semblance [tags] => Array ( [0] => a [1] => b [2] => c ) [cats] => Array ( [0] => a [1] => b [2] => c ) ) Warning: Undefined property: stdClass::$a in /in/8Dr2U on line 13

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:
45.44 ms | 402 KiB | 8 Q