3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'www.example.com'; $domain = explode('.',str_replace(['http://','https://'],'',$url))[0]; var_dump($domain);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlsDQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $url, !1 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'www.example.com'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        FETCH_DIM_R                                      ~5      $4, 0
         11        ASSIGN                                                   !1, ~5
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
262.09 ms | 1011 KiB | 16 Q