3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.w3resource.com/php-exercises/php-basic-exercises.php'; $url=parse_url($url); echo 'Scheme : '.$url['scheme'].'<br />'; echo 'Host : '.$url['host'].'<br />'; echo 'Path : '.$url['path'].'<br />'; ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.znTJYqqx.dpuf
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IFuQ9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-basic-exercises.php'
    3     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        FETCH_DIM_R                                      ~4      !0, 'scheme'
          6        CONCAT                                           ~5      'Scheme+%3A+', ~4
          7        CONCAT                                           ~6      ~5, '%3Cbr+%2F%3E'
          8        ECHO                                                     ~6
    5     9        FETCH_DIM_R                                      ~7      !0, 'host'
         10        CONCAT                                           ~8      'Host+%3A+', ~7
         11        CONCAT                                           ~9      ~8, '%3Cbr+%2F%3E'
         12        ECHO                                                     ~9
    6    13        FETCH_DIM_R                                      ~10     !0, 'path'
         14        CONCAT                                           ~11     'Path+%3A+', ~10
         15        CONCAT                                           ~12     ~11, '%3Cbr+%2F%3E'
         16        ECHO                                                     ~12
    7    17        ECHO                                                     '+%0A-+See+more+at%3A+http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-basic-exercises.php%23sthash.znTJYqqx.dpuf'
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1395 KiB | 15 Q