3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( '987654321123456789987654321123456789', (int) '987654321123456789987654321123456789', (float) '987654321123456789987654321123456789'); if('987654321123456789987654321123456789'=='987654321123456789876543210012345698'){ echo 'Why this condition is true?'; }
Output for 5.4.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(36) "987654321123456789987654321123456789" int(9223372036854775807) float(9.8765432112346E+35)
Output for 4.3.0 - 5.4.3
string(36) "987654321123456789987654321123456789" int(9223372036854775807) float(9.8765432112346E+35) Why this condition is true?