3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.example.com/?affid=12345'; $query = parse_url($url, PHP_URL_QUERY); parse_str($query, $vars); var_dump($vars); echo $vars['affid']; // outputs 12345
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q2gvg
function name:  (null)
number of ops:  16
compiled vars:  !0 = $url, !1 = $query, !2 = $vars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.example.com%2F%3Faffid%3D12345'
    5     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 6
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    7     6        INIT_FCALL                                               'parse_str'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
         10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    8    13        FETCH_DIM_R                                      ~8      !2, 'affid'
         14        ECHO                                                     ~8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.5 ms | 1394 KiB | 19 Q