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; var_dump($host);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Do9Rr
function name:  (null)
number of ops:  16
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%28%5Ehttp%3A%2F%2F%5B.%2A%5D%2F%29%3F%28.%2A%29%40i'
    7     3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%40%5E%28%3F%3Ahttp%3A%2F%2F%29%3F%28%5B%5E%2F%5D%2B%29%40i'
   10     8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !1
         10        DO_ICALL                                                 
   12    11        ASSIGN                                                   !2, !1
   14    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:
201.43 ms | 1386 KiB | 17 Q