3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = Array ( 'recipients' => Array ( 'signers' => Array ( '0' => Array ( 'email' => 'rm@gmail.com', 'tabs' => Array ( 'checkboxTabs' => Array ( '0' => Array ( 'tabLabel' => 'sampleCheckbox' ) ), 'textTabs' => Array ( '0' => Array ( 'tabLabel' => 'CompanyName', 'value' => 'Qwerty' ), '1' => Array ( 'tabLabel' => 'TradingName', 'value' => 'Qwerty' ), '2' => Array ( 'tabLabel' => 'ContactName', 'value' => 'RM' ) ) ) ) ) ) ); $monthlytotal = 10; // i assume $array2 = array( "tabLabel"=>"MonthlyTotal", "value"=>$monthlytotal ); array_push($array1['recipients']['signers']['0']['tabs']['textTabs'], $array2); print_r($array1);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [recipients] => Array ( [signers] => Array ( [0] => Array ( [email] => rm@gmail.com [tabs] => Array ( [checkboxTabs] => Array ( [0] => Array ( [tabLabel] => sampleCheckbox ) ) [textTabs] => Array ( [0] => Array ( [tabLabel] => CompanyName [value] => Qwerty ) [1] => Array ( [tabLabel] => TradingName [value] => Qwerty ) [2] => Array ( [tabLabel] => ContactName [value] => RM ) [3] => Array ( [tabLabel] => MonthlyTotal [value] => 10 ) ) ) ) ) ) )

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:
26.17 ms | 415 KiB | 5 Q