3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=[ 257 => [ "recaudacion" => "2017-10-07", "Contribuyentes Locales,Activid. Especiales y Salas de Recreacion" => "2017-10-16", "Contribuyentes Convenio Multilateral" => "2017-10-13", "Regimen simplificado" => "2017-10-00", "Declaracion Jurada Fiscal 2016 Contibuyentes Locales" => "2017-10-00" ], 258=> [ "Impuestos de Sellos"=>"2017-10-10", "Declaracion Jurada anual 2016 Contribuyentes de convenio multilateral"=>"2017-10-00", "Recategorizacion cuatrimestral regimen simplificado"=>"2017-10-00" ] ]; function stringifySubarrays($array){ foreach($array as &$a){ // modify $a by reference foreach($a as $k=>&$v){ // modify $v by reference $v="$k Vence: $v"; // write new value using key and value } $a=implode("\n\n",$a); // glue new subarray of string together using 2 newline characters } return $array; // return the new array } var_export(stringifySubarrays($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2tBUH
function name:  (null)
number of ops:  8
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'stringifysubarrays'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function stringifysubarrays:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 125) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 126) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/2tBUH
function name:  stringifySubarrays
number of ops:  21
compiled vars:  !0 = $array, !1 = $a, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1      > FE_RESET_RW                                      $4      !0, ->18
          2    > > FE_FETCH_RW                                              $4, !1, ->18
   19     3    > > FE_RESET_RW                                      $5      !1, ->11
          4    > > FE_FETCH_RW                                      ~6      $5, !2, ->11
          5    >   ASSIGN                                                   !3, ~6
   20     6        ROPE_INIT                                     3  ~9      !3
          7        ROPE_ADD                                      1  ~9      ~9, '+Vence%3A+'
          8        ROPE_END                                      2  ~8      ~9, !2
          9        ASSIGN                                                   !2, ~8
   19    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $5
   22    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%0A%0A'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !1, $12
   18    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $4
   24    19      > RETURN                                                   !0
   25    20*     > RETURN                                                   null

End of function stringifysubarrays

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1015 KiB | 16 Q