3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline) { print_r([ 'errno' => $errno, 'errstr' => $errstr, 'errfile' => $errfile, 'errline' => $errline, ]); }); register_shutdown_function(function() { $error = error_get_last(); print_r($error); }); @foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9dPHt
function name:  (null)
number of ops:  13
compiled vars:  none
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%2F9dPHt%3A3%240'
   10     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   12     4        INIT_FCALL                                               'register_shutdown_function'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F9dPHt%3A12%241'
   15     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   17     8        BEGIN_SILENCE                                    ~4      
          9        INIT_FCALL_BY_NAME                                       'foo'
         10        DO_FCALL                                      0          
         11        END_SILENCE                                              ~4
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F9dPHt%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9dPHt
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        INIT_FCALL                                               'print_r'
    5     5        INIT_ARRAY                                       ~4      !0, 'errno'
    6     6        ADD_ARRAY_ELEMENT                                ~4      !1, 'errstr'
    7     7        ADD_ARRAY_ELEMENT                                ~4      !2, 'errfile'
    8     8        ADD_ARRAY_ELEMENT                                ~4      !3, 'errline'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2F9dPHt%3A12%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9dPHt
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
   14     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   15     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F9dPHt%3A12%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1396 KiB | 21 Q