3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = 'https://www.youtube.com/embed/ROipDjNYK4k?rel=0&autoplay=1'; echo str_replace('?' . parse_url($url, PHP_URL_QUERY), '', $url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RE0GD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'https%3A%2F%2Fwww.youtube.com%2Fembed%2FROipDjNYK4k%3Frel%3D0%26autoplay%3D1'
    4     1        INIT_FCALL                                                   'parse_url'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     6
          4        DO_ICALL                                             $2      
          5        CONCAT                                               ~3      '%3F', $2
          6        FRAMELESS_ICALL_3                str_replace         ~4      ~3, ''
          7        OP_DATA                                                      !0
          8        ECHO                                                         ~4
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.98 ms | 2101 KiB | 16 Q