3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = array(10,11,15,17,18,21,24,26,41,50); $winner = array(2,10,15,17,19,21,22,28,35,50); $match = 0; foreach($winner as $number){ $x = array_search($number, $user, true); if($x !== false){ $user[$x] = "<span style=\"color:green;\">".$user[$x]."</span>"; $match++; } } echo '<pre>'; print_r($user); echo $match;
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => <span style="color:green;">10</span> [1] => 11 [2] => <span style="color:green;">15</span> [3] => <span style="color:green;">17</span> [4] => 18 [5] => <span style="color:green;">21</span> [6] => 24 [7] => 26 [8] => 41 [9] => <span style="color:green;">50</span> ) 5

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:
194.45 ms | 406 KiB | 5 Q