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));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6OhM5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $query, !1 = $username
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   CONCAT                                           ~2      '%7B%0A++++++++%22query%22%3A+%7B%0A++++++++++++%22filtered%22%3A+%7B%0A++++++++++++++++%22filter%22%3A+%7B%0A++++++++++++++++++++%22nested%22%3A+%7B%0A++++++++++++++++++++++++%22path%22%3A+%22leagues_users%22%2C%0A++++++++++++++++++++++++%22query%22%3A+%7B%0A++++++++++++++++++++++++++++%22bool%22%3A+%7B%0A++++++++++++++++++++++++++++++++%22must%22%3A+%5B%0A++++++++++++++++++++++++++++++++++++%7B+%22match%22%3A+%7B%22leagues_users.user.username%22%3A+%22', !1
          1        CONCAT                                           ~3      ~2, '%22%7D+%7D%0A++++++++++++++++++++++++++++++++%5D%0A++++++++++++++++++++++++++++%7D%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++%7D%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D'
    3     2        ASSIGN                                                   !0, ~3
   22     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.55 ms | 1394 KiB | 17 Q