3v4l.org

run code in 300+ PHP versions simultaneously
<?php $referer = 'http://chameleon.online.dev/documents/orders/'; // Извлекаем имя хоста из URL //preg_match('@^(^http://[.*]/)?(.*)@i', // $referer, $matches); preg_match('@^(?:http://)?([^/]+)@i', $referer, $matches); $host = $matches[0]; var_dump($host);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sh57D
function name:  (null)
number of ops:  12
compiled vars:  !0 = $referer, !1 = $matches, !2 = $host
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fchameleon.online.dev%2Fdocuments%2Forders%2F'
    9     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%40%5E%28%3F%3Ahttp%3A%2F%2F%29%3F%28%5B%5E%2F%5D%2B%29%40i'
   10     3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   12     6        FETCH_DIM_R                                      ~5      !1, 0
          7        ASSIGN                                                   !2, ~5
   14     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.07 ms | 1394 KiB | 17 Q