3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateStart = date_create('2014-07-29'); $dateToday = date_create('2014-07-30'); $startDiff = date_diff( $dateToday , $dateStart); var_dump( $startDiff->days ); var_dump( $startDiff->hours );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aMNLn
function name:  (null)
number of ops:  22
compiled vars:  !0 = $dateStart, !1 = $dateToday, !2 = $startDiff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2014-07-29'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date_create'
          5        SEND_VAL                                                 '2014-07-30'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'date_diff'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    7    13        INIT_FCALL                                               'var_dump'
         14        FETCH_OBJ_R                                      ~9      !2, 'days'
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        FETCH_OBJ_R                                      ~11     !2, 'hours'
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.82 ms | 1395 KiB | 19 Q