3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump('raw : ' . 300000000000000000000000000000); var_dump(sprintf('format : %u', 300000000000000000000000000000));
Output for 5.5.24 - 7.2.0
string(16) "raw : 3.0E+29" string(28) "format : 5212423987472105472"
Output for 5.2.2 - 5.4.45
string(16) "raw : 3.0E+29" string(10) "format : 0"
Output for 4.3.0 - 5.0.1, 5.0.3 - 5.2.1
string(14) "raw : 3E+29" string(10) "format : 0"
Output for 5.0.2
string(14) "raw : 3E+29" string(19) "format : 4294967295"