3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<_ <p>my text 1</p><br /> some other content<br /> <p>some other paragraph followed by an html line break</p><br><br /> etc...<br /> _; echo preg_replace('~(</p>)<br ?/?>~', '$1', $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZrGUo
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3Emy+text+1%3C%2Fp%3E%3Cbr+%2F%3E%0Asome+other+content%3Cbr+%2F%3E%0A%3Cp%3Esome+other+paragraph+followed+by+an+html+line+break%3C%2Fp%3E%3Cbr%3E%3Cbr+%2F%3E%0Aetc...%3Cbr+%2F%3E'
   10     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%28%3C%2Fp%3E%29%3Cbr+%3F%2F%3F%3E%7E'
          3        SEND_VAL                                                 '%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.83 ms | 1003 KiB | 14 Q