3v4l.org

run code in 300+ PHP versions simultaneously
<?php //modify instagram embed code. $code = '<iframe src="//instagram.com/p/mJ1-QxtlVg/embed/" width="600" height="696" frameborder="0" scrolling="no" allowtransparency="true"></iframe>'; $instagramEmbedPattern = 'instagram\.com\/p\/(.*)\/embed\/?'; preg_match($instagramEmbedPattern, $code, $matches); if (2 === count($matches)) { echo $matches[1]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/6a54t
function name:  (null)
number of ops:  13
compiled vars:  !0 = $code, !1 = $instagramEmbedPattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ciframe+src%3D%22%2F%2Finstagram.com%2Fp%2FmJ1-QxtlVg%2Fembed%2F%22+width%3D%22600%22+height%3D%22696%22+frameborder%3D%220%22+scrolling%3D%22no%22+allowtransparency%3D%22true%22%3E%3C%2Fiframe%3E'
    4     1        ASSIGN                                                   !1, 'instagram%5C.com%5C%2Fp%5C%2F%28.%2A%29%5C%2Fembed%5C%2F%3F'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        COUNT                                            ~6      !2
          8        IS_IDENTICAL                                             ~6, 2
          9      > JMPZ                                                     ~7, ->12
    7    10    >   FETCH_DIM_R                                      ~8      !2, 1
         11        ECHO                                                     ~8
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.74 ms | 1394 KiB | 15 Q