3v4l.org

run code in 300+ PHP versions simultaneously
<?php $module_updates = array( 2 => 'update_2', 1000 => 'update_1000', 7001 => 'update_7001', 8000 => 'update_8000', 1001 => 'update_1001', 7000 => 'update_7000', ); uksort($module_updates, function($a, $b) { print "$a\n"; print "$b\n"; if ($a > $b) { return ($a >= 7000 && $a < 9000) ? -1 : 1; } elseif ($b > $a) { return ($b >= 7000 && $b < 9000) ? 1 : -1; } else { return 0; } }); print_r($module_updates);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MH1dN
function name:  (null)
number of ops:  10
compiled vars:  !0 = $module_updates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'uksort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMH1dN%3A10%240'
   22     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   23     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMH1dN%3A10%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 32
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MH1dN
function name:  {closure}
number of ops:  34
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      !0, '%0A'
          4        ECHO                                                     ~2
   12     5        NOP                                                      
          6        FAST_CONCAT                                      ~3      !1, '%0A'
          7        ECHO                                                     ~3
   13     8        IS_SMALLER                                               !1, !0
          9      > JMPZ                                                     ~4, ->20
   14    10    >   IS_SMALLER_OR_EQUAL                              ~5      7000, !0
         11      > JMPZ_EX                                          ~5      ~5, ->14
         12    >   IS_SMALLER                                       ~6      !0, 9000
         13        BOOL                                             ~5      ~6
         14    > > JMPZ                                                     ~5, ->17
         15    >   QM_ASSIGN                                        ~7      -1
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~7      1
         18    > > RETURN                                                   ~7
         19*       JMP                                                      ->33
   16    20    >   IS_SMALLER                                               !0, !1
         21      > JMPZ                                                     ~8, ->32
   17    22    >   IS_SMALLER_OR_EQUAL                              ~9      7000, !1
         23      > JMPZ_EX                                          ~9      ~9, ->26
         24    >   IS_SMALLER                                       ~10     !1, 9000
         25        BOOL                                             ~9      ~10
         26    > > JMPZ                                                     ~9, ->29
         27    >   QM_ASSIGN                                        ~11     1
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~11     -1
         30    > > RETURN                                                   ~11
         31*       JMP                                                      ->33
   20    32    > > RETURN                                                   0
   22    33*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMH1dN%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.59 ms | 1400 KiB | 17 Q