3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( "field_5abcb693a68bc" => Array ( "0" => Array ( "field_5abcbb1b51ddf" => "mortgage", "field_5ae58a0b58b58" => "", "field_5abcbb1e51de0" => "10", "field_5abcbb2351de2" => "45,654,456", "field_5abcbb6251de3" => "", "field_5abcbb6651de4" => "04/2017", "field_5abcbb6851de5" => "4,454,656", "field_5abcbb6b51de6" => "24/07/2018", "field_5abcbbb351de7" => "657", "field_5abcbbb651de8" => "24/07/2018", "field_5abcbbb851de9" => "15", "field_5abcbbbb51dea"=> "yes" ) ) ); array_walk_recursive( $array, function (&$value) { if (preg_match('/^\d[1-9]\/[1-9][0-9][0-9][0-9]$/',$value)) { $value = '01/' . $value; } } ); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XBYKc
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'array_walk_recursive'
   27     2        SEND_REF                                                 !0
   28     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   32     4        SEND_VAL                                                 ~2
   26     5        DO_ICALL                                                 
   35     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/XBYKc
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5Cd%5B1-9%5D%5C%2F%5B1-9%5D%5B0-9%5D%5B0-9%5D%5B0-9%5D%24%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > JMPZ                                                     $1, ->8
   30     6    >   CONCAT                                           ~2      '01%2F', !0
          7        ASSIGN                                                   !0, ~2
   32     8    > > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.24 ms | 1000 KiB | 16 Q