3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOT <div> <p>Hello World</p> <!-- <table class="123456789132456789123456789123456789123456789"> <tr class=""> <!--<td></td>--> <!--<td></td>--> <td class="123456789123456789123456789123456789123456789">FooBar</td> </tr> </table> --> </div> EOT; do { $html = preg_replace("/<!--(?(?!<!--).)*-->/sU", '', $html, -1, $count); } while ($count); echo $html;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 1
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
filename:       /in/s6jQ7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $html, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++++%3Cdiv%3E%0A++++++++++++%3Cp%3EHello+World%3C%2Fp%3E%0A++++++++++++%3C%21--+%0A++++++++++++%3Ctable+class%3D%22123456789132456789123456789123456789123456789%22%3E%0A++++++++++++++++++++%3Ctr+class%3D%22%22%3E%0A++++++++++++++++++++++++%3C%21--%3Ctd%3E%3C%2Ftd%3E--%3E%0A++++++++++++++++++++++++%3C%21--%3Ctd%3E%3C%2Ftd%3E--%3E%0A++++++++++++++++++++++++%3Ctd+class%3D%22123456789123456789123456789123456789123456789%22%3EFooBar%3C%2Ftd%3E%0A++++++++++++++++++++%3C%2Ftr%3E%0A++++++++++++%3C%2Ftable%3E%0A++++++++++++--%3E%0A++++%3C%2Fdiv%3E'
   18     1    >   INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%3C%21--%28%3F%28%3F%21%3C%21--%29.%29%2A--%3E%2FsU'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 -1
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
   19     9      > JMPNZ                                                    !1, ->1
   21    10    >   ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.38 ms | 999 KiB | 14 Q