3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/([\D]+)|([\d]+)/'; $str = 'a74b8c0d3845e7'; preg_match_all($re, $str, $matches); print_r(array_combine(array_values(array_filter($matches[1])),array_filter($matches[2])));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kf35k
function name:  (null)
number of ops:  26
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28%5B%5CD%5D%2B%29%7C%28%5B%5Cd%5D%2B%29%2F'
    3     1        ASSIGN                                                   !1, 'a74b8c0d3845e7'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_combine'
          9        INIT_FCALL                                               'array_values'
         10        INIT_FCALL                                               'array_filter'
         11        FETCH_DIM_R                                      ~6      !2, 1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        INIT_FCALL                                               'array_filter'
         18        FETCH_DIM_R                                      ~9      !2, 2
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                         $10     
         21        SEND_VAR                                                 $10
         22        DO_ICALL                                         $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.24 ms | 1400 KiB | 23 Q