3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mysql_timestamp = "2014-10-21 11:49:34"; $this_is_new = false; if(strtotime($mysql_timestamp) > strtotime("-60 minutes")) { $this_is_new = true; } var_dump($this_is_new); echo strtotime($mysql_timestamp); echo strtotime("-60 minutes");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/k35Ra
function name:  (null)
number of ops:  23
compiled vars:  !0 = $mysql_timestamp, !1 = $this_is_new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-10-21+11%3A49%3A34'
    4     1        ASSIGN                                                   !1, <false>
    6     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '-60+minutes'
          7        DO_ICALL                                         $5      
          8        IS_SMALLER                                               $5, $4
          9      > JMPZ                                                     ~6, ->11
    7    10    >   ASSIGN                                                   !1, <true>
   11    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'strtotime'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $9      
         17        ECHO                                                     $9
   14    18        INIT_FCALL                                               'strtotime'
         19        SEND_VAL                                                 '-60+minutes'
         20        DO_ICALL                                         $10     
         21        ECHO                                                     $10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1395 KiB | 17 Q