3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array ( 0 => array ( 'birth_place' => 'Administrasi Jakarta Barat', 'id' => '716', 'name' => 'Elvina Nuraini', 'birth_date' => '1975-08-28', 'gender' => 'female', ), 1 => array ( 'birth_place' => 'Administrasi Jakarta Barat', 'id' => '764', 'name' => 'Rina Kezia Novitasari', 'birth_date' => '1988-06-07', 'gender' => 'female', ), 2 => array ( 'birth_place' => 'Administrasi Jakarta Barat', 'id' => '922', 'name' => 'Viktor Firmansyah M.Pd', 'birth_date' => '1989-05-13', 'gender' => 'male', ), 3 => array ( 'birth_place' => 'Administrasi Jakarta Pusat', 'id' => '993', 'name' => 'Mursinin Banawa Marbun M.Pd', 'birth_date' => '1991-12-27', 'gender' => 'male', ), 4 => array ( 'birth_place' => 'Administrasi Jakarta Pusat', 'id' => '866', 'name' => 'Ibrahim Gunawan', 'birth_date' => '1995-01-01', 'gender' => 'male', ), ); var_export( array_values( array_reduce( $result, function($data, $row) { $group = $row['birth_place']; $data[$group] ??= [ 'birth_place' => $row['birth_place'], 'jumlah_data_user' => 0 ]; ++$data[$group]['jumlah_data_user']; unset($row['birth_place']); $data[$group]['users'][] = $row; return $data; } ) ) );

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.5.00.0110.01020.04
8.4.150.0030.00014.05
8.4.140.0130.00817.20
8.4.130.0120.00618.00
8.4.120.0060.00424.03
8.4.110.0050.00523.39
8.4.100.0030.00520.65
8.4.90.0100.00718.70
8.4.80.0110.00917.87
8.4.70.0070.00118.05
8.4.60.0140.00620.82
8.4.50.0090.01018.51
8.4.40.0060.00319.39
8.4.30.0140.00520.33
8.4.20.0030.00619.57
8.4.10.0060.00323.76
8.3.280.0100.01218.57
8.3.270.0070.01216.65
8.3.260.0130.00717.29
8.3.250.0110.00819.10
8.3.240.0090.00917.05
8.3.230.0140.00716.54
8.3.220.0050.00317.08
8.3.210.0050.00216.72
8.3.200.0050.00416.62
8.3.190.0130.00716.99
8.3.180.0070.00716.60
8.3.170.0030.01517.20
8.3.160.0090.00918.41
8.3.150.0090.00618.50
8.3.140.0110.00717.20
8.3.130.0040.00418.34
8.3.120.0040.00418.93
8.3.110.0040.00420.94
8.3.100.0080.00824.06
8.3.90.0040.00426.77
8.3.80.0040.00418.30
8.3.70.0120.00618.16
8.3.60.0100.01018.55
8.3.50.0070.01316.55
8.3.40.0140.00020.29
8.3.30.0120.00318.84
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00620.23
8.2.280.0070.01218.57
8.2.270.0120.00617.21
8.2.260.0030.00616.74
8.2.250.0040.01116.47
8.2.240.0110.00418.84
8.2.230.0060.00322.58
8.2.220.0090.00337.54
8.2.210.0080.00026.77
8.2.200.0040.00718.54
8.2.190.0210.00018.41
8.2.180.0120.00616.50
8.2.170.0070.00718.91
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0040.00724.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00320.54
8.2.100.0070.00417.78
8.2.90.0060.00319.79
8.2.80.0040.00417.97
8.2.70.0040.00418.04
8.2.60.0040.00417.47
8.2.50.0040.00418.07
8.2.40.0040.00419.96
8.2.30.0050.00319.83
8.2.20.0170.00017.71
8.2.10.0080.00817.82
8.2.00.0080.00817.83
8.1.330.0150.00321.89
8.1.320.0120.00815.90
8.1.310.0030.00918.45
8.1.300.0060.00319.77
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.96
8.1.230.0000.01119.02
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00718.86
8.1.150.0120.00417.46
8.1.140.0130.00317.48
8.1.130.0150.00217.52
8.1.120.0170.00017.54
8.1.110.0130.00317.57
8.1.100.0130.00317.43
8.1.90.0100.00317.57
8.1.80.0140.00317.41
8.1.70.0110.00517.55
8.1.60.0140.00517.71
8.1.50.0120.00417.63
8.1.40.0090.00517.72
8.1.30.0180.00017.58
8.1.20.0150.00317.66
8.1.10.0110.00817.52
8.1.00.0130.00717.60
8.0.300.0040.00419.65
8.0.290.0040.00416.75
8.0.280.0000.00818.34
8.0.270.0100.00516.82
8.0.260.0000.01516.82
8.0.250.0090.00416.82
8.0.240.0080.00516.84
8.0.230.0100.00716.82
8.0.220.0150.00016.82
8.0.210.0150.00016.82
8.0.200.0110.00316.86
8.0.190.0040.01116.82
8.0.180.0080.00616.82
8.0.170.0140.00316.82
8.0.160.0050.00916.82
8.0.150.0120.00016.96
8.0.140.0150.00016.82
8.0.130.0110.00516.82
8.0.120.0120.00416.82
8.0.110.0100.00516.82
8.0.100.0150.00016.82
8.0.90.0080.00816.82
8.0.80.0080.00816.85
8.0.70.0130.00316.82
8.0.60.0110.00416.82
8.0.50.0140.00216.86
8.0.30.0150.00016.83
8.0.20.0150.00016.82
8.0.10.0120.00316.83

preferences:
38.72 ms | 403 KiB | 5 Q