3v4l.org

run code in 200+ PHP versions simultaneously
<?php //round pour le changement d'heure $debut = mktime(0, 0, 0, 10, 27, 2013); $fin = mktime(23, 59, 59, 11, 10, 2013); $d1 = new DateTime('now',new DateTimeZone('Europe/Paris')); $d2 = new DateTime('now',new DateTimeZone('Europe/Paris')); $d1->setTimestamp($debut); $d2->setTimestamp($fin); $diff = $d1->diff($d2); print_r($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ab0Hm
function name:  (null)
number of ops:  48
compiled vars:  !0 = $debut, !1 = $fin, !2 = $d1, !3 = $d2, !4 = $diff
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   INIT_FCALL                                               'mktime'
         1        SEND_VAL                                                 0
         2        SEND_VAL                                                 0
         3        SEND_VAL                                                 0
         4        SEND_VAL                                                 10
         5        SEND_VAL                                                 27
         6        SEND_VAL                                                 2013
         7        DO_ICALL                                         $5      
         8        QM_ASSIGN                                                !0
   5     9        INIT_FCALL                                               'mktime'
        10        SEND_VAL                                                 23
        11        SEND_VAL                                                 59
        12        SEND_VAL                                                 59
        13        SEND_VAL                                                 11
        14        SEND_VAL                                                 10
        15        SEND_VAL                                                 2013
        16        DO_ICALL                                         $7      
        17        QM_ASSIGN                                                !1
   7    18        NEW                                              $9      :69
        19        SEND_VAL_EX                                              'now'
        20        NEW                                              $10     :68
        21        SEND_VAL_EX                                              'Europe%2FParis'
        22        DO_FCALL                                      0          
        23        SEND_VAR_NO_REF_EX                                       $10
        24        DO_FCALL                                      0          
        25        QM_ASSIGN                                                !2
   8    26        NEW                                              $14     :59
        27        SEND_VAL_EX                                              'now'
        28        NEW                                              $15     :58
        29        SEND_VAL_EX                                              'Europe%2FParis'
        30        DO_FCALL                                      0          
        31        SEND_VAR_NO_REF_EX                                       $15
        32        DO_FCALL                                      0          
        33        QM_ASSIGN                                                !3
   9    34        INIT_METHOD_CALL                                         !2, 'setTimestamp'
        35        SEND_VAR_EX                                              !0
        36        DO_FCALL                                      0          
  10    37        INIT_METHOD_CALL                                         !3, 'setTimestamp'
        38        SEND_VAR_EX                                              !1
        39        DO_FCALL                                      0          
  11    40        INIT_METHOD_CALL                                         !2, 'diff'
        41        SEND_VAR_EX                                              !3
        42        DO_FCALL                                      0  $21     
        43        QM_ASSIGN                                                !4
  13    44        INIT_FCALL                                               'print_r'
        45        SEND_VAR                                                 !4
        46        DO_ICALL                                                 
        47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0