3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "www.youtube.com/watch?v=0EqINqnEa-Y"; $query = parse_url($url, PHP_URL_QUERY); parse_str($query, $array); echo $array['v'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fms5Z
function name:  (null)
number of ops:  13
compiled vars:  !0 = $url, !1 = $query, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'www.youtube.com%2Fwatch%3Fv%3D0EqINqnEa-Y'
    3     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 6
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'parse_str'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
    5    10        FETCH_DIM_R                                      ~7      !2, 'v'
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.51 ms | 1394 KiB | 17 Q