3v4l.org

run code in 300+ PHP versions simultaneously
<?php $priority = 1; $translator = "translator_1"; $translators[$priority][] = $translator; $priority = 2; $translator = "translator_2"; $translators[$priority][] = $translator; $priority = 1; $translator = "translator_1a"; $translators[$priority][] = $translator; var_dump($translators); $sorted = array(); krsort($translators); foreach ($translators as $each_translators) { $sorted = array_merge($sorted, $each_translators); } var_dump($sorted);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 30
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 30
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/tSid3
function name:  (null)
number of ops:  35
compiled vars:  !0 = $priority, !1 = $translator, !2 = $translators, !3 = $sorted, !4 = $each_translators
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 'translator_1'
    4     2        FETCH_DIM_W                                      $7      !2, !0
          3        ASSIGN_DIM                                               $7
          4        OP_DATA                                                  !1
    5     5        ASSIGN                                                   !0, 2
    6     6        ASSIGN                                                   !1, 'translator_2'
    7     7        FETCH_DIM_W                                      $11     !2, !0
          8        ASSIGN_DIM                                               $11
          9        OP_DATA                                                  !1
    8    10        ASSIGN                                                   !0, 1
    9    11        ASSIGN                                                   !1, 'translator_1a'
   10    12        FETCH_DIM_W                                      $15     !2, !0
         13        ASSIGN_DIM                                               $15
         14        OP_DATA                                                  !1
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   13    18        ASSIGN                                                   !3, <array>
   14    19        INIT_FCALL                                               'krsort'
         20        SEND_REF                                                 !2
         21        DO_ICALL                                                 
   16    22      > FE_RESET_R                                       $20     !2, ->30
         23    > > FE_FETCH_R                                               $20, !4, ->30
   17    24    >   INIT_FCALL                                               'array_merge'
         25        SEND_VAR                                                 !3
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                         $21     
         28        ASSIGN                                                   !3, $21
   16    29      > JMP                                                      ->23
         30    >   FE_FREE                                                  $20
   19    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !3
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.6 ms | 1401 KiB | 19 Q