3v4l.org

run code in 300+ PHP versions simultaneously
<?php function no_dupes(array $input_array) { return count($input_array) === count(array_flip($input_array)); } var_export(no_dupes([1, 1.5])); // should be true

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.0050.00620.39
8.4.110.0080.01218.95
8.4.100.0150.00617.84
8.4.90.0080.00620.57
8.4.80.0040.00618.90
8.4.70.0090.00718.21
8.4.60.0110.00918.36
8.4.50.0140.00618.47
8.4.40.0210.00919.68
8.4.30.0100.01020.28
8.4.20.0130.00717.99
8.4.10.0090.00020.37
8.3.250.0070.01118.88
8.3.240.0120.00716.71
8.3.230.0110.00516.54
8.3.220.0140.00719.17
8.3.210.0090.01016.68
8.3.200.0050.00316.82
8.3.190.0120.00716.85
8.3.180.0040.00516.92
8.3.170.0090.00916.95
8.3.160.0110.00718.26
8.3.150.0070.00316.66
8.3.140.0070.01016.62
8.3.130.0030.00618.62
8.3.120.0030.00620.53
8.3.110.0030.00520.94
8.3.100.0030.00624.06
8.3.90.0030.00626.77
8.3.80.0000.01116.88
8.3.70.0110.00416.75
8.3.60.0100.00718.32
8.3.50.0110.00923.52
8.3.40.0110.00418.84
8.3.30.0070.01018.71
8.3.20.0000.00724.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0080.00517.19
8.2.280.0090.00918.28
8.2.270.0080.00016.67
8.2.260.0140.00416.49
8.2.250.0000.00816.38
8.2.240.0060.01318.80
8.2.230.0050.00322.58
8.2.220.0030.00637.54
8.2.210.0140.00726.77
8.2.200.0090.00018.18
8.2.190.0110.00416.58
8.2.180.0140.00725.92
8.2.170.0180.00418.74
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0080.00020.81
8.2.110.0030.00621.12
8.2.100.0130.00418.77
8.2.90.0090.00017.75
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0030.00617.68
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0060.00317.98
8.2.20.0070.00017.95
8.2.10.0040.00419.11
8.2.00.0070.00019.10
8.1.330.0110.00916.02
8.1.320.0120.00715.92
8.1.310.0040.00415.94
8.1.300.0060.00318.37
8.1.290.0090.00030.84
8.1.280.0190.00025.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00919.16
8.1.230.0080.00420.99
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0000.00718.72
8.1.150.0050.00218.86
8.1.140.0000.00718.73
8.1.130.0040.00417.25
8.1.120.0030.00317.32
8.1.110.0000.00817.38
8.1.100.0030.00517.27
8.1.90.0080.00617.34
8.1.80.0090.00517.33
8.1.70.0070.00617.33
8.1.60.0080.00717.50
8.1.50.0080.00817.47
8.1.40.0100.00517.43
8.1.30.0140.00317.59
8.1.20.0080.00717.58
8.1.10.0110.00517.42
8.1.00.0090.00617.33
8.0.300.0070.00019.72
8.0.290.0080.00016.63
8.0.280.0000.00818.21
8.0.270.0030.00317.84
8.0.260.0030.00317.03
8.0.250.0000.00716.76
8.0.240.0040.00416.90
8.0.230.0030.00316.92
8.0.220.0080.00516.79
8.0.210.0060.00716.75
8.0.200.0090.00416.76
8.0.190.0080.00616.82
8.0.180.0080.00516.90
8.0.170.0070.00516.81
8.0.160.0100.00216.89
8.0.150.0080.00516.83
8.0.140.0070.00616.80
8.0.130.0100.00215.59
8.0.120.0070.00616.82
8.0.110.0090.00516.90
8.0.100.0100.00316.80
8.0.90.0060.00716.81
8.0.80.0090.00616.86
8.0.70.0090.00516.83
8.0.60.0110.00216.76
8.0.50.0040.00616.84
8.0.30.0070.01016.79
8.0.20.0100.00716.83
8.0.10.0040.00816.90
8.0.00.0110.00617.24
7.4.330.0000.00415.55
7.4.320.0040.00416.53
7.4.300.0030.00916.47
7.4.290.0070.00416.36
7.4.280.0060.00616.47
7.4.270.0070.00716.50
7.4.260.0060.00615.36
7.4.250.0090.00716.45
7.4.240.0140.00016.51
7.4.230.0080.00716.32
7.4.220.0060.00616.47
7.4.210.0050.01016.43
7.4.200.0060.00416.49
7.4.190.0090.00516.38
7.4.180.0160.00016.53
7.4.160.0110.00416.47
7.4.150.0140.00316.39
7.4.140.0050.00816.77
7.4.130.0120.00316.72
7.4.120.0090.01116.80
7.4.110.0160.00516.82
7.4.100.0130.00716.88
7.4.90.0150.00516.88
7.4.80.0110.00716.70
7.4.70.0140.00516.88
7.4.60.0110.00516.78
7.4.50.0150.00416.72
7.4.40.0150.00516.76
7.4.30.0130.00616.81
7.4.20.0140.00316.83
7.4.10.0180.00116.78
7.4.00.0060.00516.52
7.3.330.0090.00416.31
7.3.320.0090.00415.26
7.3.310.0060.00616.38
7.3.300.0080.00416.34
7.3.290.0080.00716.35
7.3.280.0150.00016.25
7.3.270.0100.00616.20
7.3.260.0150.00516.76
7.3.250.0180.00216.81
7.3.240.0130.00716.78
7.3.230.0120.00816.77
7.3.220.0160.00416.84
7.3.210.0180.00416.88
7.3.200.0110.01016.78
7.3.190.0150.00816.84
7.3.180.0120.00916.81
7.3.170.0160.00516.81
7.3.160.0160.00716.80
7.3.150.0130.00716.81
7.3.140.0130.00716.91
7.3.130.0190.00216.82
7.3.120.0100.01016.86
7.3.110.0200.00116.69
7.3.100.0130.00916.68
7.3.90.0160.00716.94
7.3.80.0140.00816.79
7.3.70.0090.01116.81
7.3.60.0110.00916.90
7.3.50.0130.00716.90
7.3.40.0130.00716.95
7.3.30.0130.00716.90
7.3.20.0140.00716.92
7.3.10.0140.00716.87
7.3.00.0180.00516.91

preferences:
23.85 ms | 403 KiB | 5 Q