3v4l.org

run code in 300+ PHP versions simultaneously
<?php $diff = date_diff(date_create(), date_create("2013-10-02")); $hours = $diff->days * 24 + $diff->h; echo $hours;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gSV23
function name:  (null)
number of ops:  17
compiled vars:  !0 = $diff, !1 = $hours
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_diff'
          1        INIT_FCALL                                               'date_create'
          2        DO_ICALL                                         $2      
          3        SEND_VAR                                                 $2
          4        INIT_FCALL                                               'date_create'
          5        SEND_VAL                                                 '2013-10-02'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
    3    10        FETCH_OBJ_R                                      ~6      !0, 'days'
         11        MUL                                              ~7      ~6, 24
         12        FETCH_OBJ_R                                      ~8      !0, 'h'
         13        ADD                                              ~9      ~7, ~8
         14        ASSIGN                                                   !1, ~9
    4    15        ECHO                                                     !1
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.59 ms | 1394 KiB | 17 Q