3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.95 ms | 1394 KiB | 15 Q