3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Nov 18, 2011' => [ 'C' => [ 'T' => 49783.531672, 'X' => 25013.184 ], 'S' => [ 'T' => 32908.863528 ], 'I' => [ 'T' => 44561.52 ] ], 'Nov 22, 2011' => [ 'C' => [ 'T' => -5168.944696 ], 'S' => [ 'T' => -3823.890504 ] ] ]; var_export( array_map( fn($set) => array_sum(array_map(array_sum(...), $set)), $array ) );
Output for git.master_jit, git.master
array ( 'Nov 18, 2011' => 152267.0992, 'Nov 22, 2011' => -8992.8352, )

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:
73.33 ms | 405 KiB | 5 Q