3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataPoints = array( array('1' => '33','2' => 'dave','3' => '367'), array('1' => '168','2' => 'susan','3' => '56788'), array('1' => '99','2' => 'tim','3' => '6') ); foreach ($dataPoints as $key => $row) { $x[$key] = $row['1']; $y[$key] = $row['2']; $z[$key] = $row['3']; } $aaa = array_multisort($dataPoints, $x, SORT_DESC, $y, SORT_ASC, $z, $dataPoints); print_r($aaa); //TRUE or FALSE prh($dataPoints); //The data
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/PaXFb
function name:  (null)
number of ops:  32
compiled vars:  !0 = $dataPoints, !1 = $row, !2 = $key, !3 = $x, !4 = $y, !5 = $z, !6 = $aaa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $8      !0, ->14
          2    > > FE_FETCH_R                                       ~9      $8, !1, ->14
          3    >   ASSIGN                                                   !2, ~9
    9     4        FETCH_DIM_R                                      ~12     !1, 1
          5        ASSIGN_DIM                                               !3, !2
          6        OP_DATA                                                  ~12
   10     7        FETCH_DIM_R                                      ~14     !1, 2
          8        ASSIGN_DIM                                               !4, !2
          9        OP_DATA                                                  ~14
   11    10        FETCH_DIM_R                                      ~16     !1, 3
         11        ASSIGN_DIM                                               !5, !2
         12        OP_DATA                                                  ~16
    8    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $8
   14    15        INIT_FCALL                                               'array_multisort'
         16        SEND_REF                                                 !0
         17        SEND_REF                                                 !3
         18        SEND_VAL                                                 3
         19        SEND_REF                                                 !4
         20        SEND_VAL                                                 4
         21        SEND_REF                                                 !5
         22        SEND_REF                                                 !0
         23        DO_ICALL                                         $17     
         24        ASSIGN                                                   !6, $17
   16    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !6
         27        DO_ICALL                                                 
   17    28        INIT_FCALL_BY_NAME                                       'prh'
         29        SEND_VAR_EX                                              !0
         30        DO_FCALL                                      0          
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1401 KiB | 17 Q