3v4l.org

run code in 500+ PHP versions simultaneously
<?php date_default_timezone_set('America/Sao_Paulo'); $a = new DateTime('2012-10-21'); $b = new DateTime('2012-10-22'); var_dump($interval = $a->diff($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5D2u
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $interval
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_default_timezone_set'
          1        SEND_VAL                                                     'America%2FSao_Paulo'
          2        DO_ICALL                                                     
    4     3        NEW                                                  $4      'DateTime'
          4        SEND_VAL_EX                                                  '2012-10-21'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $4
    5     7        NEW                                                  $7      'DateTime'
          8        SEND_VAL_EX                                                  '2012-10-22'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !1, $7
    6    11        INIT_FCALL                                                   'var_dump'
         12        INIT_METHOD_CALL                                             !0, 'diff'
         13        SEND_VAR_EX                                                  !1
         14        DO_FCALL                                          0  $10     
         15        ASSIGN                                               ~11     !2, $10
         16        SEND_VAL                                                     ~11
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.49 ms | 2064 KiB | 15 Q