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) { 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/R6V86
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%2FR6V86%3A10%240'
   20     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   21     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FR6V86%3A10%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R6V86
function name:  {closure}
number of ops:  28
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        IS_SMALLER                                               !1, !0
          3      > JMPZ                                                     ~2, ->14
   12     4    >   IS_SMALLER_OR_EQUAL                              ~3      7000, !0
          5      > JMPZ_EX                                          ~3      ~3, ->8
          6    >   IS_SMALLER                                       ~4      !0, 9000
          7        BOOL                                             ~3      ~4
          8    > > JMPZ                                                     ~3, ->11
          9    >   QM_ASSIGN                                        ~5      -1
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~5      1
         12    > > RETURN                                                   ~5
         13*       JMP                                                      ->27
   14    14    >   IS_SMALLER                                               !0, !1
         15      > JMPZ                                                     ~6, ->26
   15    16    >   IS_SMALLER_OR_EQUAL                              ~7      7000, !1
         17      > JMPZ_EX                                          ~7      ~7, ->20
         18    >   IS_SMALLER                                       ~8      !1, 9000
         19        BOOL                                             ~7      ~8
         20    > > JMPZ                                                     ~7, ->23
         21    >   QM_ASSIGN                                        ~9      -1
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~9      1
         24    > > RETURN                                                   ~9
         25*       JMP                                                      ->27
   18    26    > > RETURN                                                   0
   20    27*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.51 ms | 1400 KiB | 17 Q