3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tzString = 'Europe/London'; $tz = new \DateTimeZone($tzString); echo $tz->getOffset(new \DateTime());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9kLfd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $tzString, !1 = $tz
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Europe%2FLondon'
    3     1        NEW                                                  $3      'DateTimeZone'
          2        SEND_VAR_EX                                                  !0
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !1, $3
    5     5        INIT_METHOD_CALL                                             !1, 'getOffset'
          6        NEW                                                  $6      'DateTime'
          7        DO_FCALL                                          0          
          8        SEND_VAR_NO_REF_EX                                           $6
          9        DO_FCALL                                          0  $8      
         10        ECHO                                                         $8
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
148.75 ms | 473 KiB | 7 Q