3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alliances = [ ['id' => 1, 'output' => '1', 'score' => 10], ['id' => 2, 'output' => '0', 'score' => 9], ['id' => 3, 'output' => '1', 'score' => 11], ['id' => 4, 'output' => '1', 'score' => 9], ['id' => 5, 'output' => '0', 'score' => 10], ]; array_multisort(...[array_column($alliances, 'output'), SORT_DESC, array_column($alliances, 'score'), SORT_DESC, &$alliances]); var_export($alliances);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1pKUh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $alliances
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'array_multisort'
          2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'output'
          5        DO_ICALL                                         $2      
          6        INIT_ARRAY                                       ~3      $2
          7        ADD_ARRAY_ELEMENT                                ~3      3
          8        INIT_FCALL                                               'array_column'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'score'
         11        DO_ICALL                                         $4      
         12        ADD_ARRAY_ELEMENT                                ~3      $4
         13        ADD_ARRAY_ELEMENT                                ~3      3
         14        ADD_ARRAY_ELEMENT                                ~3      !0
         15        SEND_UNPACK                                              ~3
         16        CHECK_UNDEF_ARGS                                         
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'var_export'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.8 ms | 999 KiB | 16 Q