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++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 22
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/q8KbT
function name:  (null)
number of ops:  24
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, ->22
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->22
          4    >   ASSIGN                                                   !3, ~8
   16     5        FETCH_CONSTANT                                   ~10     'i'
          6        FETCH_DIM_R                                      ~12     !2, 'year'
          7        CONCAT                                           ~13     ~12, '-'
          8        FETCH_DIM_R                                      ~14     !2, 'month'
          9        CONCAT                                           ~15     ~13, ~14
         10        CONCAT                                           ~16     ~15, '-'
         11        FETCH_DIM_R                                      ~17     !2, 'day'
         12        CONCAT                                           ~18     ~16, ~17
         13        CONCAT                                           ~19     ~18, '+'
         14        FETCH_DIM_R                                      ~20     !2, 'hour'
         15        CONCAT                                           ~21     ~19, ~20
         16        FETCH_DIM_R                                      ~22     !2, 'minut'
         17        CONCAT                                           ~23     ~21, ~22
         18        ASSIGN_DIM                                               !4, ~10
         19        OP_DATA                                                  ~23
   17    20        PRE_INC                                                  !1
   15    21      > JMP                                                      ->3
         22    >   FE_FREE                                                  $7
   18    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1394 KiB | 13 Q