3v4l.org

run code in 300+ PHP versions simultaneously
<?php $device_time_stamp = strtotime('-5 minutes'); $last_update_threshold_time_stamp = strtotime('-10 minutes'); $device["is_online"] = ($device_time_stamp >= $last_update_threshold_time_stamp ? true : false);
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/nhCP4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $device_time_stamp, !1 = $last_update_threshold_time_stamp, !2 = $device
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '-5+minutes'
          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                                      !1, !0
          9      > JMPZ                                                     ~8, ->12
         10    >   QM_ASSIGN                                        ~9      <true>
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~9      <false>
         13    >   ASSIGN_DIM                                               !2, 'is_online'
         14        OP_DATA                                                  ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.38 ms | 1394 KiB | 15 Q