3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Initialise variables. $lists = []; // Get the message queue $messages = (array)\JFactory::getApplication()->getMessageQueue(); // Build the sorted message list foreach ($messages as $msg) { if (isset($msg['type'], $msg['message'])) { $lists[$msg['type']][] = $msg['message']; } }
Finding entry points
Branch analysis from position: 0
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 = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/DZGWd
function name:  (null)
number of ops:  22
compiled vars:  !0 = $lists, !1 = $messages, !2 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_STATIC_METHOD_CALL                                  'JFactory', 'getApplication'
          2        DO_FCALL                                      0  $4      
          3        INIT_METHOD_CALL                                         $4, 'getMessageQueue'
          4        DO_FCALL                                      0  $5      
          5        CAST                                          7  ~6      $5
          6        ASSIGN                                                   !1, ~6
    7     7      > FE_RESET_R                                       $8      !1, ->20
          8    > > FE_FETCH_R                                               $8, !2, ->20
    9     9    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !2, 'type'
         10      > JMPZ_EX                                          ~9      ~9, ->13
         11    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~10     !2, 'message'
         12        BOOL                                             ~9      ~10
         13    > > JMPZ                                                     ~9, ->19
   11    14    >   FETCH_DIM_R                                      ~11     !2, 'type'
         15        FETCH_DIM_R                                      ~14     !2, 'message'
         16        FETCH_DIM_W                                      $12     !0, ~11
         17        ASSIGN_DIM                                               $12
         18        OP_DATA                                                  ~14
    7    19    > > JMP                                                      ->8
         20    >   FE_FREE                                                  $8
   13    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.08 ms | 1394 KiB | 13 Q