3v4l.org

run code in 300+ PHP versions simultaneously
<?php $duration = 15; $t_time = 1411387095 ; $then = time() - $duration*60; echo date('Y-m-d H:i:s',$t_time)."\r\n"; echo date('Y-m-d H:i:s',$then )."\r\n"; if($t_time >= $then) { echo 'ok'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/lheTm
function name:  (null)
number of ops:  23
compiled vars:  !0 = $duration, !1 = $t_time, !2 = $then
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 15
    3     1        ASSIGN                                                   !1, 1411387095
    4     2        INIT_FCALL                                               'time'
          3        DO_ICALL                                         $5      
          4        MUL                                              ~6      !0, 60
          5        SUB                                              ~7      $5, ~6
          6        ASSIGN                                                   !2, ~7
    5     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        CONCAT                                           ~10     $9, '%0D%0A'
         12        ECHO                                                     ~10
    6    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        CONCAT                                           ~12     $11, '%0D%0A'
         18        ECHO                                                     ~12
    7    19        IS_SMALLER_OR_EQUAL                                      !2, !1
         20      > JMPZ                                                     ~13, ->22
    8    21    >   ECHO                                                     'ok'
    9    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147 ms | 1395 KiB | 17 Q