3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "Helló"; $pattern = '/(l|ó){2,3}/u'; preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qnLgn
function name:  (null)
number of ops:  16
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hell%C3%B3'
    4     1        ASSIGN                                                   !1, '%2F%28l%7C%C3%B3%29%7B2%2C3%7D%2Fu'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_REF                                                 !2
         10        SEND_VAL                                                 256
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1394 KiB | 19 Q