3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOT <p><b>There are currently five entries in the London Borough of Barking &amp; Dagenham (LBBD):</b></p> <p>My string 1<br> My another string<br> And this is also my string<br></p> <p><i>Some text over here</i></p> EOT; preg_match_all("/(<p>)?(.+))<br>/", $html, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EL6S8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $html, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3E%3Cb%3EThere+are+currently+five+entries+in+the+London+Borough+of+Barking+%26amp%3B+Dagenham+%28LBBD%29%3A%3C%2Fb%3E%3C%2Fp%3E%0A%3Cp%3EMy+string+1%3Cbr%3E%0AMy+another+string%3Cbr%3E%0AAnd+this+is+also+my+string%3Cbr%3E%3C%2Fp%3E%0A%3Cp%3E%3Ci%3ESome+text+over+here%3C%2Fi%3E%3C%2Fp%3E'
   11     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3Cp%3E%29%3F%28.%2B%29%29%3Cbr%3E%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.98 ms | 1394 KiB | 17 Q