3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blogPostWord = 'http://youtu.b/O7Lm3BMG8ow'; preg_match('#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+(?=\?)|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#', $blogPostWord, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Os8W0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $blogPostWord, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fyoutu.b%2FO7Lm3BMG8ow'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%28%3F%3C%3Dv%3D%29%5Ba-zA-Z0-9-%5D%2B%28%3F%3D%26%29%7C%28%3F%3C%3Dv%5C%2F%29%5B%5E%26%5Cn%5D%2B%28%3F%3D%5C%3F%29%7C%28%3F%3C%3Dv%3D%29%5B%5E%26%5Cn%5D%2B%7C%28%3F%3C%3Dyoutu.be%2F%29%5B%5E%26%5Cn%5D%2B%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     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:
158.58 ms | 1394 KiB | 17 Q