3v4l.org

run code in 300+ PHP versions simultaneously
<?php $embedCode = '<iframe width=800> </iframe>'; echo preg_replace('/(<iframe[^>]*\swidth=")(\d+)("\s.*)/', '${1}' . '666' . '{3}', $embedCode);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mggKA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $embedCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ciframe+width%3D800%3E+%3C%2Fiframe%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%3Ciframe%5B%5E%3E%5D%2A%5Cswidth%3D%22%29%28%5Cd%2B%29%28%22%5Cs.%2A%29%2F'
          3        SEND_VAL                                                 '%24%7B1%7D666%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:
156.23 ms | 1385 KiB | 15 Q