3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://username:password@hostname/path?arg=value#anchor'; list($host, , , , , , $port) = array_values(parse_url($url)); var_dump($host, $port);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8ZemC
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $host, !2 = $port
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fusername%3Apassword%40hostname%2Fpath%3Farg%3Dvalue%23anchor'
    3     1        INIT_FCALL                                               'array_values'
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        FETCH_LIST_R                                     $6      $5, 0
          8        ASSIGN                                                   !1, $6
          9        FETCH_LIST_R                                     $8      $5, 6
         10        ASSIGN                                                   !2, $8
         11        FREE                                                     $5
    4    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.4 ms | 1386 KiB | 19 Q