<?php
$array = [1, 2, 3, 4, 5];
$factor = 2;
function multiplica($array) {
$factor = 5;
global $factor;
return $value * $factor;
}, $array);
return $array;
}
PD9waHAKCiRhcnJheSA9IFsxLCAyLCAzLCA0LCA1XTsKJGZhY3RvciA9IDI7CgpmdW5jdGlvbiBtdWx0aXBsaWNhKCRhcnJheSkgewogICAgCiAgICAkZmFjdG9yID0gNTsKCiAgICAkYXJyYXkgPSBhcnJheV9tYXAoZnVuY3Rpb24gKCR2YWx1ZSkgewogICAgICAgIGdsb2JhbCAkZmFjdG9yOwogICAgICAgIHJldHVybiAkdmFsdWUgKiAkZmFjdG9yOwogICAgfSwgJGFycmF5KTsKICAgIAogICAgcmV0dXJuICRhcnJheTsKICAgIAp9CgpwcmludF9yKG11bHRpcGxpY2EoJGFycmF5KSk7