3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "2014-11-29"; $today = date('Y-m-d'); echo $today; $diff = abs(strtotime($date) - strtotime($today)); $days = floor($diff /3600/24); echo $days;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ShnmW
function name:  (null)
number of ops:  25
compiled vars:  !0 = $date, !1 = $today, !2 = $diff, !3 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-11-29'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        ECHO                                                     !1
    7     6        INIT_FCALL                                               'abs'
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        SUB                                              ~9      $7, $8
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !2, $10
    9    17        INIT_FCALL                                               'floor'
         18        DIV                                              ~12     !2, 3600
         19        DIV                                              ~13     ~12, 24
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                         $14     
         22        ASSIGN                                                   !3, $14
   11    23        ECHO                                                     !3
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 1395 KiB | 21 Q