3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((int) (PHP_INT_MAX + 1)); // int(-9223372036854775808) var_dump((int) (PHP_INT_MAX + 10)); // int(-9223372036854775808) var_dump((int) (PHP_INT_MAX + 2000)); // int(-9223372036854773760) var_dump((int) INF); // int(0) var_dump(1/0);
based on 4ocLQ
Output for 8.0.0 - 8.0.2
int(-9223372036854775808) int(-9223372036854775808) int(-9223372036854773760) int(0) Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/fgeYU:8 Stack trace: #0 {main} thrown in /in/fgeYU on line 8
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.26, 7.4.0 - 7.4.13
int(-9223372036854775808) int(-9223372036854775808) int(-9223372036854773760) int(0) Warning: Division by zero in /in/fgeYU on line 8 float(INF)