3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowedTags = '<br>'; var_dump(strip_tags('Line1<br/>Line2<br></br>', $allowedTags)); $allowedTags = '<br><br/>'; var_dump(strip_tags('Line1<br/>Line2<br></br>', $allowedTags));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RD22B
function name:  (null)
number of ops:  17
compiled vars:  !0 = $allowedTags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cbr%3E'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strip_tags'
          3        SEND_VAL                                                 'Line1%3Cbr%2F%3ELine2%3Cbr%3E%3C%2Fbr%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    6     8        ASSIGN                                                   !0, '%3Cbr%3E%3Cbr%2F%3E'
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'strip_tags'
         11        SEND_VAL                                                 'Line1%3Cbr%2F%3ELine2%3Cbr%3E%3C%2Fbr%3E'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.63 ms | 1443 KiB | 15 Q