3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); $creationTime = strtotime('2014-05-29 18:30:00'); if($creationTime - time() < 30 * 60) { echo 'less than 30 mins'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/2SHDR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $creationTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FNew_York'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2014-05-29+18%3A30%3A00'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'time'
          8        DO_ICALL                                         $4      
          9        SUB                                              ~5      !0, $4
         10        IS_SMALLER                                               ~5, 1800
         11      > JMPZ                                                     ~6, ->13
    5    12    >   ECHO                                                     'less+than+30+mins'
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.73 ms | 1394 KiB | 19 Q