3v4l.org

run code in 500+ PHP versions simultaneously
<?php $BrickTerritorys = [ 1 => (object)[ 'id' => 119, 'TerritoryID' => 'HYD-2-CMD', 'BrickCode' => 16, 'BrickName' => 'BUHURO', 'Weightage' => '40.00', 'BPCode' => 'bp00066', 'GroupCode' => 'CMD' ], 2 => (object)[ 'id' => 36330, 'TerritoryID' => 'HYD-1-CMD', 'BrickCode' => 16, 'BrickName' => 'BUHURO', 'Weightage' => '60.00', 'BPCode' => 'bp00066', 'GroupCode' => 'CMD' ] ]; foreach($BrickTerritorys as $index=>$BrickTerritory) { ${"$T.$index"}= $BrickTerritory->TerritoryID; ${"'Weightage'.$index"} = $BrickTerritory->Weightage; } echo $T1."-".$T2."--".$Weightage1."---".$Weightage2;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $T in /in/YEejB on line 25 Warning: Undefined variable $T in /in/YEejB on line 25 Warning: Undefined variable $T1 in /in/YEejB on line 28 Warning: Undefined variable $T2 in /in/YEejB on line 28 Warning: Undefined variable $Weightage1 in /in/YEejB on line 28 Warning: Undefined variable $Weightage2 in /in/YEejB on line 28 ------

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:
42.42 ms | 1536 KiB | 4 Q