3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = [ "https://www.instagram.com/p/BxKRx5CHn5i/", "https://www.instagram.com/p/BrODg5XHlE6/?utm_source=ig_share_sheet&igshid=znsinsart176", "https://www.instagram.com/p/BxKRx5CHn5i/", "https://www.instagram.com/username/p/BxE5PpZhoa9/", "https://www.instagram.com/username/p/BxE5PpZhoa9/#look=overhere" ]; foreach ($strings as $string) { $pos = strpos($string, '/p/'); if ($pos === false) { continue; } echo substr($string, $pos + 3, 11); echo " (from $string)\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/aoAbf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $strings, !1 = $string, !2 = $pos
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   10     1      > FE_RESET_R                                           $4      !0, ->17
          2    > > FE_FETCH_R                                                   $4, !1, ->17
   11     3    >   FRAMELESS_ICALL_2                strpos              ~5      !1, '%2Fp%2F'
          4        ASSIGN                                                       !2, ~5
   12     5        TYPE_CHECK                                        4          !2
          6      > JMPZ                                                         ~7, ->8
   13     7    > > JMP                                                          ->2
   15     8    >   ADD                                                  ~8      !2, 3
          9        FRAMELESS_ICALL_3                substr              ~9      !1, ~8
         10        OP_DATA                                                      11
         11        ECHO                                                         ~9
   16    12        ROPE_INIT                                         3  ~11     '+%28from+'
         13        ROPE_ADD                                          1  ~11     ~11, !1
         14        ROPE_END                                          2  ~10     ~11, '%29%0A'
         15        ECHO                                                         ~10
   10    16      > JMP                                                          ->2
         17    >   FE_FREE                                                      $4
   17    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.45 ms | 2390 KiB | 13 Q