3v4l.org

run code in 200+ php & hhvm versions
<?php $foo = str_repeat("9", strlen(PHP_INT_MAX) + 1); var_dump($foo); settype($foo, "integer"); var_dump($foo);
Output for 5.6.0 - 7.3.1
string(20) "99999999999999999999" int(9223372036854775807)