3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mysql_timestamp = "2014-10-21 10:49:34"; $this_is_new = false; if(strtotime($mysql_timestamp) > strtotime("-30 minutes")) { $this_is_new = true; } var_dump($this_is_new);
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/gZq7J
function name:  (null)
number of ops:  15
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+10%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                                                 '-30+minutes'
          7        DO_ICALL                                         $5      
          8        IS_SMALLER                                               $5, $4
          9      > JMPZ                                                     ~6, ->11
    7    10    >   ASSIGN                                                   !1, <true>
   10    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.61 ms | 1386 KiB | 17 Q