3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr) { $bt = debug_backtrace(); var_dump($errstr); }); $displays = array( array( 'position' => 1, ), array( 'position' => new stdClass, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { 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/YLZ5S
function name:  (null)
number of ops:  16
compiled vars:  !0 = $displays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYLZ5S%3A3%240'
    6     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   10     4        INIT_ARRAY                                       ~3      <array>
   13     5        NEW                                              $4      'stdClass'
          6        DO_FCALL                                      0          
          7        INIT_ARRAY                                       ~6      $4, 'position'
          8        ADD_ARRAY_ELEMENT                                ~3      ~6
    8     9        ASSIGN                                                   !0, ~3
   19    10        INIT_FCALL                                               'uasort'
         11        SEND_REF                                                 !0
         12        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYLZ5S%3A19%241'
   24    13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYLZ5S%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLZ5S
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $bt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'debug_backtrace'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !2, $3
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FYLZ5S%3A3%240

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

End of function %00%7Bclosure%7D%2Fin%2FYLZ5S%3A19%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.32 ms | 1400 KiB | 21 Q