3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://docs.google.com/presentation/d/1aa_xpsyJtslFJsg4UndsjDvlCe7Vu97_i6Q8zSKofy4/edit?usp=sharing'; $components = parse_url($url); echo $components['scheme'], '://', $components['host'], strstr($components['path'],'/edit',true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gPUvg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $url, !1 = $components
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1aa_xpsyJtslFJsg4UndsjDvlCe7Vu97_i6Q8zSKofy4%2Fedit%3Fusp%3Dsharing'
    3     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        FETCH_DIM_R                                      ~5      !1, 'scheme'
          6        ECHO                                                     ~5
          7        ECHO                                                     '%3A%2F%2F'
          8        FETCH_DIM_R                                      ~6      !1, 'host'
          9        ECHO                                                     ~6
         10        INIT_FCALL                                               'strstr'
         11        FETCH_DIM_R                                      ~7      !1, 'path'
         12        SEND_VAL                                                 ~7
         13        SEND_VAL                                                 '%2Fedit'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $8      
         16        ECHO                                                     $8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.62 ms | 1394 KiB | 17 Q