3v4l.org

run code in 500+ PHP versions simultaneously
<?php $refDateTimeZone = new DateTimeZone('UTC'); $dateTimeZone = new DateTimeZone('Africa/Addis_Ababa'); var_dump($dateTimeZone->getOffset(new DateTime('now', $refDateTimeZone)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BAthE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $refDateTimeZone, !1 = $dateTimeZone
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTimeZone'
          1        SEND_VAL_EX                                                  'UTC'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        NEW                                                  $5      'DateTimeZone'
          5        SEND_VAL_EX                                                  'Africa%2FAddis_Ababa'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $5
    5     8        INIT_FCALL                                                   'var_dump'
          9        INIT_METHOD_CALL                                             !1, 'getOffset'
         10        NEW                                                  $8      'DateTime'
         11        SEND_VAL_EX                                                  'now'
         12        SEND_VAR_EX                                                  !0
         13        DO_FCALL                                          0          
         14        SEND_VAR_NO_REF_EX                                           $8
         15        DO_FCALL                                          0  $10     
         16        SEND_VAR                                                     $10
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.76 ms | 477 KiB | 8 Q