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], ]; var_export( array_map( function($row) { $row[] = array_product($row) / array_pop($row); return $row; }, $array ) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.55 ms | 1631 KiB | 12 Q