- print_r: documentation ( source)
<?php
$counts = [
'0.13' => 0,
'0.3' => 0,
'1.234' => 1.234,
];
for($i = 0; $i < 1000000; $i++) {
$counts['0.13'] += 0.13;
$counts['0.3'] += 0.3;
$counts['1.234'] += 1.234;
}
print_r( $count );