3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 0 => [ "user_type" => 'Manager', "total_count" => 3, ], 1 => [ "user_type" => 'Director', "total_count" => 2, ] ]; $array_column = array_column($array, 'total_count', 'user_type'); //Create new array like below $add_array = array('Manager'=>'0', 'Director'=>'0', 'Trainee'=>'0',); //using array_merge merge add_array and array_column $new_array = array_merge($add_array, $array_column); //using array_walk_recursive get the requird result array_walk_recursive($new_array, function($item, $key) use (&$final_array){ $final_array['labels'][]=$key; $final_array['dataset'][]=$item; }); echo "<pre>"; print_r($final_array); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.120.0070.00320.74
8.4.110.0110.01122.38
8.4.100.0130.00917.94
8.4.90.0060.00418.87
8.4.80.0130.00817.75
8.4.70.0090.01020.47
8.4.60.0100.00918.79
8.4.50.0160.00520.49
8.4.40.0210.00317.78
8.4.30.0130.00620.52
8.4.20.0040.01520.31
8.4.10.0030.00917.84
8.3.250.0120.00618.92
8.3.240.0120.00716.46
8.3.230.0030.00516.68
8.3.220.0050.00317.23
8.3.210.0100.00516.54
8.3.200.0050.00316.45
8.3.190.0050.00317.17
8.3.180.0100.00919.13
8.3.170.0150.00316.72
8.3.160.0160.00017.21
8.3.150.0150.00317.16
8.3.140.0120.00320.70
8.3.130.0030.00618.37
8.3.120.0090.00019.02
8.3.110.0000.01020.94
8.3.100.0080.00024.06
8.3.90.0130.00316.73
8.3.80.0060.00617.97
8.3.70.0070.01418.18
8.3.60.0100.01016.75
8.3.50.0130.00522.07
8.3.40.0120.00318.79
8.3.30.0060.01018.67
8.3.20.0040.00421.77
8.3.10.0040.00422.10
8.3.00.0040.00423.66
8.2.290.0120.01120.31
8.2.280.0110.01020.18
8.2.270.0070.01118.41
8.2.260.0120.00616.55
8.2.250.0030.00618.59
8.2.240.0110.00718.95
8.2.230.0200.00022.58
8.2.220.0060.00337.54
8.2.210.0130.00626.77
8.2.200.0060.00320.07
8.2.190.0100.01018.41
8.2.180.0030.01216.32
8.2.170.0140.00022.96
8.2.160.0080.00520.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00526.16
8.2.110.0060.00320.34
8.2.100.0060.00617.72
8.2.90.0120.00017.75
8.2.80.0080.00018.77
8.2.70.0090.00017.75
8.2.60.0040.00417.63
8.2.50.0050.00517.63
8.2.40.0040.00421.00
8.2.30.0000.00719.25
8.2.20.0050.00318.21
8.2.10.0040.00419.25
8.2.00.0000.00719.23
8.1.330.0120.00823.89
8.1.320.0130.00516.20
8.1.310.0100.00718.58
8.1.300.0150.00417.94
8.1.290.0070.00418.88
8.1.280.0100.01025.92
8.1.270.0000.00722.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00423.92
8.1.230.0120.00023.98
8.1.220.0040.00417.78
8.1.210.0090.00018.77
8.1.200.0040.00417.48
8.1.190.0050.00317.35
8.1.180.0090.00018.10
8.1.170.0000.00818.54
8.1.160.0080.00020.63
8.1.150.0040.00418.89
8.1.140.0000.00720.96
8.1.130.0030.00321.91
8.1.120.0000.00717.46
8.1.110.0050.00317.41
8.1.100.0000.00817.34
8.1.90.0030.00317.46
8.1.80.0000.00817.48
8.1.70.0000.00717.51
8.1.60.0000.00817.48
8.1.50.0040.00417.56
8.1.40.0000.00817.54
8.1.30.0030.00617.74
8.1.20.0000.01117.63
8.1.10.0040.00417.50
8.1.00.0040.00417.32
8.0.300.0040.00418.98
8.0.290.0040.00416.63
8.0.280.0080.00018.38
8.0.270.0040.00417.27
8.0.260.0000.00718.47
8.0.250.0030.00316.98
8.0.240.0040.00416.88
8.0.230.0030.00316.86
8.0.220.0070.00016.95
8.0.210.0000.00716.82
8.0.200.0030.00316.98
8.0.190.0040.00416.89
8.0.180.0030.00616.94
8.0.170.0000.00816.84
8.0.160.0000.00716.79
8.0.150.0000.00916.86
8.0.140.0040.00416.88
8.0.130.0000.00513.35
8.0.120.0000.00716.80
8.0.110.0040.00416.81
8.0.100.0000.00716.97
8.0.90.0000.00916.76
8.0.80.0120.00316.94
8.0.70.0070.00016.90
8.0.60.0000.00716.86
8.0.50.0000.00816.95
8.0.30.0130.00617.09
8.0.20.0160.00317.21
8.0.10.0040.00417.15
8.0.00.0100.00816.72
7.4.330.0000.00515.55
7.4.320.0050.00316.55
7.4.300.0030.00316.61
7.4.290.0030.00516.57
7.4.280.0050.00516.59
7.4.270.0040.00416.63
7.4.260.0060.00013.29
7.4.250.0040.00416.54
7.4.240.0020.00516.53
7.4.230.0000.00716.63
7.4.220.0000.00716.70
7.4.210.0090.00916.61
7.4.200.0000.00716.32
7.4.140.0180.00317.86
7.4.130.0090.00916.42
7.4.120.0000.01616.47
7.4.110.0120.00616.51
7.4.100.0090.00916.49
7.4.90.0070.01116.65
7.4.80.0090.00919.39
7.4.70.0180.00616.57
7.4.60.0060.01616.50
7.4.50.0110.00416.54
7.4.40.0100.00616.22
7.4.00.0050.01214.97
7.3.330.0030.00316.48
7.3.320.0030.00313.38
7.3.310.0070.00016.27
7.3.300.0030.00316.37
7.3.290.0000.00716.25
7.3.280.0030.01216.37
7.3.260.0100.01016.40
7.3.240.0130.00716.51
7.3.230.0090.00916.59
7.3.210.0090.01416.57
7.3.200.0100.00616.58
7.3.190.0090.00616.42
7.3.180.0120.00616.62
7.3.170.0070.01016.29
7.3.160.0040.01216.44
7.3.120.0040.01514.48
7.3.110.0030.01214.50
7.3.100.0030.01014.89
7.3.90.0090.00614.98
7.3.80.0100.00714.52
7.3.70.0040.01514.80
7.3.60.0060.01014.85
7.3.50.0110.00814.72
7.3.40.0140.00314.72
7.3.30.0080.01014.73
7.3.20.0130.00315.82
7.3.10.0060.00915.69
7.3.00.0060.00615.76
7.2.330.0090.00916.68
7.2.320.0030.01416.86
7.2.310.0060.01116.46
7.2.300.0100.00716.43
7.2.290.0060.01616.84
7.2.250.0100.01015.29
7.2.240.0070.00715.03
7.2.230.0110.00715.08
7.2.220.0000.01314.88
7.2.210.0060.00614.73
7.2.200.0110.00615.05
7.2.190.0120.00615.04
7.2.180.0130.00614.87
7.2.170.0140.00714.87
7.2.160.0110.00814.97
7.2.150.0090.01515.24
7.2.140.0090.00615.06
7.2.130.0130.00715.03
7.2.120.0190.00315.21
7.2.110.0060.00614.78
7.2.100.0170.00315.00
7.2.90.0130.00714.83
7.2.80.0000.01914.82
7.2.70.0100.01414.89
7.2.60.0130.00614.93
7.2.50.0140.00715.32
7.2.40.0130.00314.88
7.2.30.0130.00215.18
7.2.20.0070.01315.06
7.2.10.0130.00514.94
7.2.00.0060.01014.95
7.1.330.0070.00715.54
7.1.320.0060.00316.08
7.1.310.0030.00616.02
7.1.300.0140.01314.57
7.1.290.0120.00514.79
7.1.280.0060.01214.79
7.1.270.0080.01014.84
7.1.260.0070.00615.00
7.1.250.0150.00413.95

preferences:
30.68 ms | 403 KiB | 5 Q