3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { $test = new \DateTime('undefined'); } catch(\Exception $e) { var_dump($e->getMessage()); } var_dump(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
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/DATvd
function name:  (null)
number of ops:  17
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                                                          ->11
    4     5  E > > CATCH                                           last         'Exception'
    5     6    >   INIT_FCALL                                                   'var_dump'
          7        INIT_METHOD_CALL                                             !1, 'getMessage'
          8        DO_FCALL                                          0  $5      
          9        SEND_VAR                                                     $5
         10        DO_ICALL                                                     
    7    11    >   INIT_FCALL                                                   'var_dump'
         12        INIT_FCALL                                                   'error_get_last'
         13        DO_ICALL                                             $7      
         14        SEND_VAR                                                     $7
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
137.58 ms | 3430 KiB | 15 Q