3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <p>She was like: " <i data-note="Oh, dear this may go haywire">I can't believe it! <img src='crookedface.gif'><br> Watch this video <iframe src="somwhere"></iframe><br> Are you getting all of this?</i> </p> HTML; $el = 'i'; var_export(preg_match_all('/(<'.$el.'(.*?)>)((\n*?.*?\n*?)<\/'.$el.'>|)/', $html, $out, PREG_SET_ORDER) ? $out : []);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0J5Wt
function name:  (null)
number of ops:  20
compiled vars:  !0 = $html, !1 = $el, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3EShe+was+like%3A+%22%0A+++%3Ci+data-note%3D%22Oh%2C+dear+this+may+go+haywire%22%3EI+can%27t+believe+it%21+%3Cimg+src%3D%27crookedface.gif%27%3E%3Cbr%3E%0A+++Watch+this+video+%3Ciframe+src%3D%22somwhere%22%3E%3C%2Fiframe%3E%3Cbr%3E%0A+++Are+you+getting+all+of+this%3F%3C%2Fi%3E%0A%3C%2Fp%3E'
   10     1        ASSIGN                                                   !1, 'i'
   11     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'preg_match_all'
          4        CONCAT                                           ~5      '%2F%28%3C', !1
          5        CONCAT                                           ~6      ~5, '%28.%2A%3F%29%3E%29%28%28%5Cn%2A%3F.%2A%3F%5Cn%2A%3F%29%3C%5C%2F'
          6        CONCAT                                           ~7      ~6, !1
          7        CONCAT                                           ~8      ~7, '%3E%7C%29%2F'
          8        SEND_VAL                                                 ~8
          9        SEND_VAR                                                 !0
         10        SEND_REF                                                 !2
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $9      
         13      > JMPZ                                                     $9, ->16
         14    >   QM_ASSIGN                                        ~10     !2
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~10     <array>
         17    >   SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.54 ms | 1395 KiB | 17 Q