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(); $i=0; foreach($e as $values) { foreach($values as $key=>$value) { $result[$i]= $key * $value ; $i++; } } print_r($e);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => 13 [1] => 11 [2] => 2 ) [1] => Array ( [989.32] => 13 [77] => 11 [0.99] => 2 ) )