3v4l.org

run code in 500+ PHP versions simultaneously
<?php $atm = array( '26' => '20/08/2099,"ATM CASH WITHDRAWAL (ON-US) ATM CASH WITHDRAWAL (ON-US) EMPEMOM, LAGA ATM 2 LOGO NG 000360585490","",20/08/2018,"5,000","","1,316.01"', '27' => '27/08/2027,BANK CHARGE 26 SMS CHARGE AND VAT FOR 27TH JUL - 23RD AUG 2018,2803064 028,27/08/2018,109.2,"","1,206.81"' ); $atm = array_map(function($x) { return preg_replace_callback('/"\d{1,3}(?:,\d{3})+\.\d{2}"/', function($m) { return str_replace(',', '', $m[0]); }, $x); }, $atm); print_r($atm);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXA98
function name:  (null)
number of ops:  11
compiled vars:  !0 = $atm
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   12     3        SEND_VAL                                                     ~2
          4        SEND_VAR                                                     !0
    8     5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !0, $3
   14     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                                     
         10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXA98
function name:  {closure:/in/NXA98:8}
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
    9     1        INIT_FCALL                                                   'preg_replace_callback'
          2        SEND_VAL                                                     '%2F%22%5Cd%7B1%2C3%7D%28%3F%3A%2C%5Cd%7B3%7D%29%2B%5C.%5Cd%7B2%7D%22%2F'
          3        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
   11     4        SEND_VAL                                                     ~1
          5        SEND_VAR                                                     !0
    9     6        DO_ICALL                                             $2      
   11     7      > RETURN                                                       $2
   12     8*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXA98
function name:  {closure:{closure:/in/NXA98:8}:9}
number of ops:  6
compiled vars:  !0 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
   10     1        FETCH_DIM_R                                          ~1      !0, 0
          2        FRAMELESS_ICALL_3                str_replace         ~2      '%2C', ''
          3        OP_DATA                                                      ~1
          4      > RETURN                                                       ~2
   11     5*     > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.09 ms | 2080 KiB | 16 Q