3v4l.org

run code in 500+ PHP versions simultaneously
<?php $content="aaa <!--[if (gt IE 9)|!(IE)]><!--> <html lang=\"en\"> <!--<![endif]--> bbb"; $tagOpen="<!--[if (gt IE 9)|!(IE)]><!-->"; $tagClose="<!--<![endif]-->"; $condition='/'.preg_quote($tagOpen).'.*?'.preg_quote($tagClose).'/i'; $content=preg_replace($condition, '$1', $content); echo htmlentities($content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8cqAm
function name:  (null)
number of ops:  22
compiled vars:  !0 = $content, !1 = $tagOpen, !2 = $tagClose, !3 = $condition
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'aaa+%3C%21--%5Bif+%28gt+IE+9%29%7C%21%28IE%29%5D%3E%3C%21--%3E+%3Chtml+lang%3D%22en%22%3E+%3C%21--%3C%21%5Bendif%5D--%3E+bbb'
    3     1        ASSIGN                                                       !1, '%3C%21--%5Bif+%28gt+IE+9%29%7C%21%28IE%29%5D%3E%3C%21--%3E'
    4     2        ASSIGN                                                       !2, '%3C%21--%3C%21%5Bendif%5D--%3E'
    5     3        INIT_FCALL                                                   'preg_quote'
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                             $7      
          6        CONCAT                                               ~8      '%2F', $7
          7        CONCAT                                               ~9      ~8, '.%2A%3F'
          8        INIT_FCALL                                                   'preg_quote'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                             $10     
         11        CONCAT                                               ~11     ~9, $10
         12        CONCAT                                               ~12     ~11, '%2Fi'
         13        ASSIGN                                                       !3, ~12
    6    14        FRAMELESS_ICALL_3                preg_replace        ~14     !3, '%241'
         15        OP_DATA                                                      !0
         16        ASSIGN                                                       !0, ~14
    7    17        INIT_FCALL                                                   'htmlentities'
         18        SEND_VAR                                                     !0
         19        DO_ICALL                                             $16     
         20        ECHO                                                         $16
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.59 ms | 2817 KiB | 15 Q