3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime("2014-03-07 15:30:00"); $diff = ($start->getTimestape() - time()) / 3600; echo $diff;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Im6VQ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $start, !1 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2014-03-07+15%3A30%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        INIT_METHOD_CALL                                         !0, 'getTimestape'
          5        DO_FCALL                                      0  $5      
          6        INIT_FCALL                                               'time'
          7        DO_ICALL                                         $6      
          8        SUB                                              ~7      $5, $6
          9        DIV                                              ~8      ~7, 3600
         10        ASSIGN                                                   !1, ~8
    6    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1385 KiB | 15 Q