3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = intval('179769313486231570772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216'); var_dump($number); var_dump(PHP_INT_MAX);
Output for 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, 8.5.2 - 8.5.3
int(9223372036854775807) int(9223372036854775807)
Output for 8.5.0 - 8.5.1
Warning: The float-string "179769313486231570772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216" is not representable as an int, cast occurred in /in/tf7EJ on line 3 int(9223372036854775807) int(9223372036854775807)

preferences:
106.26 ms | 1479 KiB | 4 Q