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"); $interval = $now->diff($lv,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/RWQZd
function name:  (null)
number of ops:  30
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        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $9
    7    15        INIT_METHOD_CALL                                         !0, 'diff'
         16        SEND_VAR_EX                                              !1
         17        SEND_VAL_EX                                              <true>
         18        DO_FCALL                                      0  $12     
         19        ASSIGN                                                   !2, $12
    9    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   10    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
   11    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.5 ms | 1395 KiB | 17 Q