3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<br><br ><br/><br />'; $with_slash = strip_tags( $content, '<br />' ); $without_slash = strip_tags( $content, '<br>' ); echo "With slash:\n'$with_slash'\n\n"; echo "Without slash:\n'$without_slash'\n\n"; echo 'Correct: ' . ( '' === $with_slash ? 'Without slash' : 'With slash' );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nvbKe
function name:  (null)
number of ops:  27
compiled vars:  !0 = $content, !1 = $with_slash, !2 = $without_slash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cbr%3E%3Cbr+%3E%3Cbr%2F%3E%3Cbr+%2F%3E'
    5     1        INIT_FCALL                                               'strip_tags'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3Cbr+%2F%3E'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'strip_tags'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '%3Cbr%3E'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    8    11        ROPE_INIT                                     3  ~9      'With+slash%3A%0A%27'
         12        ROPE_ADD                                      1  ~9      ~9, !1
         13        ROPE_END                                      2  ~8      ~9, '%27%0A%0A'
         14        ECHO                                                     ~8
    9    15        ROPE_INIT                                     3  ~12     'Without+slash%3A%0A%27'
         16        ROPE_ADD                                      1  ~12     ~12, !2
         17        ROPE_END                                      2  ~11     ~12, '%27%0A%0A'
         18        ECHO                                                     ~11
   11    19        IS_IDENTICAL                                             !1, ''
         20      > JMPZ                                                     ~14, ->23
         21    >   QM_ASSIGN                                        ~15     'Without+slash'
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~15     'With+slash'
         24    >   CONCAT                                           ~16     'Correct%3A+', ~15
         25        ECHO                                                     ~16
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.67 ms | 1400 KiB | 15 Q