3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($code, $message, $filename, $line) { var_dump(1, $code, $message); die(); }); set_exception_handler(function($e) { var_dump(2, $e); }); register_shutdown_function(function() { $error = error_get_last(); var_dump(3, $error); }); try { asdas(); } catch (Exception $e) { var_dump(4); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g1MMe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $e
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%2Fg1MMe%3A3%240'
    6     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'set_exception_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fg1MMe%3A9%241'
   11     6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
   13     8        INIT_FCALL                                               'register_shutdown_function'
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fg1MMe%3A13%242'
   16    10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
   19    12        INIT_FCALL_BY_NAME                                       'asdas'
         13        DO_FCALL                                      0          
         14      > JMP                                                      ->19
   20    15  E > > CATCH                                       last         'Exception'
   21    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 4
         18        DO_ICALL                                                 
   22    19    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fg1MMe%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/g1MMe
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $code, !1 = $message, !2 = $filename, !3 = $line
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                                               'var_dump'
          5        SEND_VAL                                                 1
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9      > EXIT                                                     
    6    10*     > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2Fg1MMe%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g1MMe
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 2
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   null

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

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

End of function %00%7Bclosure%7D%2Fin%2Fg1MMe%3A13%242

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.23 ms | 1400 KiB | 23 Q