3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.81 ms | 1394 KiB | 17 Q