3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <p>Some content <a href="www.test.com">A link</a></p> HTML; var_export(preg_split('~\s+|(<[^>]+>)~', $html, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/isVsi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3ESome+content+%3Ca+href%3D%22www.test.com%22%3EA+link%3C%2Fa%3E%3C%2Fp%3E'
    6     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%7E%5Cs%2B%7C%28%3C%5B%5E%3E%5D%2B%3E%29%7E'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 -1
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.57 ms | 997 KiB | 15 Q