3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dt1 = new DateTimeImmutable('2020-07-19 18:30:00', new DateTimeZone('Europe/Berlin')); $dt2 = new DateTimeImmutable('2020-07-19 16:30:00', new DateTimeZone('UTC')); print_r($dt1->diff($dt2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wofuu
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dt1, !1 = $dt2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTimeImmutable'
          1        SEND_VAL_EX                                                  '2020-07-19+18%3A30%3A00'
          2        NEW                                                  $3      'DateTimeZone'
          3        SEND_VAL_EX                                                  'Europe%2FBerlin'
          4        DO_FCALL                                          0          
          5        SEND_VAR_NO_REF_EX                                           $3
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !0, $2
    4     8        NEW                                                  $7      'DateTimeImmutable'
          9        SEND_VAL_EX                                                  '2020-07-19+16%3A30%3A00'
         10        NEW                                                  $8      'DateTimeZone'
         11        SEND_VAL_EX                                                  'UTC'
         12        DO_FCALL                                          0          
         13        SEND_VAR_NO_REF_EX                                           $8
         14        DO_FCALL                                          0          
         15        ASSIGN                                                       !1, $7
    6    16        INIT_FCALL                                                   'print_r'
         17        INIT_METHOD_CALL                                             !0, 'diff'
         18        SEND_VAR_EX                                                  !1
         19        DO_FCALL                                          0  $12     
         20        SEND_VAR                                                     $12
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.68 ms | 2052 KiB | 14 Q