3v4l.org

run code in 300+ 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:  25
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        INIT_FCALL                                               'preg_replace'
         15        SEND_VAR                                                 !3
         16        SEND_VAL                                                 '%241'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $14     
         19        ASSIGN                                                   !0, $14
    7    20        INIT_FCALL                                               'htmlentities'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $16     
         23        ECHO                                                     $16
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.67 ms | 1387 KiB | 19 Q