3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = "<style> boom </style>"; $regex = "'<style>(.*?)<\/style>'si"; $replace = ''; $body = preg_replace($regex, $replace, $body); echo $body;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ng5lc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $body, !1 = $regex, !2 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cstyle%3E%0Aboom%0A%3C%2Fstyle%3E'
    5     1        ASSIGN                                                   !1, '%27%3Cstyle%3E%28.%2A%3F%29%3C%5C%2Fstyle%3E%27si'
    6     2        ASSIGN                                                   !2, ''
    7     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !0, $6
    8     9        ECHO                                                     !0
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.75 ms | 1394 KiB | 15 Q