3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
248.47 ms | 1012 KiB | 16 Q