3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ts1 = strtotime(date('Y-m-d H:i:s')); $ts2 = strtotime('2014-10-01 20:08:02'); $seconds_diff = $ts1 - $ts2; $iNbDaysNotedAfterBuyingProject = ($seconds_diff/ 3600 / 24); echo $iNbDaysNotedAfterBuyingProject;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BUZLB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ts1, !1 = $ts2, !2 = $seconds_diff, !3 = $iNbDaysNotedAfterBuyingProject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        DO_ICALL                                         $4      
          4        SEND_VAR                                                 $4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    3     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '2014-10-01+20%3A08%3A02'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    5    11        SUB                                              ~9      !0, !1
         12        ASSIGN                                                   !2, ~9
    6    13        DIV                                              ~11     !2, 3600
         14        DIV                                              ~12     ~11, 24
         15        ASSIGN                                                   !3, ~12
    9    16        ECHO                                                     !3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.77 ms | 1386 KiB | 17 Q