3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isValidTimeStamp($timestamp) { return ((string) (int) $timestamp === $timestamp) && ($timestamp <= PHP_INT_MAX) && ($timestamp >= ~PHP_INT_MAX); } var_dump(isValidTimestamp("114004965600"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pr2iD
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'isvalidtimestamp'
          2        SEND_VAL                                                 '114004965600'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function isvalidtimestamp:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 7
filename:       /in/pr2iD
function name:  isValidTimeStamp
number of ops:  12
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        CAST                                          4  ~1      !0
          2        CAST                                          6  ~2      ~1
          3        IS_IDENTICAL                                     ~3      !0, ~2
          4      > JMPZ_EX                                          ~3      ~3, ->7
    6     5    >   IS_SMALLER_OR_EQUAL                              ~4      !0, 9223372036854775807
          6        BOOL                                             ~3      ~4
          7    > > JMPZ_EX                                          ~3      ~3, ->10
    7     8    >   IS_SMALLER_OR_EQUAL                              ~5      -9223372036854775808, !0
          9        BOOL                                             ~3      ~5
         10    > > RETURN                                                   ~3
    8    11*     > RETURN                                                   null

End of function isvalidtimestamp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1402 KiB | 16 Q