3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_Dump(array_slice((new DateTimeZone('Europe/Berlin'))->getTransitions(), 0, 3)); var_Dump((new DateTimeZone('CET'))->getTransitions()); var_Dump((new DateTimeZone('+01:00'))->getTransitions());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/beumK
function name:  (null)
number of ops:  30
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_slice'
          2        NEW                                              $0      'DateTimeZone'
          3        SEND_VAL_EX                                              'Europe%2FBerlin'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $0, 'getTransitions'
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 3
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    4    13        INIT_FCALL                                               'var_dump'
         14        NEW                                              $5      'DateTimeZone'
         15        SEND_VAL_EX                                              'CET'
         16        DO_FCALL                                      0          
         17        INIT_METHOD_CALL                                         $5, 'getTransitions'
         18        DO_FCALL                                      0  $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
    5    21        INIT_FCALL                                               'var_dump'
         22        NEW                                              $9      'DateTimeZone'
         23        SEND_VAL_EX                                              '%2B01%3A00'
         24        DO_FCALL                                      0          
         25        INIT_METHOD_CALL                                         $9, 'getTransitions'
         26        DO_FCALL                                      0  $11     
         27        SEND_VAR                                                 $11
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.84 ms | 1438 KiB | 15 Q