3v4l.org

run code in 300+ PHP versions simultaneously
<?php $embedCode = '<iframe width="800"> </iframe>'; echo preg_replace('/(<iframe[^>]*\swidth=")(\d+)("\s.*)/', '${1}' . $width . '{3}', $embedCode);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ci5lk
function name:  (null)
number of ops:  10
compiled vars:  !0 = $embedCode, !1 = $width
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ciframe+width%3D%22800%22%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        CONCAT                                           ~3      '%24%7B1%7D', !1
          4        CONCAT                                           ~4      ~3, '%7B3%7D'
          5        SEND_VAL                                                 ~4
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.78 ms | 1394 KiB | 15 Q