3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $e = Array(Array ( "0" => 13 , "1" => 11 , "2" => 2 ), Array ( "989.32" => 13 , "77" => 11 , "0.99" => 2 )); $result = array(array()); $i=0; foreach($e as $values) { foreach($values as $key=>$value) { $result[$i]= $key * $value ; $i++; } } print_r($result);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 0 [1] => 11 [2] => 4 [3] => 12861.16 [4] => 847 [5] => 1.98 )