3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = 'https://www.youtube.com/watch?v=udm5jUA-2bs '; $parse = parse_url($url); print_r($parse); echo explode('.',$parse['host'])[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kG1nD
function name:  (null)
number of ops:  16
compiled vars:  !0 = $url, !1 = $parse
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dudm5jUA-2bs+'
    4     1        INIT_FCALL                                                   'parse_url'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    5     5        INIT_FCALL                                                   'print_r'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                                     
    6     8        INIT_FCALL                                                   'explode'
          9        SEND_VAL                                                     '.'
         10        FETCH_DIM_R                                          ~6      !1, 'host'
         11        SEND_VAL                                                     ~6
         12        DO_ICALL                                             $7      
         13        FETCH_DIM_R                                          ~8      $7, 1
         14        ECHO                                                         ~8
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.9 ms | 2131 KiB | 16 Q