3v4l.org

run code in 300+ PHP versions simultaneously
<?php $termin[] = array('Datum' => 20121208, 'Ort' => "Wangen", 'Band' => "cOoL RoCk oPaS"); $termin[] = array('Datum' => 20120311, 'Ort' => "Stuttgart", 'Band' => "Die Hosenbodenband"); $termin[] = array('Datum' => 20120628, 'Ort' => "Tübingen", 'Band' => "flying socks"); $termin[] = array('Datum' => 20120628, 'Ort' => "Stuttgart", 'Band' => "flying socks"); echo "<pre>"; print_r ( $termin ); foreach ($termin as $nr => $inhalt) { $band[$nr] = strtolower( $inhalt['Band'] ); $ort[$nr] = strtolower( $inhalt['Ort'] ); $datum[$nr] = strtolower( $inhalt['Datum'] ); } array_multisort($datum, SORT_DESC, $termin); print_r ( $termin ); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 34
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 34
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/lipRY
function name:  (null)
number of ops:  44
compiled vars:  !0 = $termin, !1 = $inhalt, !2 = $nr, !3 = $band, !4 = $ort, !5 = $datum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    6     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
   10     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  <array>
   14     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  <array>
   18     8        ECHO                                                     '%3Cpre%3E'
   19     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   21    12      > FE_RESET_R                                       $11     !0, ->34
         13    > > FE_FETCH_R                                       ~12     $11, !1, ->34
         14    >   ASSIGN                                                   !2, ~12
   23    15        INIT_FCALL                                               'strtolower'
         16        FETCH_DIM_R                                      ~15     !1, 'Band'
         17        SEND_VAL                                                 ~15
         18        DO_ICALL                                         $16     
         19        ASSIGN_DIM                                               !3, !2
         20        OP_DATA                                                  $16
   24    21        INIT_FCALL                                               'strtolower'
         22        FETCH_DIM_R                                      ~18     !1, 'Ort'
         23        SEND_VAL                                                 ~18
         24        DO_ICALL                                         $19     
         25        ASSIGN_DIM                                               !4, !2
         26        OP_DATA                                                  $19
   25    27        INIT_FCALL                                               'strtolower'
         28        FETCH_DIM_R                                      ~21     !1, 'Datum'
         29        SEND_VAL                                                 ~21
         30        DO_ICALL                                         $22     
         31        ASSIGN_DIM                                               !5, !2
         32        OP_DATA                                                  $22
   21    33      > JMP                                                      ->13
         34    >   FE_FREE                                                  $11
   28    35        INIT_FCALL                                               'array_multisort'
         36        SEND_REF                                                 !5
         37        SEND_VAL                                                 3
         38        SEND_REF                                                 !0
         39        DO_ICALL                                                 
   30    40        INIT_FCALL                                               'print_r'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                                 
   31    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.15 ms | 1392 KiB | 19 Q