3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<iframe width="800"><embed width=300>fdgdfg</embed>sfsdfsdf</iframe>'; echo preg_replace('~(.*width=["]?)(\d+)(["]?.*)~', '${1}222${3}', $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9jLp0
function name:  (null)
number of ops:  8
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ciframe+width%3D%22800%22%3E%3Cembed+width%3D300%3Efdgdfg%3C%2Fembed%3Esfsdfsdf%3C%2Fiframe%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%28.%2Awidth%3D%5B%22%5D%3F%29%28%5Cd%2B%29%28%5B%22%5D%3F.%2A%29%7E'
          3        SEND_VAL                                                 '%24%7B1%7D222%24%7B3%7D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.98 ms | 1385 KiB | 15 Q