3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr) { $bt = debug_backtrace(); var_dump($errstr); }); $arr = array(1, 2); usort($arr, function($a, $b) use ($arr) { trigger_error('test'); return $a > $b; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XnOai
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
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%2FXnOai%3A3%240'
    6     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    8     4        ASSIGN                                                   !0, <array>
    9     5        INIT_FCALL                                               'usort'
          6        SEND_REF                                                 !0
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXnOai%3A9%241'
          8        BIND_LEXICAL                                             ~4, !0
   12     9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

Function %00%7Bclosure%7D%2Fin%2FXnOai%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XnOai
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $a, !1 = $b, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   10     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'test'
          5        DO_ICALL                                                 
   11     6        IS_SMALLER                                       ~4      !1, !0
          7      > RETURN                                                   ~4
   12     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXnOai%3A9%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.36 ms | 1396 KiB | 23 Q