3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = $_SERVER['HTTP_HOST']; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); echo "domain name is: {$matches[0]}\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DtCBk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $host, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~2      '_SERVER'
          1        FETCH_DIM_R                                      ~3      ~2, 'HTTP_HOST'
          2        ASSIGN                                                   !0, ~3
    3     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5B%5E%5C.%5C%2F%5D%2B%5C.%5B%5E%5C.%5C%2F%5D%2B%24%2F'
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    4     8        ROPE_INIT                                     3  ~8      'domain+name+is%3A+'
          9        FETCH_DIM_R                                      ~6      !1, 0
         10        ROPE_ADD                                      1  ~8      ~8, ~6
         11        ROPE_END                                      2  ~7      ~8, '%0A'
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1398 KiB | 15 Q