3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = 'https://www.instagram.com/p/BarUcqwht_u'; $searchs = '~(?:https://(?:www\.)?instagram\.com/p/)?([a-zA-Z0-9_\-+?:]+)~'; $replaces = 'https://instagram.com/p/$1/media/?size=l'; $soc_instagram = preg_replace($searchs,$replaces,$strings); echo $soc_instagram;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WSors
function name:  (null)
number of ops:  11
compiled vars:  !0 = $strings, !1 = $searchs, !2 = $replaces, !3 = $soc_instagram
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fwww.instagram.com%2Fp%2FBarUcqwht_u'
    3     1        ASSIGN                                                   !1, '%7E%28%3F%3Ahttps%3A%2F%2F%28%3F%3Awww%5C.%29%3Finstagram%5C.com%2Fp%2F%29%3F%28%5Ba-zA-Z0-9_%5C-%2B%3F%3A%5D%2B%29%7E'
    4     2        ASSIGN                                                   !2, 'https%3A%2F%2Finstagram.com%2Fp%2F%241%2Fmedia%2F%3Fsize%3Dl'
    5     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
    6     9        ECHO                                                     !3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.22 ms | 996 KiB | 14 Q