3v4l.org

run code in 300+ PHP versions simultaneously
<?php $embedCode = '<iframe width=800 height=600> </iframe>'; echo preg_replace('~(<iframe[^>]*\swidth=["\']?)(\d+)(["\']?\s?.*)~', '${1}' . '666' . '${3}', $embedCode); echo preg_replace('~(<iframe[^>]*\sheight=["\']?)(\d+)(["\']?\s?.*)~', '${1}' . '666' . '${3}', $embedCode);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q3MOL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $embedCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ciframe+width%3D800+height%3D600%3E+%3C%2Fiframe%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%28%3Ciframe%5B%5E%3E%5D%2A%5Cswidth%3D%5B%22%27%5D%3F%29%28%5Cd%2B%29%28%5B%22%27%5D%3F%5Cs%3F.%2A%29%7E'
          3        SEND_VAL                                                 '%24%7B1%7D666%24%7B3%7D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%7E%28%3Ciframe%5B%5E%3E%5D%2A%5Csheight%3D%5B%22%27%5D%3F%29%28%5Cd%2B%29%28%5B%22%27%5D%3F%5Cs%3F.%2A%29%7E'
          9        SEND_VAL                                                 '%24%7B1%7D666%24%7B3%7D'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.12 ms | 1386 KiB | 15 Q