3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.94 ms | 1394 KiB | 17 Q