3v4l.org

run code in 300+ PHP versions simultaneously
<?php $beta_lists = array ( 'Apple' => 'http://www.abc.mno/apple/', 'Ball' => 'http://www.abc.mno/ball/', 'Builders' => 'http://www.abc.mno/builders/', 'Bowling' => 'http://www.abc.mno/bowling/', 'Correct' => 'http://www.abc.mno/correct/', 'Campaign' => 'http://www.abc.mno/compain/', 'Direct' => 'http://www.abc.mno/direct/', 'Degree' => 'http://www.abc.mno/degree/' ); ksort($beta_lists); $groups = array(); foreach ($beta_lists as $title => $value) { $groups[$title[0]][$title] = $value; } print_r($groups); echo count($groups);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/tFdsb
function name:  (null)
number of ops:  20
compiled vars:  !0 = $beta_lists, !1 = $groups, !2 = $value, !3 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'ksort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
   15     4        ASSIGN                                                   !1, <array>
   16     5      > FE_RESET_R                                       $7      !0, ->13
          6    > > FE_FETCH_R                                       ~8      $7, !2, ->13
          7    >   ASSIGN                                                   !3, ~8
   17     8        FETCH_DIM_R                                      ~10     !3, 0
          9        FETCH_DIM_W                                      $11     !1, ~10
         10        ASSIGN_DIM                                               $11, !3
         11        OP_DATA                                                  !2
   16    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $7
   19    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   20    17        COUNT                                            ~14     !1
         18        ECHO                                                     ~14
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.44 ms | 1405 KiB | 17 Q