3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ 0 =>[ 'nickname' => 'Bob', 'phone' => 15295892895, 'is_group' => 1, 'created_at' => 1544944181, 'assemble_id' => 'c1d0zUbmP', 'status' => 1 ], 1 =>[ 'nickname' => 'Jack', 'phone' => 15295892895, 'is_group' => 1, 'created_at' => 1544944181, 'assemble_id' => 'ED6OJX4VV', 'status' => 1 ], 2 =>[ 'nickname' => 'Grace', 'phone' => 15295892895, 'is_group' => 0, 'created_at' => 1544944181, 'assemble_id' => 'c1d0zUbmP', 'status' => 1 ], 3 =>[ 'nickname' => 'Jelly', 'phone' => 15295892895, 'is_group' => 0, 'created_at' => 1544944181, 'assemble_id' => 'ED6OJX4VV', 'status' => 1 ] ]; foreach ($list as $row) { $result[$row['assemble_id']]['assemble_id'] = $row['assemble_id']; $result[$row['assemble_id']]['assemble_group'][] = [ 'nickname' => $row['nickname'], 'phone' => $row['phone'], 'is_group' => $row['is_group'], 'created_at' => $row['created_at'], 'assemble_id' => $row['assemble_id'], 'status' => $row['status'] ]; } var_export(array_values($result));

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.20.0030.00720.43
8.4.10.0130.00617.32
8.3.150.0080.00019.12
8.3.140.0060.00317.34
8.3.130.0040.00418.47
8.3.120.0100.00020.91
8.3.110.0060.00320.94
8.3.100.0040.00416.78
8.3.90.0080.00026.77
8.3.80.0040.00416.50
8.3.70.0070.01016.63
8.3.60.0160.00316.75
8.3.50.0080.00718.30
8.3.40.0060.00918.84
8.3.30.0070.00718.67
8.3.20.0080.00021.85
8.3.10.0040.00423.46
8.3.00.0000.00723.51
8.2.270.0140.00416.73
8.2.260.0040.01117.30
8.2.250.0040.01116.66
8.2.240.0120.00317.24
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0070.00316.48
8.2.190.0110.00816.75
8.2.180.0140.00318.29
8.2.170.0070.00722.96
8.2.160.0000.01420.52
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00018.16
8.2.120.0030.00626.35
8.2.110.0070.00422.25
8.2.100.0140.00017.91
8.2.90.0050.00317.75
8.2.80.0060.00317.97
8.2.70.0030.00517.80
8.2.60.0050.00318.09
8.2.50.0050.00318.10
8.2.40.0030.00619.30
8.2.30.0000.00719.34
8.2.20.0040.00418.14
8.2.10.0070.00019.38
8.2.00.0050.00319.38
8.1.310.0000.00718.25
8.1.300.0100.01016.27
8.1.290.0030.00630.84
8.1.280.0000.01525.92
8.1.270.0080.00018.92
8.1.260.0090.00626.35
8.1.250.0070.00728.09
8.1.240.0050.00324.00
8.1.230.0080.00417.77
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0000.01217.51
8.1.180.0080.00018.10
8.1.170.0090.00018.66
8.1.160.0030.00518.86
8.1.150.0060.00318.76
8.1.140.0050.00322.21
8.1.130.0000.00720.14
8.1.120.0050.00317.41
8.1.110.0080.00017.45
8.1.100.0030.00717.46
8.1.90.0050.00317.45
8.1.80.0000.00817.35
8.1.70.0030.00317.45
8.1.60.0110.00017.61
8.1.50.0050.00317.58
8.1.40.0080.00017.54
8.1.30.0040.00417.75
8.1.20.0030.00617.52
8.1.10.0050.00217.41
8.1.00.0000.00717.45
8.0.300.0080.00619.40
8.0.290.0070.00016.63
8.0.280.0000.00718.45
8.0.270.0070.00016.76
8.0.260.0000.00618.33
8.0.250.0050.00316.93
8.0.240.0000.00716.95
8.0.230.0000.00816.97
8.0.220.0070.00016.92
8.0.210.0030.00316.88
8.0.200.0030.00316.98
8.0.190.0000.00716.89
8.0.180.0030.00616.93
8.0.170.0000.00916.88
8.0.160.0040.00416.90
8.0.150.0000.00816.91
8.0.140.0040.00416.83
8.0.130.0080.00013.41
8.0.120.0040.00416.89
8.0.110.0050.00316.94
8.0.100.0040.00416.77
8.0.90.0000.00716.80
8.0.80.0070.00716.88
8.0.70.0080.00016.86
8.0.60.0040.00416.96
8.0.50.0070.00016.90
8.0.30.0070.01816.83
8.0.20.0190.00017.40
8.0.10.0070.00017.02
8.0.00.0050.01416.70
7.4.330.0020.00215.55
7.4.320.0000.00616.62
7.4.300.0030.00316.58
7.4.290.0000.00716.45
7.4.280.0000.00716.42
7.4.270.0060.00316.52
7.4.260.0080.00016.45
7.4.250.0000.00716.55
7.4.240.0030.00316.61
7.4.230.0050.00216.50
7.4.220.0030.00316.59
7.4.210.0050.01116.54
7.4.200.0030.00316.44
7.4.160.0100.00716.51
7.4.140.0100.01017.86
7.4.130.0090.00916.70
7.4.120.0180.00016.63
7.4.110.0150.00716.42
7.4.100.0070.01116.47
7.4.90.0100.00716.38
7.4.80.0100.00719.39
7.4.70.0060.01116.45
7.4.60.0030.01216.37
7.4.50.0080.00516.36
7.4.40.0100.00616.44
7.4.00.0090.00314.72
7.3.330.0000.00613.23
7.3.320.0060.00013.23
7.3.310.0000.00716.18
7.3.300.0070.00016.37
7.3.290.0040.00416.32
7.3.280.0120.00616.30
7.3.260.0100.00816.53
7.3.240.0080.00916.49
7.3.230.0150.00316.54
7.3.210.0240.00016.55
7.3.200.0030.01316.70
7.3.190.0090.01216.30
7.3.180.0130.00916.23
7.3.170.0160.00616.36
7.3.160.0150.00016.39
7.3.00.6060.00314.59
7.2.330.0060.01216.39
7.2.320.0120.01216.52
7.2.310.0060.00916.68
7.2.300.0060.01516.75
7.2.290.0140.00416.63
7.2.130.6410.00314.85
7.2.120.3370.00714.86
7.2.110.3880.01014.79
7.2.100.3810.01014.55
7.2.90.5620.00714.78
7.2.80.6260.01015.01
7.2.70.5870.00714.81
7.2.60.8460.01014.93
7.2.50.5220.00714.90
7.2.40.7010.01014.61
7.2.30.6420.01014.85
7.2.20.5450.00315.17
7.2.10.6090.00314.90
7.2.00.3790.01315.02
7.1.250.3690.00713.80
7.0.330.3180.00713.28
5.6.380.0090.00514.41

preferences:
69.65 ms | 403 KiB | 5 Q