3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://username:password@hostname:9090/path?arg=value#anchor'; print_r(parse_url($url)); print_r(parse_url($url, PHP_URL_PATH))."<br>"; print_r(parse_url($url, PHP_URL_SCHEME))."<br>"; print_r(parse_url($url, PHP_URL_HOST))."<br>"; print_r(parse_url($url, PHP_URL_PORT))."<br>"; print_r(parse_url($url, PHP_URL_USER))."<br>"; print_r(parse_url($url, PHP_URL_PASS))."<br>"; print_r(parse_url($url, PHP_URL_QUERY))."<br>"; print_r(parse_url($url, PHP_URL_FRAGMENT))."<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S418A
function name:  (null)
number of ops:  80
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fusername%3Apassword%40hostname%3A9090%2Fpath%3Farg%3Dvalue%23anchor'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'parse_url'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 5
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      $5, '%3Cbr%3E'
         15        FREE                                                     ~6
    6    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'parse_url'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 0
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                         $8      
         23        CONCAT                                           ~9      $8, '%3Cbr%3E'
         24        FREE                                                     ~9
    7    25        INIT_FCALL                                               'print_r'
         26        INIT_FCALL                                               'parse_url'
         27        SEND_VAR                                                 !0
         28        SEND_VAL                                                 1
         29        DO_ICALL                                         $10     
         30        SEND_VAR                                                 $10
         31        DO_ICALL                                         $11     
         32        CONCAT                                           ~12     $11, '%3Cbr%3E'
         33        FREE                                                     ~12
    8    34        INIT_FCALL                                               'print_r'
         35        INIT_FCALL                                               'parse_url'
         36        SEND_VAR                                                 !0
         37        SEND_VAL                                                 2
         38        DO_ICALL                                         $13     
         39        SEND_VAR                                                 $13
         40        DO_ICALL                                         $14     
         41        CONCAT                                           ~15     $14, '%3Cbr%3E'
         42        FREE                                                     ~15
    9    43        INIT_FCALL                                               'print_r'
         44        INIT_FCALL                                               'parse_url'
         45        SEND_VAR                                                 !0
         46        SEND_VAL                                                 3
         47        DO_ICALL                                         $16     
         48        SEND_VAR                                                 $16
         49        DO_ICALL                                         $17     
         50        CONCAT                                           ~18     $17, '%3Cbr%3E'
         51        FREE                                                     ~18
   10    52        INIT_FCALL                                               'print_r'
         53        INIT_FCALL                                               'parse_url'
         54        SEND_VAR                                                 !0
         55        SEND_VAL                                                 4
         56        DO_ICALL                                         $19     
         57        SEND_VAR                                                 $19
         58        DO_ICALL                                         $20     
         59        CONCAT                                           ~21     $20, '%3Cbr%3E'
         60        FREE                                                     ~21
   11    61        INIT_FCALL                                               'print_r'
         62        INIT_FCALL                                               'parse_url'
         63        SEND_VAR                                                 !0
         64        SEND_VAL                                                 6
         65        DO_ICALL                                         $22     
         66        SEND_VAR                                                 $22
         67        DO_ICALL                                         $23     
         68        CONCAT                                           ~24     $23, '%3Cbr%3E'
         69        FREE                                                     ~24
   12    70        INIT_FCALL                                               'print_r'
         71        INIT_FCALL                                               'parse_url'
         72        SEND_VAR                                                 !0
         73        SEND_VAL                                                 7
         74        DO_ICALL                                         $25     
         75        SEND_VAR                                                 $25
         76        DO_ICALL                                         $26     
         77        CONCAT                                           ~27     $26, '%3Cbr%3E'
         78        FREE                                                     ~27
         79      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.78 ms | 1400 KiB | 17 Q