3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strttotime(); if ($timestamp >= strtotime("-1 hour")) { echo "PULL FROM DB!"; } else { echo "PULL FROM API"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q8b44
function name:  (null)
number of ops:  12
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'strttotime'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '-1+hour'
          5        DO_ICALL                                         $3      
          6        IS_SMALLER_OR_EQUAL                                      $3, !0
          7      > JMPZ                                                     ~4, ->10
    4     8    >   ECHO                                                     'PULL+FROM+DB%21'
          9      > JMP                                                      ->11
    6    10    >   ECHO                                                     'PULL+FROM+API'
    7    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.12 ms | 1385 KiB | 15 Q