3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' {"twitter": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]} ], "facebook": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "youtube": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "flickr": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "twitter": []}'; $args = json_decode($json); if(empty($args->shit)) { echo "empty"; } if(empty($args->flickr)) { echo "empty"; } foreach($args->flickr as $arg) { print_r($arg); print_r($arg->identifier); }
Output for git.master, git.master_jit, rfc.property-hooks
emptystdClass Object ( [identifier] => 1 [title] => hello [tags] => Array ( [0] => a [1] => b [2] => c ) [cats] => Array ( [0] => a [1] => b [2] => c ) ) 1stdClass Object ( [identifier] => 2 [title] => semblance [tags] => Array ( [0] => a [1] => b [2] => c ) [cats] => Array ( [0] => a [1] => b [2] => c ) ) 2

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