3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Results = array( "Matchings" => array( array("Quotient"=>0.5) ) ); echo "<pre>".print_r($Results, true)."</pre>"; $Results["Matchings"] = uasort($Results["Matchings"], function($a, $b){ if($a["Quotient"] == $b["Quotient"]) { return 0; } return ($a["Quotient"] > $b["Quotient"] ? 1 : -1); }); die("<pre>".print_r($Results, true)."</pre>");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/5fQv5
function name:  (null)
number of ops:  24
compiled vars:  !0 = $Results
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      '%3Cpre%3E', $2
          6        CONCAT                                           ~4      ~3, '%3C%2Fpre%3E'
          7        ECHO                                                     ~4
    8     8        INIT_FCALL                                               'uasort'
          9        FETCH_DIM_W                                      $6      !0, 'Matchings'
         10        SEND_REF                                                 $6
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F5fQv5%3A8%240'
   15    12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
    8    14        ASSIGN_DIM                                               !0, 'Matchings'
   15    15        OP_DATA                                                  $8
   16    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $9      
         20        CONCAT                                           ~10     '%3Cpre%3E', $9
         21        CONCAT                                           ~11     ~10, '%3C%2Fpre%3E'
         22      > EXIT                                                     ~11
         23*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F5fQv5%3A8%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5fQv5
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        FETCH_DIM_R                                      ~2      !0, 'Quotient'
          3        FETCH_DIM_R                                      ~3      !1, 'Quotient'
          4        IS_EQUAL                                                 ~2, ~3
          5      > JMPZ                                                     ~4, ->7
   11     6    > > RETURN                                                   0
   14     7    >   FETCH_DIM_R                                      ~5      !0, 'Quotient'
          8        FETCH_DIM_R                                      ~6      !1, 'Quotient'
          9        IS_SMALLER                                               ~6, ~5
         10      > JMPZ                                                     ~7, ->13
         11    >   QM_ASSIGN                                        ~8      1
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      -1
         14    > > RETURN                                                   ~8
   15    15*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F5fQv5%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.21 ms | 1400 KiB | 17 Q