3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [4, 3, 5, 7, 210], [4, 9, 5, 7, 210], [4, 9, 25, 7, 210], ]; foreach ($array as &$row) { array_pop($row); $row[] = array_product($row); } var_export($array);

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
46.75 ms | 1011 KiB | 4 Q