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 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/SLa2E
function name:  (null)
number of ops:  28
compiled vars:  !0 = $arrEmployees, !1 = $row, !2 = $key, !3 = $age, !4 = $service
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'marco+polo'
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0, 'jane+austen'
          3        OP_DATA                                                  <array>
    5     4        ASSIGN_DIM                                               !0, 'carl+marx'
          5        OP_DATA                                                  <array>
    7     6      > FE_RESET_R                                       $8      !0, ->16
          7    > > FE_FETCH_R                                       ~9      $8, !1, ->16
          8    >   ASSIGN                                                   !2, ~9
    8     9        FETCH_DIM_R                                      ~12     !1, 'age'
         10        ASSIGN_DIM                                               !3, !2
         11        OP_DATA                                                  ~12
    9    12        FETCH_DIM_R                                      ~14     !1, 'service'
         13        ASSIGN_DIM                                               !4, !2
         14        OP_DATA                                                  ~14
    7    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $8
   12    17        INIT_FCALL                                               'array_multisort'
         18        SEND_REF                                                 !3
         19        SEND_VAL                                                 3
         20        SEND_REF                                                 !4
         21        SEND_VAL                                                 4
         22        SEND_REF                                                 !0
         23        DO_ICALL                                                 
   14    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.71 ms | 1400 KiB | 17 Q