3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $test = new \DateTime('undefined'); } catch(\Exception $e) { echo $e; } var_dump(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5bN5o
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'undefined'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
          4      > JMP                                                      ->7
    4     5  E > > CATCH                                       last         'Exception'
    5     6    >   ECHO                                                     !1
    7     7    >   INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'error_get_last'
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.48 ms | 1394 KiB | 17 Q