3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrEmployees['marco polo'] = array(age => 40, service => 5); $arrEmployees['jane austen'] = array(age => 30, service => 9); $arrEmployees['carl marx'] = array(age => 30, service => 7); foreach ($arrEmployees as $key => $row) { $age[$key] = $row['age']; $service[$key] = $row['service']; } array_multisort($age, SORT_DESC, $service, SORT_ASC, $arrEmployees); var_dump($arrEmployees);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 28
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/UQADL
function name:  (null)
number of ops:  40
compiled vars:  !0 = $arrEmployees, !1 = $row, !2 = $key, !3 = $age, !4 = $service
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~6      'age'
          1        INIT_ARRAY                                       ~7      40, ~6
          2        FETCH_CONSTANT                                   ~8      'service'
          3        ADD_ARRAY_ELEMENT                                ~7      5, ~8
          4        ASSIGN_DIM                                               !0, 'marco+polo'
          5        OP_DATA                                                  ~7
    4     6        FETCH_CONSTANT                                   ~10     'age'
          7        INIT_ARRAY                                       ~11     30, ~10
          8        FETCH_CONSTANT                                   ~12     'service'
          9        ADD_ARRAY_ELEMENT                                ~11     9, ~12
         10        ASSIGN_DIM                                               !0, 'jane+austen'
         11        OP_DATA                                                  ~11
    5    12        FETCH_CONSTANT                                   ~14     'age'
         13        INIT_ARRAY                                       ~15     30, ~14
         14        FETCH_CONSTANT                                   ~16     'service'
         15        ADD_ARRAY_ELEMENT                                ~15     7, ~16
         16        ASSIGN_DIM                                               !0, 'carl+marx'
         17        OP_DATA                                                  ~15
    7    18      > FE_RESET_R                                       $17     !0, ->28
         19    > > FE_FETCH_R                                       ~18     $17, !1, ->28
         20    >   ASSIGN                                                   !2, ~18
    8    21        FETCH_DIM_R                                      ~21     !1, 'age'
         22        ASSIGN_DIM                                               !3, !2
         23        OP_DATA                                                  ~21
    9    24        FETCH_DIM_R                                      ~23     !1, 'service'
         25        ASSIGN_DIM                                               !4, !2
         26        OP_DATA                                                  ~23
    7    27      > JMP                                                      ->19
         28    >   FE_FREE                                                  $17
   12    29        INIT_FCALL                                               'array_multisort'
         30        SEND_REF                                                 !3
         31        SEND_VAL                                                 3
         32        SEND_REF                                                 !4
         33        SEND_VAL                                                 4
         34        SEND_REF                                                 !0
         35        DO_ICALL                                                 
   14    36        INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !0
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.8 ms | 1392 KiB | 17 Q