3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = "Etc/GMT+3"; try { new DateTimeZone( $tz ); echo "good: $tz"; } catch ( Exception $e ) { echo "bad: $tz"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FDrh8
function name:  (null)
number of ops:  14
compiled vars:  !0 = $tz, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Etc%2FGMT%2B3'
    6     1        NEW                                              $3      'DateTimeZone'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        FREE                                                     $3
    7     5        NOP                                                      
          6        FAST_CONCAT                                      ~5      'good%3A+', !0
          7        ECHO                                                     ~5
          8      > JMP                                                      ->13
    8     9  E > > CATCH                                       last         'Exception'
    9    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~6      'bad%3A+', !0
         12        ECHO                                                     ~6
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.59 ms | 1393 KiB | 13 Q