3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1=date_create("15-04-2018 22:00", new DateTimeZone('Asia/Ulan_Bator')); $date2=date_create("now", new DateTimeZone('America/Buenos_Aires')); $diff=date_diff($date1,$date2); print_r($diff->days == 457); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/atCTc
function name:  (null)
number of ops:  27
compiled vars:  !0 = $date1, !1 = $date2, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '15-04-2018+22%3A00'
          2        NEW                                              $3      'DateTimeZone'
          3        SEND_VAL_EX                                              'Asia%2FUlan_Bator'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    3     8        INIT_FCALL                                               'date_create'
          9        SEND_VAL                                                 'now'
         10        NEW                                              $7      'DateTimeZone'
         11        SEND_VAL_EX                                              'America%2FBuenos_Aires'
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
    4    16        INIT_FCALL                                               'date_diff'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !2, $11
    5    21        INIT_FCALL                                               'print_r'
         22        FETCH_OBJ_R                                      ~13     !2, 'days'
         23        IS_EQUAL                                         ~14     ~13, 457
         24        SEND_VAL                                                 ~14
         25        DO_ICALL                                                 
    6    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.88 ms | 1395 KiB | 19 Q