3v4l.org

run code in 500+ 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:  13
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        FRAMELESS_ICALL_3                str_replace         ~3      <array>, ''
          4        OP_DATA                                                      !0
          5        SEND_VAL                                                     ~3
          6        DO_ICALL                                             $4      
          7        FETCH_DIM_R                                          ~5      $4, 0
          8        ASSIGN                                                       !1, ~5
    6     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.31 ms | 1940 KiB | 17 Q