3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blogPostWord = 'http://youtu.be/O7Lm3BMG8ow'; preg_match('(?<=(?:v|i)=)[a-zA-Z0-9-]+(?=&)|(?<=(?:v|i)\/)[^&\n]+|(?<=embed\/)[^"&\n]+|(?<=‌​(?:v|i)=)[^&\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/9DNHa
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.be%2FO7Lm3BMG8ow'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%28%3F%3C%3D%28%3F%3Av%7Ci%29%3D%29%5Ba-zA-Z0-9-%5D%2B%28%3F%3D%26%29%7C%28%3F%3C%3D%28%3F%3Av%7Ci%29%5C%2F%29%5B%5E%26%5Cn%5D%2B%7C%28%3F%3C%3Dembed%5C%2F%29%5B%5E%22%26%5Cn%5D%2B%7C%28%3F%3C%3D%E2%80%8C%E2%80%8B%28%3F%3Av%7Ci%29%3D%29%5B%5E%26%5Cn%5D%2B%7C%28%3F%3C%3Dyoutu.be%5C%2F%29%5B%5E%26%5Cn%5D%2B'
          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:
152.22 ms | 1394 KiB | 17 Q