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'].'<p>'; echo 'host: '.$url['host'].'<p>'; echo 'Path: '.$url['path'].'<p>'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vLut3
function name:  (null)
number of ops:  18
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'
    4     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    6     5        FETCH_DIM_R                                      ~4      !0, 'scheme'
          6        CONCAT                                           ~5      'scheme%3A+', ~4
          7        CONCAT                                           ~6      ~5, '%3Cp%3E'
          8        ECHO                                                     ~6
    8     9        FETCH_DIM_R                                      ~7      !0, 'host'
         10        CONCAT                                           ~8      'host%3A+', ~7
         11        CONCAT                                           ~9      ~8, '%3Cp%3E'
         12        ECHO                                                     ~9
   10    13        FETCH_DIM_R                                      ~10     !0, 'path'
         14        CONCAT                                           ~11     'Path%3A+', ~10
         15        CONCAT                                           ~12     ~11, '%3Cp%3E'
         16        ECHO                                                     ~12
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.92 ms | 1394 KiB | 15 Q