3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $url = 'https://localhost/api?field.filter=foo'; // Parse the URL. $parsed = parse_url($url); // Parse the query string. parse_str($parsed['query'], $parsed['query']); print_r($parsed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/diaBU
function name:  (null)
number of ops:  15
compiled vars:  !0 = $url, !1 = $parsed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Flocalhost%2Fapi%3Ffield.filter%3Dfoo'
    8     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   11     5        INIT_FCALL                                               'parse_str'
          6        FETCH_DIM_R                                      ~5      !1, 'query'
          7        SEND_VAL                                                 ~5
          8        FETCH_DIM_W                                      $6      !1, 'query'
          9        SEND_REF                                                 $6
         10        DO_ICALL                                                 
   13    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.18 ms | 1394 KiB | 19 Q