3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.example.com/?affid=12345'; $query = parse_url($url, PHP_URL_QUERY); $vars = parse_str($query, $vars); echo $vars['affid']; // outputs 12345
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7iJfR
function name:  (null)
number of ops:  14
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
    6     6        INIT_FCALL                                               'parse_str'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    7    11        FETCH_DIM_R                                      ~8      !2, 'affid'
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.5 ms | 1394 KiB | 17 Q