3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <link rel="stylesheet" href="/html_5/tags/html_link_tag_example.css"> HTML; $el = 'li'; var_export(preg_match('/(<'.$el.'(.*?)>)((\n*?.*?\n*?)<\/'.$el.'>|)/', $html, $out) ? $out : []);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qjFpO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $html, !1 = $el, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Clink+rel%3D%22stylesheet%22+href%3D%22%2Fhtml_5%2Ftags%2Fhtml_link_tag_example.css%22%3E'
    6     1        ASSIGN                                                   !1, 'li'
    7     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'preg_match'
          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        DO_ICALL                                         $9      
         12      > JMPZ                                                     $9, ->15
         13    >   QM_ASSIGN                                        ~10     !2
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~10     <array>
         16    >   SEND_VAL                                                 ~10
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.74 ms | 1395 KiB | 17 Q