3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1386 KiB | 15 Q