3v4l.org

run code in 300+ PHP versions simultaneously
<?php $device["time_stamp"] = '2014-05-15T12:19:37.000Z'; $device_time_stamp = strtotime($device["time_stamp"]); $last_update_threshold_time_stamp = strtotime('-10 minutes'); $result = ($device_time_stamp <= $last_update_threshold_time_stamp ? true : false); echo $result;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r4mJN
function name:  (null)
number of ops:  19
compiled vars:  !0 = $device, !1 = $device_time_stamp, !2 = $last_update_threshold_time_stamp, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'time_stamp'
          1        OP_DATA                                                  '2014-05-15T12%3A19%3A37.000Z'
    5     2        INIT_FCALL                                               'strtotime'
          3        FETCH_DIM_R                                      ~5      !0, 'time_stamp'
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    6     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '-10+minutes'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    8    11        IS_SMALLER_OR_EQUAL                                      !1, !2
         12      > JMPZ                                                     ~10, ->15
         13    >   QM_ASSIGN                                        ~11     <true>
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~11     <false>
         16    >   ASSIGN                                                   !3, ~11
   10    17        ECHO                                                     !3
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.68 ms | 1395 KiB | 15 Q