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' => 0, ), array( 'position' => NULL, ), ); // 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/32L43
function name:  (null)
number of ops:  11
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%2F32L43%3A3%240'
    6     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    8     4        ASSIGN                                                   !0, <array>
   19     5        INIT_FCALL                                               'uasort'
          6        SEND_REF                                                 !0
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F32L43%3A19%241'
   25     8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F32L43%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/32L43
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%2F32L43%3A3%240

Function %00%7Bclosure%7D%2Fin%2F32L43%3A19%241:
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/32L43
function name:  {closure}
number of ops:  19
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, ->17
   21     6    >   INIT_FCALL                                               'trigger_error'
          7        SEND_VAL                                                 'test'
          8        DO_ICALL                                                 
   22     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
   24    17    > > RETURN                                                   0
   25    18*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.73 ms | 1400 KiB | 23 Q