3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['x' => 0.5, 'y' => 23], ['x' => 23, 'y' => 21.75], ['x' => 14.25, 'y' => 21.875], ['x' => 19.375, 'y' => 21.75], ['x' => 9.125, 'y' => 21.875], ['x' => 23, 'y' => 19.625], ['x' => 19.375, 'y' => 19.625], ]; foreach ($array as $row) { if (!isset($result['#' . $row['y']])) { $result['#' . $row['y']] = $row; } } 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.130.0100.01317.80
8.4.120.0120.00823.74
8.4.110.0110.00918.00
8.4.100.0160.00617.88
8.4.90.0130.00620.70
8.4.80.0030.00617.84
8.4.70.0120.00817.92
8.4.60.0100.01018.42
8.4.50.0110.00617.92
8.4.40.0100.01019.69
8.4.30.0110.00918.70
8.4.20.0100.01018.73
8.4.10.0030.00617.78
8.3.260.0100.00916.53
8.3.250.0120.00619.16
8.3.240.0100.00917.16
8.3.230.0100.00916.86
8.3.220.0060.00517.05
8.3.210.0140.00616.55
8.3.200.0130.00616.75
8.3.190.0040.00517.04
8.3.180.0090.00616.57
8.3.170.0070.01420.67
8.3.160.0140.00416.30
8.3.150.0110.00717.41
8.3.140.0150.00417.16
8.3.130.0050.00318.51
8.3.120.0060.00320.73
8.3.110.0090.00020.94
8.3.100.0000.00924.06
8.3.90.0140.00018.48
8.3.80.0090.00017.97
8.3.70.0070.01116.36
8.3.60.0100.01016.25
8.3.50.0090.00417.26
8.3.40.0190.00318.45
8.3.30.0070.01118.67
8.3.20.0040.00420.33
8.3.10.0110.00423.70
8.3.00.0000.00722.44
8.2.290.0110.00816.69
8.2.280.0060.00618.42
8.2.270.0130.00616.84
8.2.260.0080.00018.86
8.2.250.0000.00818.36
8.2.240.0040.01118.69
8.2.230.0160.00422.58
8.2.220.0060.00337.54
8.2.210.0140.00026.77
8.2.200.0030.00718.11
8.2.190.0040.01816.58
8.2.180.0070.01118.35
8.2.170.0060.01222.96
8.2.160.0070.01320.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.48
8.2.110.0070.00421.00
8.2.100.0030.00917.80
8.2.90.0000.00920.64
8.2.80.0000.01019.89
8.2.70.0050.00317.50
8.2.60.0080.00018.04
8.2.50.0050.00318.07
8.2.40.0040.00418.09
8.2.30.0000.01118.13
8.2.20.0000.00718.06
8.2.10.0040.00419.23
8.2.00.0000.00819.29
8.1.330.0070.00316.31
8.1.320.0140.00516.28
8.1.310.0070.00716.86
8.1.300.0050.00317.69
8.1.290.0060.00318.88
8.1.280.0080.00625.92
8.1.270.0000.01122.03
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00019.19
8.1.230.0080.00421.04
8.1.220.0000.00817.79
8.1.210.0040.00420.66
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0080.00018.45
8.1.160.0040.00418.89
8.1.150.0000.00718.95
8.1.140.0000.00720.81
8.1.130.0000.00820.17
8.1.120.0030.00317.46
8.1.110.0050.00517.34
8.1.100.0000.00717.46
8.1.90.0000.00717.38
8.1.80.0070.00017.55
8.1.70.0030.00317.34
8.1.60.0040.00417.59
8.1.50.0080.00017.51
8.1.40.0030.00517.45
8.1.30.0000.00817.48
8.1.20.0040.00417.63
8.1.10.0040.00417.61
8.1.00.0040.00417.52
8.0.300.0000.00820.00
8.0.290.0040.00416.75
8.0.280.0000.00818.35
8.0.270.0030.00616.79
8.0.260.0000.00820.14
8.0.250.0050.00216.96
8.0.240.0080.00016.96
8.0.230.0030.00316.86
8.0.220.0000.00816.91
8.0.210.0040.00416.97
8.0.200.0070.00016.99
8.0.190.0030.00516.97
8.0.180.0040.00416.87
8.0.170.0000.00916.86
8.0.160.0030.00516.92
8.0.150.0030.00716.88
8.0.140.0070.00016.74
8.0.130.0030.00313.41
8.0.120.0040.00416.85
8.0.110.0040.00416.90
8.0.100.0000.00716.95
8.0.90.0000.00816.72
8.0.80.0100.01016.77
8.0.70.0000.00716.74
8.0.60.0000.00716.91
8.0.50.0050.00316.85
8.0.30.0100.00717.15
8.0.20.0110.00817.07
8.0.10.0040.00416.92
8.0.00.0100.01016.79
7.4.330.0000.00516.70
7.4.320.0030.00316.40
7.4.300.0000.00616.61
7.4.290.0000.00816.61
7.4.280.0000.00716.57
7.4.270.0030.00716.61
7.4.260.0000.00613.18
7.4.250.0030.00316.57
7.4.240.0080.00016.66
7.4.230.0070.00016.50
7.4.220.0000.00716.56
7.4.210.0040.01016.59
7.4.200.0000.00716.36
7.4.140.0100.00817.86
7.4.130.0090.00916.46
7.4.120.0160.01016.50
7.4.110.0040.01216.55
7.4.100.0110.00616.56
7.4.90.0120.00616.57
7.4.80.0030.01319.39
7.4.70.0000.01716.45
7.4.60.0120.00616.39
7.4.50.0080.00616.58
7.4.40.0100.00716.17
7.4.00.0140.00014.76
7.3.330.0050.00416.68
7.3.320.0000.00713.08
7.3.310.0070.00016.26
7.3.300.0050.00216.21
7.3.290.0060.00016.23
7.3.280.0070.00716.27
7.3.260.0100.01116.46
7.3.240.0110.00816.57
7.3.230.0040.01516.61
7.3.210.0120.00416.51
7.3.200.0040.01916.36
7.3.190.0060.01116.47
7.3.180.0180.00016.56
7.3.170.0030.01316.32
7.3.160.0040.01216.40
7.3.120.0110.00614.81
7.3.110.0030.01315.07
7.3.100.0120.00314.42
7.3.90.0050.01014.79
7.3.80.0030.01014.74
7.3.70.0110.00114.62
7.3.60.0070.00714.92
7.3.50.0080.00614.75
7.3.40.0080.00414.73
7.3.30.0080.00614.70
7.3.20.0050.00815.67
7.3.10.0070.00815.77
7.3.00.0060.00715.75
7.2.330.0070.01716.78
7.2.320.0040.01216.75
7.2.310.0070.01016.69
7.2.300.0130.00316.43
7.2.290.0150.00816.72
7.2.240.0110.00414.85
7.2.230.0000.01715.23
7.2.220.0060.00915.17
7.2.210.0070.00915.04
7.2.200.0080.00815.17
7.2.190.0060.00815.03
7.2.180.0090.00614.97
7.2.170.0150.00014.98
7.2.160.0090.00614.99
7.2.150.0090.00815.91
7.2.140.0040.00916.13
7.2.130.0070.00916.01
7.2.120.0090.00615.89
7.2.110.0080.00515.97
7.2.100.0050.01215.98
7.2.90.0100.00715.93
7.2.80.0060.00616.06
7.2.70.0030.01116.07
7.2.60.0030.01316.00
7.2.50.0080.00615.89
7.2.40.0050.01016.09
7.2.30.0080.00616.05
7.2.20.0110.00616.07
7.2.10.0120.00315.91
7.2.00.0080.01116.09
7.1.330.0080.00315.82
7.1.320.0070.00714.77
7.1.310.0030.01114.82
7.1.300.0050.00614.79
7.1.290.0060.00914.63
7.1.280.0050.00814.83
7.1.270.0070.00714.87
7.1.260.0030.01014.76
7.1.250.0070.00814.79

preferences:
30.28 ms | 403 KiB | 5 Q