3v4l.org

run code in 300+ PHP versions simultaneously
<?php $site = "http://hollandshielding.com/"; $url = parse_url($site); $hasSubdomain = preg_match('/(\w)\.(\w)\.(\w)/', $url['host']); var_dump($subdomain);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JGM5C
function name:  (null)
number of ops:  15
compiled vars:  !0 = $site, !1 = $url, !2 = $hasSubdomain, !3 = $subdomain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fhollandshielding.com%2F'
    3     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%28%5Cw%29%5C.%28%5Cw%29%5C.%28%5Cw%29%2F'
          7        FETCH_DIM_R                                      ~7      !1, 'host'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.73 ms | 1394 KiB | 19 Q