3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = (PHP_INT_MAX / 1000); $ms = (int)($interval * 1000); if ($ms < 0 || $interval > \PHP_INT_MAX) { echo 'Wrong interval'; } else { echo 'Ok'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/WcQBR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $interval, !1 = $ms
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 9.22337e+15
    5     1        MUL                                              ~3      !0, 1000
          2        CAST                                          4  ~4      ~3
          3        ASSIGN                                                   !1, ~4
    6     4        IS_SMALLER                                       ~6      !1, 0
          5      > JMPNZ_EX                                         ~6      ~6, ->8
          6    >   IS_SMALLER                                       ~7      9223372036854775807, !0
          7        BOOL                                             ~6      ~7
          8    > > JMPZ                                                     ~6, ->11
    7     9    >   ECHO                                                     'Wrong+interval'
    6    10      > JMP                                                      ->12
    9    11    >   ECHO                                                     'Ok'
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.68 ms | 1006 KiB | 13 Q