3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^--\w+$/m'; $str = '--0000000000000fb2ad0575bf8f28 Content-Type: text/plain; charset="UTF-8" <body> Content. </body> --0000000000000fb2ad0575bf8f28 Content-Type: text/html; charset="UTF-8" <div dir="ltr">&lt;body&gt;<br>Content.<br>&lt;/body&gt;</div> --0000000000000fb2ad0575bf8f28--'; preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0); // Print the entire match result var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7YdKS
function name:  (null)
number of ops:  13
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E--%5Cw%2B%24%2Fm'
    4     1        ASSIGN                                                   !1, '--0000000000000fb2ad0575bf8f28%0AContent-Type%3A+text%2Fplain%3B+charset%3D%22UTF-8%22%0A%0A%3Cbody%3E%0AContent.%0A%3C%2Fbody%3E%0A%0A--0000000000000fb2ad0575bf8f28%0AContent-Type%3A+text%2Fhtml%3B+charset%3D%22UTF-8%22%0A%0A%3Cdiv+dir%3D%22ltr%22%3E%26lt%3Bbody%26gt%3B%3Cbr%3EContent.%3Cbr%3E%26lt%3B%2Fbody%26gt%3B%3C%2Fdiv%3E%0A%0A--0000000000000fb2ad0575bf8f28--'
   18     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 256
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
   21     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.39 ms | 1394 KiB | 17 Q