3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( array ('B.Osweiler',14.88 ), array ('D.Fales', 3.96), array ('B.Radcliff', 6.4 ), array ('K.Ballage', 13.7 ), array ('J.Langford', 2.8 ), array ('B.Howell', 16.8 ) ); print '<pre>'; print "Before Sort". PHP_EOL;; print_r($array); usort($array, function($a, $b) { return $b['1'] - $a['1']; }); print "After Sort". PHP_EOL; print_r($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bWdIq
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ECHO                                                     '%3Cpre%3E'
    9     2        ECHO                                                     'Before+Sort%0A'
   10     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'usort'
          7        SEND_REF                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FbWdIq%3A11%240'
   13     9        SEND_VAL                                                 ~3
         10        DO_ICALL                                                 
   15    11        ECHO                                                     'After+Sort%0A'
   16    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   17    15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FbWdIq%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bWdIq
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        FETCH_DIM_R                                      ~2      !1, 1
          3        FETCH_DIM_R                                      ~3      !0, 1
          4        SUB                                              ~4      ~2, ~3
          5      > RETURN                                                   ~4
   13     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FbWdIq%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.09 ms | 1400 KiB | 17 Q