3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = preg_match('#^https://www.youtube.com/watch?v=(.*)#','https://www.youtube.com/watch?v=Ex9huC9uUg8&feature=youtube_gdata', $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbRBu
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%23%5Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D%28.%2A%29%23'
          2        SEND_VAL                                                 'https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEx9huC9uUg8%26feature%3Dyoutube_gdata'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.59 ms | 1394 KiB | 17 Q