3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = new DateTimeImmutable('2022-02-17T12:00:00 Europe/Paris'); $b = $a->add(new Dateinterval('P12M')); var_Dump($a, $b, (new DateTimezone('Europe/Paris'))->getTransitions($a->getTimestamp(), $b->getTimestamp()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FSAmO
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTimeImmutable'
          1        SEND_VAL_EX                                                  '2022-02-17T12%3A00%3A00+Europe%2FParis'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        INIT_METHOD_CALL                                             !0, 'add'
          5        NEW                                                  $5      'Dateinterval'
          6        SEND_VAL_EX                                                  'P12M'
          7        DO_FCALL                                          0          
          8        SEND_VAR_NO_REF_EX                                           $5
          9        DO_FCALL                                          0  $7      
         10        ASSIGN                                                       !1, $7
    5    11        INIT_FCALL                                                   'var_dump'
         12        SEND_VAR                                                     !0
         13        SEND_VAR                                                     !1
         14        NEW                                                  $9      'DateTimezone'
         15        SEND_VAL_EX                                                  'Europe%2FParis'
         16        DO_FCALL                                          0          
         17        INIT_METHOD_CALL                                             $9, 'getTransitions'
         18        INIT_METHOD_CALL                                             !0, 'getTimestamp'
         19        DO_FCALL                                          0  $11     
         20        SEND_VAR_NO_REF_EX                                           $11
         21        INIT_METHOD_CALL                                             !1, 'getTimestamp'
         22        DO_FCALL                                          0  $12     
         23        SEND_VAR_NO_REF_EX                                           $12
         24        DO_FCALL                                          0  $13     
         25        SEND_VAR                                                     $13
         26        DO_ICALL                                                     
         27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.17 ms | 477 KiB | 8 Q