3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lt = '&lt;'; $gt = '&gt;'; $raw_data = '[if lte IE 8]&gt;&lt;link href=&quot;//d3h5jhobc20ump.cloudfront.net/f521cb9cec0171e8d913538552d98b10.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;![endif]'; echo htmlspecialchars(preg_replace('/^\\s*\\[\\s*(if)(\\s[^\\]]*?)?\\s*\\]'.$gt.'\\s*(.*?)\\s*'.$lt.'!\\[\\s*(endif)\\s*\\]\\s*$/si', '[$1$2]'.$gt."\r\n".'$3'."\r\n".$lt.'![$4]', $raw_data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oYsa0
function name:  (null)
number of ops:  23
compiled vars:  !0 = $lt, !1 = $gt, !2 = $raw_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%26lt%3B'
    3     1        ASSIGN                                                   !1, '%26gt%3B'
    4     2        ASSIGN                                                   !2, '%5Bif+lte+IE+8%5D%26gt%3B%26lt%3Blink+href%3D%26quot%3B%2F%2Fd3h5jhobc20ump.cloudfront.net%2Ff521cb9cec0171e8d913538552d98b10.css%26quot%3B+rel%3D%26quot%3Bstylesheet%26quot%3B+type%3D%26quot%3Btext%2Fcss%26quot%3B%26gt%3B%26lt%3B%21%5Bendif%5D'
    5     3        INIT_FCALL                                               'htmlspecialchars'
          4        INIT_FCALL                                               'preg_replace'
          5        CONCAT                                           ~6      '%2F%5E%5Cs%2A%5C%5B%5Cs%2A%28if%29%28%5Cs%5B%5E%5C%5D%5D%2A%3F%29%3F%5Cs%2A%5C%5D', !1
          6        CONCAT                                           ~7      ~6, '%5Cs%2A%28.%2A%3F%29%5Cs%2A'
          7        CONCAT                                           ~8      ~7, !0
          8        CONCAT                                           ~9      ~8, '%21%5C%5B%5Cs%2A%28endif%29%5Cs%2A%5C%5D%5Cs%2A%24%2Fsi'
          9        SEND_VAL                                                 ~9
         10        CONCAT                                           ~10     '%5B%241%242%5D', !1
         11        CONCAT                                           ~11     ~10, '%0D%0A'
         12        CONCAT                                           ~12     ~11, '%243'
         13        CONCAT                                           ~13     ~12, '%0D%0A'
         14        CONCAT                                           ~14     ~13, !0
         15        CONCAT                                           ~15     ~14, '%21%5B%244%5D'
         16        SEND_VAL                                                 ~15
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $16     
         19        SEND_VAR                                                 $16
         20        DO_ICALL                                         $17     
         21        ECHO                                                     $17
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.17 ms | 1395 KiB | 17 Q