3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('date.timezone', NULL); try { $date = new DateTime('2011-08-28T00:00:00+0000'); echo $date->format('O'); } catch (Exception $e) { echo 'Exception thrown.'; } echo PHP_EOL; date_default_timezone_set('America/New_York'); try { $date = new DateTime('2011-08-28T00:00:00+0000'); echo $date->format('O'); } catch (Exception $e) { echo 'Exception thrown.'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
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
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Found catch point at position: 28
Branch analysis from position: 28
2 jumps found. (Code = 107) Position 1 = 29, Position 2 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4iVJ8
function name:  (null)
number of ops:  31
compiled vars:  !0 = $date, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'date.timezone'
          2        SEND_VAL                                                     null
          3        DO_ICALL                                                     
    6     4        NEW                                                  $3      'DateTime'
          5        SEND_VAL_EX                                                  '2011-08-28T00%3A00%3A00%2B0000'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !0, $3
    7     8        INIT_METHOD_CALL                                             !0, 'format'
          9        SEND_VAL_EX                                                  'O'
         10        DO_FCALL                                          0  $6      
         11        ECHO                                                         $6
         12      > JMP                                                          ->15
    8    13  E > > CATCH                                           last         'Exception'
    9    14    >   ECHO                                                         'Exception+thrown.'
   12    15    >   ECHO                                                         '%0A'
   14    16        INIT_FCALL                                                   'date_default_timezone_set'
         17        SEND_VAL                                                     'America%2FNew_York'
         18        DO_ICALL                                                     
   16    19        NEW                                                  $8      'DateTime'
         20        SEND_VAL_EX                                                  '2011-08-28T00%3A00%3A00%2B0000'
         21        DO_FCALL                                          0          
         22        ASSIGN                                                       !0, $8
   17    23        INIT_METHOD_CALL                                             !0, 'format'
         24        SEND_VAL_EX                                                  'O'
         25        DO_FCALL                                          0  $11     
         26        ECHO                                                         $11
         27      > JMP                                                          ->30
   18    28  E > > CATCH                                           last         'Exception'
   19    29    >   ECHO                                                         'Exception+thrown.'
   20    30    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.67 ms | 3326 KiB | 15 Q