3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array( array(0=>"a", 1=>"b", 4=>"c"), array(3=>"z"), array(0=>"p", 2=>"k"), ); usort($my_array, function($a, $b) { if (count($a) == count($b)) { return 0; } return (count($a) < count($b)) ? 1 : -1; }); print_r($my_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8CLMK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $my_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F8CLMK%3A9%240'
   14     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   16     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F8CLMK%3A9%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/8CLMK
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        COUNT                                            ~2      !0
          3        COUNT                                            ~3      !1
          4        IS_EQUAL                                                 ~2, ~3
          5      > JMPZ                                                     ~4, ->7
   11     6    > > RETURN                                                   0
   13     7    >   COUNT                                            ~5      !0
          8        COUNT                                            ~6      !1
          9        IS_SMALLER                                               ~5, ~6
         10      > JMPZ                                                     ~7, ->13
         11    >   QM_ASSIGN                                        ~8      1
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      -1
         14    > > RETURN                                                   ~8
   14    15*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F8CLMK%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1396 KiB | 17 Q