3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Calculate number of hours between pass and now $dayinpass = "2013-06-23 05:09:12"; $today = time(); $dayinpass= strtotime($dayinpass); echo round(abs($today-$dayinpass)/60/60);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3aePJ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dayinpass, !1 = $today
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '2013-06-23+05%3A09%3A12'
    8     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    9     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
   10     8        INIT_FCALL                                               'round'
          9        INIT_FCALL                                               'abs'
         10        SUB                                              ~7      !1, !0
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        DIV                                              ~9      $8, 60
         14        DIV                                              ~10     ~9, 60
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.82 ms | 1394 KiB | 21 Q