3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://lh4.googleusercontent.com/-vi8qjz0rz4o/AAAAAAAAAAI/AAAAAAAAaz4/vTzzYBQSL5M/photo.jpg?sz=200"; $parsedUrl = parse_url($url); if ($parsedUrl !== false && is_array($parsedUrl)) { unset($parsedUrl['query']); unset($parsedUrl['fragment']); $url = implode('', $parsedUrl); } var_dump($url);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/puGoE
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url, !1 = $parsedUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Flh4.googleusercontent.com%2F-vi8qjz0rz4o%2FAAAAAAAAAAI%2FAAAAAAAAaz4%2FvTzzYBQSL5M%2Fphoto.jpg%3Fsz%3D200'
    4     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        TYPE_CHECK                                  1018  ~5      !1
          6      > JMPZ_EX                                          ~5      ~5, ->9
          7    >   TYPE_CHECK                                  128  ~6      !1
          8        BOOL                                             ~5      ~6
          9    > > JMPZ                                                     ~5, ->17
    6    10    >   UNSET_DIM                                                !1, 'query'
    7    11        UNSET_DIM                                                !1, 'fragment'
    9    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !0, $7
   11    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.95 ms | 1395 KiB | 19 Q