3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<content type='application/x-shockwave-flash' src='https://www.youtube.com/v/f4LxBKN9ank?version=3&amp;f=videos&amp;app=youtube_gdata'/>"; preg_match('#\www\.youtube\.com\/v\/([\w]+)#', $string, $match); $id = $match[1]; echo $id;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Va3oR
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $match, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ccontent+type%3D%27application%2Fx-shockwave-flash%27+src%3D%27https%3A%2F%2Fwww.youtube.com%2Fv%2Ff4LxBKN9ank%3Fversion%3D3%26amp%3Bf%3Dvideos%26amp%3Bapp%3Dyoutube_gdata%27%2F%3E'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%5Cwww%5C.youtube%5C.com%5C%2Fv%5C%2F%28%5B%5Cw%5D%2B%29%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        FETCH_DIM_R                                      ~5      !1, 1
          7        ASSIGN                                                   !2, ~5
    8     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.96 ms | 1394 KiB | 15 Q