3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sInserted = '2015-11-17 00:00:00'; $iDiff = (new DateTime($sInserted))->diff(new DateTime())->days; var_dump($iDiff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ToPmh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $sInserted, !1 = $iDiff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2015-11-17+00%3A00%3A00'
    4     1        NEW                                              $3      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $3, 'diff'
          5        NEW                                              $5      'DateTime'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0  $7      
          9        FETCH_OBJ_R                                      ~8      $7, 'days'
         10        ASSIGN                                                   !1, ~8
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.62 ms | 1394 KiB | 15 Q