3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['user_id' => 82, 'ac_type' => 1], ['user_id' => 80, 'ac_type' => 5], ['user_id' => 76, 'ac_type' => 1], ['user_id' => 82, 'ac_type' => 2], ['user_id' => 80, 'ac_type' => 6] ]; var_export( array_values( array_reduce( $array, fn($res, $row) => array_replace([$row['user_id'] => $row], $res), [] ) ) );

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.0100.00820.59
8.4.110.0130.00722.47
8.4.100.0110.00617.56
8.4.90.0050.00518.75
8.4.80.0030.00519.46
8.4.70.0130.00617.91
8.4.60.0030.00820.71
8.4.50.0110.00918.79
8.4.40.0080.00017.99
8.4.30.0090.00620.34
8.4.20.0060.00318.07
8.4.10.0100.00720.52
8.3.250.0080.01118.84
8.3.240.0040.00417.11
8.3.230.0160.00316.56
8.3.220.0110.00517.12
8.3.210.0050.00416.76
8.3.200.0050.00316.35
8.3.190.0100.00817.07
8.3.180.0100.00916.49
8.3.170.0110.00716.41
8.3.160.0130.00616.66
8.3.150.0110.00817.13
8.3.140.0040.00416.79
8.3.130.0050.00318.49
8.3.120.0060.00319.07
8.3.110.0130.00720.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00316.75
8.3.70.0060.01518.29
8.3.60.0060.00918.39
8.3.50.0090.00920.34
8.3.40.0100.00618.59
8.3.30.0070.00718.95
8.3.20.0050.00524.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0090.00920.53
8.2.280.0110.00718.25
8.2.270.0080.00016.98
8.2.260.0030.00718.90
8.2.250.0040.00418.38
8.2.240.0160.00016.84
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00316.50
8.2.190.0110.01118.17
8.2.180.0190.00025.92
8.2.170.0090.00618.97
8.2.160.0070.01322.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.18
8.2.110.0060.00322.30
8.2.100.0060.00619.58
8.2.90.0000.00917.88
8.2.80.0040.00718.73
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0030.00518.07
8.2.40.0090.00019.74
8.2.30.0030.00518.10
8.2.20.0000.00720.32
8.2.10.0040.00418.15
8.2.00.0000.00719.31
8.1.330.0130.00622.21
8.1.320.0110.01017.85
8.1.310.0000.00718.31
8.1.300.0090.00018.26
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0040.00421.98
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00723.92
8.1.230.0080.00317.83
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00917.36
8.1.190.0060.00317.34
8.1.180.0080.00018.10
8.1.170.0040.00418.69
8.1.160.0080.00318.81
8.1.150.0020.00518.55
8.1.140.0070.00017.33
8.1.130.0040.00419.18
8.1.120.0070.00017.38
8.1.110.0080.00017.32
8.1.100.0080.00017.35
8.1.90.0070.00017.48
8.1.80.0000.00717.41
8.1.70.0000.00717.39
8.1.60.0000.01517.57
8.1.50.0090.00517.37
8.1.40.0150.00017.54
8.1.30.0130.00517.53
8.1.20.0250.00017.54
8.1.10.0130.01017.42
8.1.00.0130.00617.44
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0040.00417.82
8.0.260.0000.00716.81
8.0.250.0050.00316.79
8.0.240.0030.00316.89
8.0.230.0000.00816.84
8.0.220.0000.00716.77
8.0.210.0000.00716.85
8.0.200.0000.00616.93
8.0.190.0100.00516.91
8.0.180.0100.00516.91
8.0.170.0070.01016.89
8.0.160.0110.00516.95
8.0.150.0070.00716.73
8.0.140.0070.01016.71
8.0.130.0130.00316.73
8.0.120.0130.00616.74
8.0.110.0110.00716.84
8.0.100.0110.01116.86
8.0.90.0130.00716.83
8.0.80.0180.00316.80
8.0.70.0150.00516.91
8.0.60.0130.00816.77
8.0.50.0170.00716.84
8.0.30.0110.01016.77
8.0.20.0180.00216.84
8.0.10.0150.00417.02
7.4.330.0000.00515.55
7.4.320.0020.00516.41
7.4.300.0050.00316.59
7.4.290.0180.00416.60
7.4.280.0150.00816.61
7.4.270.0120.01216.63
7.4.260.0180.00616.42
7.4.250.0230.00016.61
7.4.240.0120.00816.38
7.4.230.0120.00416.61
7.4.220.0170.00316.49
7.4.210.0100.00716.48
7.4.200.0110.00716.54
7.4.190.0120.00316.63
7.4.180.0130.00316.65
7.4.160.0140.00316.52
7.4.150.0160.00416.39
7.4.140.0120.00416.34
7.4.130.0140.00516.41
7.4.120.0150.00316.25
7.4.110.0100.01116.27
7.4.100.0130.00816.53
7.4.90.0170.00416.47
7.4.80.0200.00016.43
7.4.70.0210.00016.45
7.4.60.0130.00716.50
7.4.50.0140.00716.31
7.4.40.0160.00416.29
7.4.30.0190.00016.39
7.4.20.0210.00016.36
7.4.10.0130.00716.30
7.4.00.0160.00216.41

preferences:
28.44 ms | 403 KiB | 5 Q