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'; }
Output for 8.5.0 - 8.5.3
Warning: The float 9.223372036854776E+18 is not representable as an int, cast occurred in /in/WcQBR on line 5 Wrong interval
Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18
Wrong interval

preferences:
111.17 ms | 1408 KiB | 4 Q