3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(-1); set_error_handler(function() { echo "Caught an error:\n"; print_r(func_get_args()); }, -1); try { new DateTimeZone("Twilight zone"); } catch (Exception $e) { // ignore } echo "Checking the last error:\n"; print_r(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
filename:       /in/RmO4T
function name:  (null)
number of ops:  21
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     -1
          2        DO_ICALL                                                     
    5     3        INIT_FCALL                                                   'set_error_handler'
          4        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
    8     5        SEND_VAL                                                     ~2
          6        SEND_VAL                                                     -1
    5     7        DO_ICALL                                                     
   11     8        NEW                                                  $4      'DateTimeZone'
          9        SEND_VAL_EX                                                  'Twilight+zone'
         10        DO_FCALL                                          0          
         11        FREE                                                         $4
         12      > JMP                                                          ->14
   12    13  E > > CATCH                                           last         'Exception'
   16    14    >   ECHO                                                         'Checking+the+last+error%3A%0A'
   17    15        INIT_FCALL                                                   'print_r'
         16        INIT_FCALL                                                   'error_get_last'
         17        DO_ICALL                                             $6      
         18        SEND_VAR                                                     $6
         19        DO_ICALL                                                     
         20      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RmO4T
function name:  {closure:/in/RmO4T:5}
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                         'Caught+an+error%3A%0A'
    7     1        INIT_FCALL                                                   'print_r'
          2        FUNC_GET_ARGS                                        ~0      
          3        SEND_VAL                                                     ~0
          4        DO_ICALL                                                     
    8     5      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.76 ms | 2958 KiB | 17 Q