3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-10-12'); $end = new DateTime(); echo round((time() - strtotime('2010-10-12')) / (60*60*24));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LClMC
function name:  (null)
number of ops:  19
compiled vars:  !0 = $start, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2010-10-12'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL                                               'round'
          8        INIT_FCALL                                               'time'
          9        DO_ICALL                                         $8      
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '2010-10-12'
         12        DO_ICALL                                         $9      
         13        SUB                                              ~10     $8, $9
         14        DIV                                              ~11     ~10, 86400
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
         17        ECHO                                                     $12
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1394 KiB | 19 Q