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")); $lv = new Datetime("2013-04-09 23:44:21",new DateTimeZone('America/Los_Angeles')); $interval = $lv->diff($now,true); print_r($lv); print_r($now); print_r($interval);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CEKBY
function name:  (null)
number of ops:  34
compiled vars:  !0 = $now, !1 = $lv, !2 = $interval
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                                              $4      'Datetime'
          4        SEND_VAL_EX                                              '2013-04-09+23%3A45%3A15'
          5        NEW                                              $5      'DateTimeZone'
          6        SEND_VAL_EX                                              'UTC'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $4
    5    11        NEW                                              $9      'Datetime'
         12        SEND_VAL_EX                                              '2013-04-09+23%3A44%3A21'
         13        NEW                                              $10     'DateTimeZone'
         14        SEND_VAL_EX                                              'America%2FLos_Angeles'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $10
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !1, $9
    7    19        INIT_METHOD_CALL                                         !1, 'diff'
         20        SEND_VAR_EX                                              !0
         21        SEND_VAL_EX                                              <true>
         22        DO_FCALL                                      0  $14     
         23        ASSIGN                                                   !2, $14
    9    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
   10    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
   11    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.56 ms | 1388 KiB | 17 Q