3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<iframe width="800"><embed width=300>fdgdfg</embed>sfsdfsdf</iframe>'; echo preg_replace_all('~(.*width=["]?)(\d+)(["]?.*)~', '${1}222${3}', $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JXAsA
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_BY_NAME                                       'preg_replace_all'
          2        SEND_VAL_EX                                              '%7E%28.%2Awidth%3D%5B%22%5D%3F%29%28%5Cd%2B%29%28%5B%22%5D%3F.%2A%29%7E'
          3        SEND_VAL_EX                                              '%24%7B1%7D222%24%7B3%7D'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.9 ms | 1392 KiB | 13 Q