3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Array ( [0] => Array ( [amount] => 1439.53 [c_year] => 2021 [c_month] => 9 [short_month] => Sep ) [1] => Array ( [amount] => 1448.13 [c_year] => 2021 [c_month] => 10 [short_month] => Oct ) ) $resultsArray = [ [ "amount" => 1439.53, "c_year" => 2021, "c_month" => 9, "short_month" => "Sep" ], [ "amount" => 1448.13, "c_year" => 2021, "c_month" => 10, "short_month" => "Oct" ] ]; $monthsFees = array_map(function($fee) { return [ "month" => sprintf("%s-%s", $fee["c_month"], $fee["c_year"]), "amount" => $fee["amount"] ]; }, $resultsArray); print_r($monthsFees);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [month] => 9-2021 [amount] => 1439.53 ) [1] => Array ( [month] => 10-2021 [amount] => 1448.13 ) )

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:
27.42 ms | 1381 KiB | 4 Q