3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '<img src="THE SOURCE HERE" alt="" title="bla bla bla">%2F'; $t = $input; $t = preg_replace("/[<].*src=/", "", $t); $t = preg_replace("/\" alt=\"\" title.*[>]/", "", $t); $t = str_replace("%2F", "/", $t); echo $t;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U4TSb
function name:  (null)
number of ops:  22
compiled vars:  !0 = $input, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cimg+src%3D%22THE+SOURCE+HERE%22+alt%3D%22%22+title%3D%22bla+bla+bla%22%3E%252F'
    3     1        ASSIGN                                                   !1, !0
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5B%3C%5D.%2Asrc%3D%2F'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%22+alt%3D%22%22+title.%2A%5B%3E%5D%2F'
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    6    14        INIT_FCALL                                               'str_replace'
         15        SEND_VAL                                                 '%252F'
         16        SEND_VAL                                                 '%2F'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !1, $8
    7    20        ECHO                                                     !1
    8    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.44 ms | 1395 KiB | 17 Q