3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "/home/domaincom/public_html/account/assets"; $parts = explode('/', $url); $domain = $parts[2]; echo $domain; // domaincom
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hNbRB
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url, !1 = $parts, !2 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fhome%2Fdomaincom%2Fpublic_html%2Faccount%2Fassets'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        FETCH_DIM_R                                      ~6      !1, 2
          7        ASSIGN                                                   !2, ~6
    6     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.62 ms | 998 KiB | 14 Q