3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "Wednesday, 01/27/2016"; $calDate = explode(', ',$date); echo (int)(abs( strtotime($calDate[1]) - strtotime('now') )/ ( 60 * 60 * 24 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d9OLX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $calDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Wednesday%2C+01%2F27%2F2016'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        INIT_FCALL                                               'abs'
          7        INIT_FCALL                                               'strtotime'
          8        FETCH_DIM_R                                      ~5      !1, 1
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'now'
         13        DO_ICALL                                         $7      
         14        SUB                                              ~8      $6, $7
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                         $9      
         17        DIV                                              ~10     $9, 86400
         18        CAST                                          4  ~11     ~10
         19        ECHO                                                     ~11
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.58 ms | 1395 KiB | 19 Q