3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("hello", "world", "foobar", "foobar"); $array = array_unique($array); print_r($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.20.0100.01017.42
8.4.10.0130.00717.54
8.3.150.0130.00716.49
8.3.140.0180.00016.94
8.3.130.0120.00318.25
8.3.120.0050.00320.71
8.3.110.0060.00920.94
8.3.100.0060.00316.35
8.3.90.0000.00816.50
8.3.80.0070.00417.97
8.3.70.0120.00316.50
8.3.60.0130.00616.38
8.3.50.0120.00921.14
8.3.40.0070.00718.46
8.3.30.0070.00718.92
8.3.20.0000.00720.16
8.3.10.0070.00023.66
8.3.00.0080.00019.13
8.2.260.0070.00416.37
8.2.250.0110.00718.50
8.2.240.0040.00419.07
8.2.230.0000.00920.94
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0030.00618.29
8.2.190.0110.01116.58
8.2.180.0180.00317.93
8.2.170.0150.00022.96
8.2.160.0000.01421.07
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.22
8.2.110.0060.00320.52
8.2.100.0040.00718.09
8.2.90.0000.00719.09
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0060.00319.95
8.2.30.0000.00717.98
8.2.20.0040.00417.52
8.2.10.0060.00317.96
8.2.00.0040.00417.61
8.1.310.0100.00018.38
8.1.300.0090.00618.24
8.1.290.0050.00518.88
8.1.280.0150.00325.92
8.1.270.0090.00022.13
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0080.00323.96
8.1.230.0030.00819.14
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0000.01117.23
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0080.00018.52
8.1.160.0000.00721.82
8.1.150.0000.00718.88
8.1.140.0040.00417.36
8.1.130.0000.00717.82
8.1.120.0000.00717.31
8.1.110.0030.00517.41
8.1.100.0040.00417.29
8.1.90.0040.00417.30
8.1.80.0050.00317.38
8.1.70.0030.00617.36
8.1.60.0000.00917.55
8.1.50.0000.00717.41
8.1.40.0040.00417.33
8.1.30.0040.00417.48
8.1.20.0040.00417.60
8.1.10.0040.00417.37
8.1.00.0030.00617.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0000.00817.25
8.0.260.0000.00617.23
8.0.250.0070.00016.92
8.0.240.0070.00016.91
8.0.230.0070.00016.87
8.0.220.0030.00616.81
8.0.210.0080.00016.84
8.0.200.0060.00016.87
8.0.190.0030.00616.82
8.0.180.0000.00716.92
8.0.170.0050.00216.73
8.0.160.0000.00716.85
8.0.150.0030.00316.84
8.0.140.0070.00016.78
8.0.130.0030.00313.16
8.0.120.0000.00816.66
8.0.110.0040.00416.84
8.0.100.0040.00416.93
8.0.90.0040.00416.86
8.0.80.0080.00616.73
8.0.70.0000.00716.66
8.0.60.0000.00716.79
8.0.50.0040.00416.80
8.0.30.0130.00917.08
8.0.20.0110.00717.40
8.0.10.0040.00416.77
8.0.00.0080.00816.65
7.4.330.0000.00515.00
7.4.320.0040.00416.55
7.4.300.0060.00016.54
7.4.290.0000.00716.43
7.4.280.0040.00716.42
7.4.270.0030.00316.47
7.4.260.0000.00816.55
7.4.250.0050.00216.53
7.4.240.0040.00316.50
7.4.230.0000.00716.52
7.4.220.0110.01016.63
7.4.210.0130.00716.51
7.4.200.0000.00816.43
7.4.160.0060.01216.39
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0070.01016.33
7.4.120.0120.00616.47
7.4.110.0160.00016.42
7.4.100.0170.00016.30
7.4.90.0090.00816.40
7.4.80.0100.00619.39
7.4.70.0100.00716.55
7.4.60.0100.00616.54
7.4.50.0060.00016.31
7.4.40.0060.00916.47
7.4.30.0100.01316.48
7.4.00.0060.00614.71
7.3.330.0000.00513.05
7.3.320.0060.00013.02
7.3.310.0000.00716.20
7.3.300.0000.00716.16
7.3.290.0060.00816.24
7.3.280.0090.00916.14
7.3.270.0130.00317.40
7.3.260.0060.01216.18
7.3.250.0100.00716.15
7.3.240.0120.00916.33
7.3.230.0060.01616.39
7.3.210.0120.00416.41
7.3.200.0070.01019.39
7.3.190.0100.01016.31
7.3.180.0030.01316.23
7.3.170.0080.00816.42
7.3.160.0070.00816.18
7.3.10.0130.00016.48
7.3.00.0090.00916.65
7.2.330.0110.00716.58
7.2.320.0130.00316.53
7.2.310.0000.01716.50
7.2.300.0070.01016.56
7.2.290.0100.00716.21
7.2.130.0080.00816.94
7.2.120.0000.01016.59
7.2.110.0030.00716.75
7.2.100.0060.00916.52
7.2.90.0030.01016.98
7.2.80.0030.01216.64
7.2.70.0090.00316.43
7.2.60.0180.01016.47
7.2.50.0040.01416.36
7.2.40.0000.01816.71
7.2.30.0070.01016.96
7.2.20.0030.00716.59
7.2.10.0120.00316.74
7.2.00.0000.01217.93
7.1.250.0030.01015.53
7.1.200.0030.01315.41
7.1.100.0030.00717.67
7.1.70.0040.00417.16
7.1.60.0060.01219.11
7.1.50.0120.01216.99
7.1.00.0100.07022.42
7.0.200.0040.00416.41
7.0.140.0030.07722.00
7.0.100.0100.03720.05
7.0.90.0170.07719.97
7.0.80.0130.07319.89
7.0.70.0300.06719.89
7.0.60.0100.05019.90
7.0.50.0100.07320.38
7.0.40.0100.08720.05
7.0.30.0170.07320.04
7.0.20.0170.04020.09
7.0.10.0070.04720.14
7.0.00.0100.07020.17
5.6.280.0030.07720.78
5.6.250.0170.07020.71
5.6.240.0100.07020.62
5.6.230.0100.04320.65
5.6.220.0230.05020.52
5.6.210.0000.08020.64
5.6.200.0170.08021.03
5.6.190.0100.07021.16
5.6.180.0070.07721.02
5.6.170.0130.05321.11
5.6.160.0100.08021.14
5.6.150.0070.08021.02
5.6.140.0030.07720.91
5.6.130.0070.08320.94
5.6.120.0100.09321.04
5.6.110.0170.08021.03
5.6.100.0100.10020.91
5.6.90.0130.08021.01
5.6.80.0130.08020.48
5.6.70.0030.08320.45
5.6.60.0130.06320.32
5.6.50.0070.08020.38
5.6.40.0100.08320.43
5.6.30.0070.05320.46
5.6.20.0100.07020.36
5.6.10.0100.08020.45
5.6.00.0030.06020.29
5.5.380.0130.03020.51
5.5.370.0070.08020.34
5.5.360.0130.08020.48
5.5.350.0100.08020.45
5.5.340.0030.08320.86
5.5.330.0170.07020.89
5.5.320.0070.08320.75
5.5.310.0100.05720.72
5.5.300.0030.08320.91
5.5.290.0070.08020.87
5.5.280.0100.05720.63
5.5.270.0030.05720.81
5.5.260.0070.08320.71
5.5.250.0030.04320.57
5.5.240.0100.07320.24
5.5.230.0170.07020.30
5.5.220.0000.07720.09
5.5.210.0130.07020.13
5.5.200.0130.04020.12
5.5.190.0000.07020.18
5.5.180.0030.09020.16
5.5.160.0000.04720.16
5.5.150.0200.06720.14
5.5.140.0100.05320.22
5.5.130.0100.06320.24
5.5.120.0100.06020.23
5.5.110.0030.04320.11
5.5.100.0030.09020.08
5.5.90.0130.06320.07
5.5.80.0130.06019.96
5.5.70.0030.05320.13
5.5.60.0030.08020.04
5.5.50.0100.07320.05
5.5.40.0100.07319.95
5.5.30.0130.07320.04
5.5.20.0030.05720.03
5.5.10.0100.04320.07
5.5.00.0030.08020.12
5.4.450.0070.07719.43
5.4.440.0100.09319.41
5.4.430.0100.07719.16
5.4.420.0170.06719.36
5.4.410.0030.05319.24
5.4.400.0030.08018.87
5.4.390.0100.07719.12
5.4.380.0100.08319.24
5.4.370.0200.06319.04
5.4.360.0130.07319.02
5.4.350.0070.06718.96
5.4.340.0130.06719.04
5.4.320.0030.07018.95
5.4.310.0130.07718.87
5.4.300.0130.06319.15
5.4.290.0030.04018.90
5.4.280.0100.04319.16
5.4.270.0100.03718.94
5.4.260.0070.03719.02
5.4.250.0170.06718.88
5.4.240.0070.04018.89
5.4.230.0070.07318.84
5.4.220.0030.07019.11
5.4.210.0030.08719.11
5.4.200.0100.06319.15
5.4.190.0130.05319.03
5.4.180.0100.05319.01
5.4.170.0070.07719.12
5.4.160.0000.07318.88
5.4.150.0100.07718.85
5.4.140.0030.07016.46
5.4.130.0100.05316.42
5.4.120.0130.06716.32
5.4.110.0070.06716.55
5.4.100.0070.07316.48
5.4.90.0030.07716.50
5.4.80.0070.04316.41
5.4.70.0070.06316.37
5.4.60.0100.06016.38
5.4.50.0000.07316.39
5.4.40.0100.06016.45
5.4.30.0130.07016.23
5.4.20.0130.06316.45
5.4.10.0070.07016.36
5.4.00.0130.05315.87
5.3.290.0030.07714.64
5.3.280.0170.06714.72
5.3.270.0100.06314.55
5.3.260.0130.06014.65
5.3.250.0030.06714.60
5.3.240.0170.06714.56
5.3.230.0030.06014.72
5.3.220.0070.06714.66
5.3.210.0030.08314.48
5.3.200.0100.07714.70
5.3.190.0000.05314.68
5.3.180.0070.06714.48
5.3.170.0130.06314.44
5.3.160.0070.07314.55
5.3.150.0070.05314.60
5.3.140.0030.07014.53
5.3.130.0070.06314.64
5.3.120.0070.07714.59
5.3.110.0000.08314.52
5.3.100.0100.03014.13
5.3.90.0130.05314.04
5.3.80.0030.05314.02
5.3.70.0030.06714.10
5.3.60.0030.05014.13
5.3.50.0100.07013.92
5.3.40.0030.07714.07
5.3.30.0100.07013.95
5.3.20.0100.06313.67
5.3.10.0030.04713.57
5.3.00.0100.05313.53
5.2.170.0070.05710.99
5.2.160.0070.06011.19
5.2.150.0100.05710.99
5.2.140.0070.05711.12
5.2.130.0100.05711.11
5.2.120.0070.05711.16
5.2.110.0070.04310.98
5.2.100.0030.04310.98
5.2.90.0100.05011.02
5.2.80.0170.05311.07
5.2.70.0000.06710.99
5.2.60.0000.04011.05
5.2.50.0070.03011.11
5.2.40.0000.06711.09
5.2.30.0100.05011.00
5.2.20.0030.06711.00
5.2.10.0000.06010.99
5.2.00.0030.05310.66
5.1.60.0100.03310.04
5.1.50.0030.05310.00
5.1.40.0000.05710.02
5.1.30.0170.04710.25
5.1.20.0000.03310.41
5.1.10.0070.04710.04
5.1.00.0000.06310.05
5.0.50.0070.0379.30
5.0.40.0070.0379.30
5.0.30.0030.0639.30
5.0.20.0000.0479.30
5.0.10.0000.0409.30
5.0.00.0030.0539.30
4.4.90.0000.0209.30
4.4.80.0030.0339.30
4.4.70.0000.0309.30
4.4.60.0070.0339.30
4.4.50.0000.0309.30
4.4.40.0030.0479.30
4.4.30.0030.0339.30
4.4.20.0100.0239.30
4.4.10.0000.0309.30
4.4.00.0030.0409.30
4.3.110.0070.0309.30
4.3.100.0000.0379.30
4.3.90.0000.0379.30
4.3.80.0030.0479.30
4.3.70.0030.0339.30
4.3.60.0070.0239.30
4.3.50.0000.0279.30
4.3.40.0000.0479.30
4.3.30.0000.0179.30
4.3.20.0030.0339.30
4.3.10.0000.0379.30
4.3.00.0000.0209.30

preferences:
35.11 ms | 403 KiB | 5 Q