3v4l.org

run code in 300+ PHP versions simultaneously
<?php $resultSet = [ ['year' => 2013, 'month' => 6, 'total_count' => 529], ['year' => 2013, 'month' => 7, 'total_count' => 550], ['year' => 2013, 'month' => 8, 'total_count' => 1005], ['year' => 2013, 'month' => 9, 'total_count' => 1021], ['year' => 2013, 'month' => 10, 'total_count' => 1027], ]; $result = []; foreach ($resultSet as $row) { $result[] = [ date('M y', strtotime($row['year'] . '-' . $row['month'])), $row['total_count'] ]; } echo json_encode($result, JSON_PRETTY_PRINT);
Output for git.master, git.master_jit, rfc.property-hooks
[ [ "Jun 13", 529 ], [ "Jul 13", 550 ], [ "Aug 13", 1005 ], [ "Sep 13", 1021 ], [ "Oct 13", 1027 ] ]

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