3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '763:74 74:274 177:474'; $result = []; preg_replace_callback('/(\d+):(\d+)/m',function($m,&$result){ $result[$m[1]] = $m[2]; },$string,$result); print_r($result); echo $result[74]."\n"; echo $result[763]."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lV6Db
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '763%3A74%0A74%3A274%0A177%3A474'
    7     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'preg_replace_callback'
          3        SEND_VAL                                                 '%2F%28%5Cd%2B%29%3A%28%5Cd%2B%29%2Fm'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FlV6Db%3A8%240'
   10     5        SEND_VAL                                                 ~4
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   12     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   13    12        FETCH_DIM_R                                      ~7      !1, 74
         13        CONCAT                                           ~8      ~7, '%0A'
         14        ECHO                                                     ~8
   14    15        FETCH_DIM_R                                      ~9      !1, 763
         16        CONCAT                                           ~10     ~9, '%0A'
         17        ECHO                                                     ~10
         18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FlV6Db%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lV6Db
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $m, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        FETCH_DIM_R                                      ~2      !0, 1
          3        FETCH_DIM_R                                      ~4      !0, 2
          4        ASSIGN_DIM                                               !1, ~2
          5        OP_DATA                                                  ~4
   10     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FlV6Db%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.23 ms | 1396 KiB | 17 Q