3v4l.org

run code in 500+ PHP versions simultaneously
<?php $investors = []; for ($i = 0; $i < 2; ++$i) { for ($k = 0; $k < 3; ++$k) { $investors[$k]['b_amount'] = ($investors[$k]['b_amount'] ?? 0) + 1 * $k + $i; $investors[$k]['recv_total'] = ($investors[$k]['recv_total'] ?? 0) + 1 + $k + $i; } } var_export($investors);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'b_amount' => 1, 'recv_total' => 3, ), 1 => array ( 'b_amount' => 3, 'recv_total' => 5, ), 2 => array ( 'b_amount' => 5, 'recv_total' => 7, ), )

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 ms | 1289 KiB | 4 Q