3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $counts = [ '0.13' => 0, '0.3' => 0, '1.234' => 0, ]; for($i = 0; $i < 1000000; $i++) { $counts['0.13'] += 0.13; $counts['0.3'] += 0.3; $counts['1.234'] += 1.234; } print_r( $counts );
based on ujZXR
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
Array ( [0.13] => 130000.00000173 [0.3] => 299999.99999434 [1.234] => 1234000.0000128 )