3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezone = new DateTimeZone("Europe/London"); $transitions = $timezone->getTransitions(); print_r(array_slice($transitions, time()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TSLSS
function name:  (null)
number of ops:  17
compiled vars:  !0 = $timezone, !1 = $transitions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeZone'
          1        SEND_VAL_EX                                              'Europe%2FLondon'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'getTransitions'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_slice'
          9        SEND_VAR                                                 !1
         10        INIT_FCALL                                               'time'
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.18 ms | 1394 KiB | 19 Q