3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* it('should account for ending type in allowable tags when specified as a string', function() { + var html = '<article>lorem ipsum<br> dolor<br /> sit</article>', + allowedTags = '<br>', + text = 'lorem ipsum<br> dolor sit'; + + assert.equal(striptags(html, allowedTags), text); + }); */ $html = '<article>lorem ipsum<br> dolor<br /> sit</article>'; $allowedTags = '<br>'; $text = 'lorem ipsum<br> dolor sit'; echo strip_tags($html, $allowedTags) === $text ? 'equal' : 'not equal';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gb6b9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $html, !1 = $allowedTags, !2 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, '%3Carticle%3Elorem+ipsum%3Cbr%3E+dolor%3Cbr+%2F%3E+sit%3C%2Farticle%3E'
   14     1        ASSIGN                                                   !1, '%3Cbr%3E'
   15     2        ASSIGN                                                   !2, 'lorem+ipsum%3Cbr%3E+dolor+sit'
   16     3        INIT_FCALL                                               'strip_tags'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        IS_IDENTICAL                                             !2, $6
          8      > JMPZ                                                     ~7, ->11
          9    >   QM_ASSIGN                                        ~8      'equal'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~8      'not+equal'
         12    >   ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.76 ms | 1398 KiB | 15 Q