3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 1659458933; $tz = new DateTimeZone( 'America/Indiana/Indianapolis' ); $transitions = $tz->getTransitions( $time ); if(is_array($transitions) && count($transitions) > 1) { var_dump( $transitions ); } else { //Nothing }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 14
filename:       /in/NiY8q
function name:  (null)
number of ops:  20
compiled vars:  !0 = $time, !1 = $tz, !2 = $transitions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1659458933
    4     1        NEW                                              $4      'DateTimeZone'
          2        SEND_VAL_EX                                              'America%2FIndiana%2FIndianapolis'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    5     5        INIT_METHOD_CALL                                         !1, 'getTransitions'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
    6     9        TYPE_CHECK                                  128  ~9      !2
         10      > JMPZ_EX                                          ~9      ~9, ->14
         11    >   COUNT                                            ~10     !2
         12        IS_SMALLER                                       ~11     1, ~10
         13        BOOL                                             ~9      ~11
         14    > > JMPZ                                                     ~9, ->19
    7    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
    6    18      > JMP                                                      ->19
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.66 ms | 1450 KiB | 14 Q