3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = '{ "query": { "filtered": { "filter": { "nested": { "path": "leagues_users", "query": { "bool": { "must": [ { "match": {"leagues_users.user.username": "' . $username . '"} } ] } } } } } } }'; var_dump(json_decode($query));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $username in /in/6OhM5 on line 12 object(stdClass)#9 (1) { ["query"]=> object(stdClass)#8 (1) { ["filtered"]=> object(stdClass)#7 (1) { ["filter"]=> object(stdClass)#6 (1) { ["nested"]=> object(stdClass)#1 (2) { ["path"]=> string(13) "leagues_users" ["query"]=> object(stdClass)#5 (1) { ["bool"]=> object(stdClass)#4 (1) { ["must"]=> array(1) { [0]=> object(stdClass)#3 (1) { ["match"]=> object(stdClass)#2 (1) { ["leagues_users.user.username"]=> string(0) "" } } } } } } } } } }

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