3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '7.1'; $b = '7.1' . str_repeat('0', 14) . '1'; print "$a\n$b\n"; var_dump($a==$b); $b = '7.1' . str_repeat('0', 14) . '1'; print "$b\n"; var_dump($a==$b);
based on QR0RB
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
7.1 7.1000000000000001 bool(false) 7.1000000000000001 bool(false)
Output for hhvm-3.10.0

Process exited with code 153.