<?php $d = array(5, 6.5, 10, 3.355, 400, 9.43);$c = 2; print_r(array_map(function ($e) use ($c) { return $e + $e * $c / 100; }, $d));
Standard input is empty
Array ( [0] => 5.1 [1] => 6.63 [2] => 10.2 [3] => 3.4221 [4] => 408 [5] => 9.6186 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!