3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $now = new Datetime("2013-04-09 23:45:15",new DateTimeZone("UTC")); $lvLA = new Datetime("2013-04-09 23:44:21",new DateTimeZone('America/Los_Angeles')); $lvUTC = new Datetime("2013-04-09 23:44:21",new DateTimeZone('UTC')); $interval1 = $lvLA->diff($now,true); $interval2 = $lvUTC->diff($now,true); print_r($interval1); print_r($interval2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p853D
function name:  (null)
number of ops:  44
compiled vars:  !0 = $now, !1 = $lvLA, !2 = $lvUTC, !3 = $interval1, !4 = $interval2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FLos_Angeles'
          2        DO_ICALL                                                 
    4     3        NEW                                              $6      'Datetime'
          4        SEND_VAL_EX                                              '2013-04-09+23%3A45%3A15'
          5        NEW                                              $7      'DateTimeZone'
          6        SEND_VAL_EX                                              'UTC'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $7
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $6
    5    11        NEW                                              $11     'Datetime'
         12        SEND_VAL_EX                                              '2013-04-09+23%3A44%3A21'
         13        NEW                                              $12     'DateTimeZone'
         14        SEND_VAL_EX                                              'America%2FLos_Angeles'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $12
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !1, $11
    6    19        NEW                                              $16     'Datetime'
         20        SEND_VAL_EX                                              '2013-04-09+23%3A44%3A21'
         21        NEW                                              $17     'DateTimeZone'
         22        SEND_VAL_EX                                              'UTC'
         23        DO_FCALL                                      0          
         24        SEND_VAR_NO_REF_EX                                       $17
         25        DO_FCALL                                      0          
         26        ASSIGN                                                   !2, $16
    8    27        INIT_METHOD_CALL                                         !1, 'diff'
         28        SEND_VAR_EX                                              !0
         29        SEND_VAL_EX                                              <true>
         30        DO_FCALL                                      0  $21     
         31        ASSIGN                                                   !3, $21
    9    32        INIT_METHOD_CALL                                         !2, 'diff'
         33        SEND_VAR_EX                                              !0
         34        SEND_VAL_EX                                              <true>
         35        DO_FCALL                                      0  $23     
         36        ASSIGN                                                   !4, $23
   11    37        INIT_FCALL                                               'print_r'
         38        SEND_VAR                                                 !3
         39        DO_ICALL                                                 
   12    40        INIT_FCALL                                               'print_r'
         41        SEND_VAR                                                 !4
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.85 ms | 1400 KiB | 17 Q