3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Sao_Paulo'); $d1=new DateTime("2012-07-08 11:14:15.638276"); $d2=new DateTime("2012-07-08 11:14:15.889342"); $diff=$d2->diff($d1); print_r( $diff ) ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9k6Q
function name:  (null)
number of ops:  19
compiled vars:  !0 = $d1, !1 = $d2, !2 = $diff
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                                                 
    5     3        NEW                                              $4      'DateTime'
          4        SEND_VAL_EX                                              '2012-07-08+11%3A14%3A15.638276'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $4
    6     7        NEW                                              $7      'DateTime'
          8        SEND_VAL_EX                                              '2012-07-08+11%3A14%3A15.889342'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $7
    7    11        INIT_METHOD_CALL                                         !1, 'diff'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !2, $10
    8    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.73 ms | 1394 KiB | 17 Q