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) { array_pop($row); $row[] = array_product($row); return $row; }, $array ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 4, 1 => 3, 2 => 5, 3 => 7, 4 => 420, ), 1 => array ( 0 => 4, 1 => 9, 2 => 5, 3 => 7, 4 => 1260, ), 2 => array ( 0 => 4, 1 => 9, 2 => 25, 3 => 7, 4 => 6300, ), )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
19.05 ms | 402 KiB | 8 Q