3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'month' => 'June', 'sale' => 98765 ], [ 'month' => 'May', 'sale' => 45678 ], [ 'month' => 'April', 'sale' => 213456 ], [ 'month' => 'August', 'sale' => 23456 ], [ 'month' => 'July', 'sale' => 12376 ], ]; $month_array = array_column($array,'month'); $sale_array = array_column($array,'sale'); print_r($month_array); print_r($sale_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => June [1] => May [2] => April [3] => August [4] => July ) Array ( [0] => 98765 [1] => 45678 [2] => 213456 [3] => 23456 [4] => 12376 )

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:
29.47 ms | 405 KiB | 5 Q