3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Sum_1' => [ ['e' => 1000001, 'u' => 'Test1', 'a' => 775.00], ['e' => 26, 'u' => 'Test2', 'a' => 555.00], ], 'Sum_2' => [ ['e' => 1000001, 'u' => 'Test1', 'a' => 110.00], ], 'Sum_3' => [ ['e' => 1000001, 'u' => 'Test1', 'a' => 444.00], ], ]; var_export( array_map( fn($rows) => array_sum( array_column($rows, 'a') ), $array ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'Sum_1' => 1330.0, 'Sum_2' => 110.0, 'Sum_3' => 444.0, )

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:
40.14 ms | 986 KiB | 4 Q