3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'neon1024'; $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/vLMJg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $username, !1 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'neon1024'
   12     1        CONCAT                                           ~3      '%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', !0
          2        CONCAT                                           ~4      ~3, '%22%7D+%7D%0A++++++++++++++++++++++++++++++++%5D%0A++++++++++++++++++++++++++++%7D%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++%7D%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D'
    3     3        ASSIGN                                                   !1, ~4
   22     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.89 ms | 1394 KiB | 17 Q