3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain'); $url = 'http://user:pass@www.example.com'; $rel = '/?query=string#fragment'; var_dump(parse_url($rel), parse_url($url . $rel));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lpZGI
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $rel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 'http%3A%2F%2Fuser%3Apass%40www.example.com'
    4     4        ASSIGN                                                   !1, '%2F%3Fquery%3Dstring%23fragment'
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'parse_url'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        INIT_FCALL                                               'parse_url'
         11        CONCAT                                           ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.67 ms | 1386 KiB | 19 Q