3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nov = new DateTimeImmutable('2022-11-01 00:00:00.0 Africa/Nairobi'); $dec = new DateTimeImmutable('2022-12-01 00:00:00.0 Africa/Nairobi'); print_r($dec->diff($nov));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/03NVi
function name:  (null)
number of ops:  15
compiled vars:  !0 = $nov, !1 = $dec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeImmutable'
          1        SEND_VAL_EX                                              '2022-11-01+00%3A00%3A00.0+Africa%2FNairobi'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTimeImmutable'
          5        SEND_VAL_EX                                              '2022-12-01+00%3A00%3A00.0+Africa%2FNairobi'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'print_r'
          9        INIT_METHOD_CALL                                         !1, 'diff'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.22 ms | 1009 KiB | 14 Q