3v4l.org

run code in 300+ PHP versions simultaneously
<pre> <?php $wtfjawaban = "this is some broken text<br />this is some broken text<br>this is some broken text<br >you are doing something wrong<br/>preg_replace works fine"; $jawaban = preg_replace('#<br\s*?/?>#i', PHP_EOL, $wtfjawaban); echo $jawaban; ?> </pre>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/snq0P
function name:  (null)
number of ops:  11
compiled vars:  !0 = $wtfjawaban, !1 = $jawaban
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E%0A'
    3     1        ASSIGN                                                   !0, 'this+is+some+broken+text%3Cbr+%2F%3Ethis+is+some+broken+text%3Cbr%3Ethis+is+some+broken+text%3Cbr+%3Eyou+are+doing+something+wrong%3Cbr%2F%3Epreg_replace+works+fine'
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%23%3Cbr%5Cs%2A%3F%2F%3F%3E%23i'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
    5     8        ECHO                                                     !1
    7     9        ECHO                                                     '%3C%2Fpre%3E'
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.07 ms | 1009 KiB | 14 Q