3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res= json_decode('{ "sorters": [ { "name": "id", "type": "ASC" } ], "fields": [ "id" ] }'); $url = urldecode(http_build_query($res)); print ($url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1j2bg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $res, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%0A++%22sorters%22%3A+%5B%0A++++%7B%0A++++++%22name%22%3A+%22id%22%2C%0A++++++%22type%22%3A+%22ASC%22%0A++++%7D%0A++%5D%2C%0A++%22fields%22%3A+%5B%0A++++%22id%22%0A++%5D%0A%7D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
   13     4        INIT_FCALL                                               'urldecode'
          5        INIT_FCALL                                               'http_build_query'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
   14    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.46 ms | 1385 KiB | 19 Q