3v4l.org

run code in 300+ PHP versions simultaneously
<?php $displays = array( array( 'position' => 0, ), array( 'position' => 1, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { trigger_error('test'); return $display1['position'] < $display2['position'] ? -1 : 1; } return 0; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MZlA3
function name:  (null)
number of ops:  7
compiled vars:  !0 = $displays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'uasort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMZlA3%3A13%240'
   19     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMZlA3%3A13%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MZlA3
function name:  {closure}
number of ops:  19
compiled vars:  !0 = $display1, !1 = $display2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        FETCH_DIM_R                                      ~2      !0, 'position'
          3        FETCH_DIM_R                                      ~3      !1, 'position'
          4        IS_NOT_EQUAL                                             ~2, ~3
          5      > JMPZ                                                     ~4, ->17
   15     6    >   INIT_FCALL                                               'trigger_error'
          7        SEND_VAL                                                 'test'
          8        DO_ICALL                                                 
   16     9        FETCH_DIM_R                                      ~6      !0, 'position'
         10        FETCH_DIM_R                                      ~7      !1, 'position'
         11        IS_SMALLER                                               ~6, ~7
         12      > JMPZ                                                     ~8, ->15
         13    >   QM_ASSIGN                                        ~9      -1
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~9      1
         16    > > RETURN                                                   ~9
   18    17    > > RETURN                                                   0
   19    18*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMZlA3%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.03 ms | 1396 KiB | 17 Q