3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://seos.bolseo.ru/index.php?module=2&siteID=235'; $parsed_url = parse_url($url); $path = preg_replace('#^index\.[a-z]+#', '', $parsed_url['path']); var_dump($path);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SP2M
function name:  (null)
number of ops:  16
compiled vars:  !0 = $url, !1 = $parsed_url, !2 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fseos.bolseo.ru%2Findex.php%3Fmodule%3D2%26siteID%3D235'
    4     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%23%5Eindex%5C.%5Ba-z%5D%2B%23'
          7        SEND_VAL                                                 ''
          8        FETCH_DIM_R                                      ~6      !1, 'path'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.13 ms | 1394 KiB | 19 Q