3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'adg'; preg_match('/([abc])([def])/', $string, $r); print_r($r); preg_match('/([abc])([def])/', $string, $r, PREG_OFFSET_CAPTURE); print_r($r); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/52HUX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $r
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'adg'
    5     1        INIT_FCALL                                                   'preg_match'
          2        SEND_VAL                                                     '%2F%28%5Babc%5D%29%28%5Bdef%5D%29%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    6     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
    8     9        INIT_FCALL                                                   'preg_match'
         10        SEND_VAL                                                     '%2F%28%5Babc%5D%29%28%5Bdef%5D%29%2F'
         11        SEND_VAR                                                     !0
         12        SEND_REF                                                     !1
         13        SEND_VAL                                                     256
         14        DO_ICALL                                                     
    9    15        INIT_FCALL                                                   'print_r'
         16        SEND_VAR                                                     !1
         17        DO_ICALL                                                     
   11    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.32 ms | 3570 KiB | 15 Q