3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set("display_errors", true); set_error_handler(function() { print_r(func_get_args()); }); try { new DateTimeZone("Twilight zone"); } catch (Exception $e) { // ignore } print_r(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 16
Branch analysis from position: 16
2 jumps found. (Code = 107) Position 1 = 17, Position 2 = -2
Branch analysis from position: 17
filename:       /in/KZPDL
function name:  (null)
number of ops:  23
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                                                 
    4     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'set_error_handler'
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKZPDL%3A6%240'
    8     9        SEND_VAL                                                 ~3
         10        DO_ICALL                                                 
   11    11        NEW                                              $5      'DateTimeZone'
         12        SEND_VAL_EX                                              'Twilight+zone'
         13        DO_FCALL                                      0          
         14        FREE                                                     $5
         15      > JMP                                                      ->17
   12    16  E > > CATCH                                       last         'Exception'
   16    17    >   INIT_FCALL                                               'print_r'
         18        INIT_FCALL                                               'error_get_last'
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FKZPDL%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KZPDL
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'print_r'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FKZPDL%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.83 ms | 1400 KiB | 23 Q