3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = 'https://www.youtube.com/embed/ROipDjNYK4k?rel=#rel=mangledFragment'; $url_arr = parse_url($url); $query = $url_arr['query']; print $url = str_replace(array($query,'?'), '', $url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ERr4V
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url, !1 = $url_arr, !2 = $query
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'https%3A%2F%2Fwww.youtube.com%2Fembed%2FROipDjNYK4k%3Frel%3D%23rel%3DmangledFragment'
    5     1        INIT_FCALL                                                   'parse_url'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
    6     5        FETCH_DIM_R                                          ~6      !1, 'query'
          6        ASSIGN                                                       !2, ~6
    7     7        INIT_ARRAY                                           ~8      !2
          8        ADD_ARRAY_ELEMENT                                    ~8      '%3F'
          9        FRAMELESS_ICALL_3                str_replace         ~9      ~8, ''
         10        OP_DATA                                                      !0
         11        ASSIGN                                               ~10     !0, ~9
         12        ECHO                                                         ~10
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.65 ms | 2105 KiB | 16 Q