3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = preg_match('#http://www.youtube.com/embed/(.*)\?rel=0#','http://www.youtube.com/embed/vJlds4WMZtM?rel=0', $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRNt5
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                                                 '%23http%3A%2F%2Fwww.youtube.com%2Fembed%2F%28.%2A%29%5C%3Frel%3D0%23'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.youtube.com%2Fembed%2FvJlds4WMZtM%3Frel%3D0'
          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:
213.32 ms | 1398 KiB | 17 Q