3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input="oollla<style>vvvv</style>0000"; echo preg_replace('/(<[^>]+) style=".*?"/i', '$1', $input); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yjl7j
function name:  (null)
number of ops:  8
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'oollla%3Cstyle%3Evvvv%3C%2Fstyle%3E0000'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%3C%5B%5E%3E%5D%2B%29+style%3D%22.%2A%3F%22%2Fi'
          3        SEND_VAL                                                 '%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    6     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.31 ms | 1394 KiB | 15 Q