3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array=array(array('month'=> 3, 'day'=> 4, 'hour' => 1, 'minut' => 15, 'year'=> 2014), array('month'=> 5, 'day'=> 7, 'hour' => 1, 'minut' => 50, 'year'=> 2012) ); $i=0; foreach($my_array as $k => $v) { $new_array[$i] = $v["year"]."-".$v["month"]."-".$v["day"]." ".$v["hour"].$v["minut"]; $i++; } print_r($new_array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/t2I6W
function name:  (null)
number of ops:  26
compiled vars:  !0 = $my_array, !1 = $i, !2 = $v, !3 = $k, !4 = $new_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   14     1        ASSIGN                                                   !1, 0
   15     2      > FE_RESET_R                                       $7      !0, ->21
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->21
          4    >   ASSIGN                                                   !3, ~8
   16     5        FETCH_DIM_R                                      ~11     !2, 'year'
          6        CONCAT                                           ~12     ~11, '-'
          7        FETCH_DIM_R                                      ~13     !2, 'month'
          8        CONCAT                                           ~14     ~12, ~13
          9        CONCAT                                           ~15     ~14, '-'
         10        FETCH_DIM_R                                      ~16     !2, 'day'
         11        CONCAT                                           ~17     ~15, ~16
         12        CONCAT                                           ~18     ~17, '+'
         13        FETCH_DIM_R                                      ~19     !2, 'hour'
         14        CONCAT                                           ~20     ~18, ~19
         15        FETCH_DIM_R                                      ~21     !2, 'minut'
         16        CONCAT                                           ~22     ~20, ~21
         17        ASSIGN_DIM                                               !4, !1
         18        OP_DATA                                                  ~22
   17    19        PRE_INC                                                  !1
   15    20      > JMP                                                      ->3
         21    >   FE_FREE                                                  $7
   20    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.42 ms | 1400 KiB | 15 Q