3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "abcdef"; $pattern = '~'; var_dump(preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE)); print_r($matches); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvaHK
function name:  (null)
number of ops:  19
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcdef'
    3     1        ASSIGN                                                   !1, '%7E'
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !1
          5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 3
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        SEND_REF                                                 !2
         11        SEND_VAL                                                 256
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
    6    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.32 ms | 1394 KiB | 21 Q