3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('~([a-z])([0-9])~', 'b53d34a32', $matches); var_dump($matches); print str_repeat('=-', 42); preg_match_all('~([a-z])([0-9])~', 'b53d34a32', $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/Oaoa1
function name:  (null)
number of ops:  23
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%7E%28%5Ba-z%5D%29%28%5B0-9%5D%29%7E'
          2        SEND_VAL                                                 'b53d34a32'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'str_repeat'
          9        SEND_VAL                                                 '%3D-'
         10        SEND_VAL                                                 42
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
    8    13        INIT_FCALL                                               'preg_match_all'
         14        SEND_VAL                                                 '%7E%28%5Ba-z%5D%29%28%5B0-9%5D%29%7E'
         15        SEND_VAL                                                 'b53d34a32'
         16        SEND_REF                                                 !0
         17        SEND_VAL                                                 256
         18        DO_ICALL                                                 
    9    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1395 KiB | 19 Q