3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 257 => Array( "recaudacion" => "2017-10-07", "Contribuyentes Locales,Activid. Especiales y Salas de Recreacion" => "2017-10-16" ), 258=> array( "Impuestos de Sellos"=>"2017-10-10", "Declaracion Jurada anual 2016 Contribuyentes de convenio multilateral"=>"2017-10-00", "Recategorizacion cuatrimestral regimen simplificado"=>"2017-10-00" ) ); $newarray = Array(); foreach($arr as $firstkey => $arr2) { //$arr here is the variable that contains your array $newstring = ""; $first = true; foreach($arr2 as $key => $val) { $newstring .= ($first ? "" : "\r\n\r\n") . $key . " Vence: " . $val; $first = false; } $newarray[$firstkey] = $newstring; } var_dump($newarray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 24
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 20
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/DTpqC
function name:  (null)
number of ops:  29
compiled vars:  !0 = $arr, !1 = $newarray, !2 = $arr2, !3 = $firstkey, !4 = $newstring, !5 = $first, !6 = $val, !7 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   15     1        ASSIGN                                                   !1, <array>
   17     2      > FE_RESET_R                                       $10     !0, ->24
          3    > > FE_FETCH_R                                       ~11     $10, !2, ->24
          4    >   ASSIGN                                                   !3, ~11
   18     5        ASSIGN                                                   !4, ''
   19     6        ASSIGN                                                   !5, <true>
   20     7      > FE_RESET_R                                       $15     !2, ->20
          8    > > FE_FETCH_R                                       ~16     $15, !6, ->20
          9    >   ASSIGN                                                   !7, ~16
   21    10      > JMPZ                                                     !5, ->13
         11    >   QM_ASSIGN                                        ~18     ''
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~18     '%0D%0A%0D%0A'
         14    >   CONCAT                                           ~19     ~18, !7
         15        CONCAT                                           ~20     ~19, '+Vence%3A+'
         16        CONCAT                                           ~21     ~20, !6
         17        ASSIGN_OP                                     8          !4, ~21
   22    18        ASSIGN                                                   !5, <false>
   20    19      > JMP                                                      ->8
         20    >   FE_FREE                                                  $15
   24    21        ASSIGN_DIM                                               !1, !3
         22        OP_DATA                                                  !4
   17    23      > JMP                                                      ->3
         24    >   FE_FREE                                                  $10
   27    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.67 ms | 1006 KiB | 14 Q