3v4l.org

run code in 300+ PHP versions simultaneously
<?php $referer = 'http://chameleon.online.dev/documents/orders/'; // Извлекаем имя хоста из URL preg_match('@^(http://[*]/)@i', $referer, $matches); $host = $matches[1]; var_dump($host);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ilqg5
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'
    6     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%40%5E%28http%3A%2F%2F%5B%2A%5D%2F%29%40i'
    7     3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    9     6        FETCH_DIM_R                                      ~5      !1, 1
          7        ASSIGN                                                   !2, ~5
   11     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:
159.71 ms | 934 KiB | 18 Q