3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'ActivityDiaryEntry' => [ "date" => "2011-03-03", "type"=> "Walking", "minutes" => 60 ] ], [ 'ActivityDiaryEntry' => [ "date" => "2011-03-03", "type"=> "Walking", "minutes" => 22 ] ], [ 'ActivityDiaryEntry' => [ "date" => "2011-03-03", "type"=> "Biking", "minutes" => 42 ] ] ]; $subarrays = array_column($array, "ActivityDiaryEntry"); echo "<table>\n"; foreach ($subarrays[0] as $column => $notUsed) { echo "\t<tr><td>" , implode("</td><td>", array_column($subarrays, $column)) , "</td></tr>\n"; } echo '</table>';
Output for git.master, git.master_jit, rfc.property-hooks
<table> <tr><td>2011-03-03</td><td>2011-03-03</td><td>2011-03-03</td></tr> <tr><td>Walking</td><td>Walking</td><td>Biking</td></tr> <tr><td>60</td><td>22</td><td>42</td></tr> </table>

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