3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(range('a', 'z') as $letter){ try{ $date = new \DateTime($letter); var_dump($date); } catch(Exception $e){ var_dump($e); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
filename:       /in/2ql2Q
function name:  (null)
number of ops:  21
compiled vars:  !0 = $letter, !1 = $date, !2 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'range'
         1        SEND_VAL                                                 'a'
         2        SEND_VAL                                                 'z'
         3        DO_ICALL                                         $3      
         4      > FE_RESET_R                                       $4      $3, ->19
         5    > > FE_FETCH_R                                               $4, !0, ->19
   4     6    >   NEW                                              $5      :28
         7        SEND_VAR_EX                                              !0
         8        DO_FCALL                                      0          
         9        QM_ASSIGN                                                !1
   5    10        INIT_FCALL                                               'var_dump'
        11        SEND_VAR                                                 !1
        12        DO_ICALL                                                 
        13      > JMP                                                      ->18
   6    14  E > > CATCH                                       last         'Exception'
   7    15    >   INIT_FCALL                                               'var_dump'
        16        SEND_VAR                                                 !2
        17        DO_ICALL                                                 
   2    18    > > JMP                                                      ->5
        19    >   FE_FREE                                                  $4
   9    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0