3v4l.org

run code in 300+ PHP versions simultaneously
<?php $meeting = array( array( 'name' => 'meeting1', 'year' => '2020' ), array( 'name' => 'meeting2', 'year' => '2020' ), array( 'name' => 'meeting3', 'year' => '2019' ), array( 'name' => 'meeting4', 'year' => '2018' ), array( 'name' => 'meeting5', 'year' => '2018' ) ); foreach($meeting as $e) { $array[$e['year']][] = array('name' => $e['name']); } print_r($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/YREV3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $meeting, !1 = $e, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1      > FE_RESET_R                                       $4      !0, ->10
          2    > > FE_FETCH_R                                               $4, !1, ->10
   27     3    >   FETCH_DIM_R                                      ~5      !1, 'year'
          4        FETCH_DIM_R                                      ~8      !1, 'name'
          5        INIT_ARRAY                                       ~9      ~8, 'name'
          6        FETCH_DIM_W                                      $6      !2, ~5
          7        ASSIGN_DIM                                               $6
          8        OP_DATA                                                  ~9
   26     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $4
   30    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.15 ms | 1009 KiB | 14 Q