3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fromDate="2013-03-03"; $toDate="2013-03-04"; $fromDate = strtotime($fromDate); $toDate = strtotime($toDate); $diffDate = abs($toDate - $fromDate); echo $diffDateLast = round($diffDate / (60 * 60 * 24));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dtGZM
function name:  (null)
number of ops:  22
compiled vars:  !0 = $fromDate, !1 = $toDate, !2 = $diffDate, !3 = $diffDateLast
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2013-03-03'
    4     1        ASSIGN                                                   !1, '2013-03-04'
    6     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !0, $6
    7     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    8    10        INIT_FCALL                                               'abs'
         11        SUB                                              ~10     !1, !0
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
    9    15        INIT_FCALL                                               'round'
         16        DIV                                              ~13     !2, 86400
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN                                           ~15     !3, $14
         20        ECHO                                                     ~15
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1395 KiB | 19 Q