3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uniqueCount = 0; foreach (array_count_values(str_split('abclkjabc')) as $char => $count) { if ($count === 1) { ++$uniqueCount; } } echo $uniqueCount;

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.10.0040.00419.64
8.3.140.0150.00017.19
8.3.130.0050.00318.49
8.3.120.0110.00418.72
8.3.110.0000.00816.50
8.3.100.0060.00318.55
8.3.90.0050.00320.14
8.3.80.0030.00719.36
8.3.70.0110.00416.58
8.3.60.0130.00316.50
8.3.50.0100.00823.61
8.3.40.0040.01120.38
8.3.30.0110.00718.72
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.260.0050.00316.29
8.2.250.0040.00416.57
8.2.240.0030.00617.23
8.2.230.0040.00720.94
8.2.220.0000.01037.54
8.2.210.0160.00326.77
8.2.200.0040.00418.41
8.2.190.0130.00716.63
8.2.180.0090.00625.92
8.2.170.0070.01118.84
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00318.97
8.2.110.0150.00721.13
8.2.100.0080.00317.79
8.2.90.0080.00018.03
8.2.80.0080.00019.16
8.2.70.0060.00317.50
8.2.60.0000.00718.04
8.2.50.0060.00318.07
8.2.40.0040.00418.14
8.2.30.0000.01118.11
8.2.20.0040.00418.04
8.2.10.0000.00719.38
8.2.00.0040.00419.35
8.1.310.0070.01018.38
8.1.300.0070.00717.50
8.1.290.0060.00318.88
8.1.280.0110.00325.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0150.00421.13
8.1.230.0080.00421.04
8.1.220.0070.00017.79
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0030.00618.54
8.1.160.0000.00718.87
8.1.150.0040.00418.88
8.1.140.0030.00518.79
8.1.130.0030.00320.13
8.1.120.0000.00717.52
8.1.110.0040.00417.43
8.1.100.0030.00517.47
8.1.90.0040.00417.52
8.1.80.0080.00017.47
8.1.70.0050.00517.43
8.1.60.0060.00317.55
8.1.50.0000.00817.52
8.1.40.0050.00317.54
8.1.30.0040.00417.64
8.1.20.0050.00317.55
8.1.10.0040.00417.54
8.1.00.0030.00617.45
8.0.300.0070.00020.12
8.0.290.0040.00416.75
8.0.280.0040.00418.47
8.0.270.0030.00317.91
8.0.260.0030.00318.38
8.0.250.0030.00316.78
8.0.240.0030.00316.93
8.0.230.0040.00416.96
8.0.220.0080.00016.89
8.0.210.0040.00416.86
8.0.200.0030.00316.91
8.0.190.0000.00816.94
8.0.180.0040.00416.85
8.0.170.0030.00516.96
8.0.160.0040.00416.81
8.0.150.0030.00516.70
8.0.140.0070.00016.72
8.0.130.0060.00013.18
8.0.120.0080.00016.84
8.0.110.0030.00316.83
8.0.100.0080.00016.79
8.0.90.0040.00416.74
8.0.80.0050.00916.89
8.0.70.0040.00416.78
8.0.60.0040.00416.79
8.0.50.0000.00816.80
8.0.30.0100.00717.05
8.0.20.0070.01517.12
8.0.10.0040.00416.93
8.0.00.0070.01316.83
7.4.330.0000.00515.55
7.4.320.0060.00016.49
7.4.300.0060.00016.57
7.4.290.0070.00016.53
7.4.280.0000.00816.58
7.4.270.0050.00316.59
7.4.260.0000.00513.26
7.4.250.0030.00316.41
7.4.240.0040.00416.55
7.4.230.0000.00816.66
7.4.220.0020.00616.40
7.4.210.0090.00716.61
7.4.200.0030.00316.65
7.4.130.0090.00816.38
7.4.120.0070.01016.48
7.4.110.0100.00716.64
7.4.100.0150.00716.53
7.4.90.0150.00316.34
7.4.80.0130.00716.30
7.4.70.0030.01816.50
7.4.60.0160.00316.28
7.4.50.0140.00615.94
7.4.40.0100.01316.17
7.4.30.0090.00916.45
7.4.20.0070.01416.35
7.4.10.0110.00716.32
7.4.00.0140.00416.48
7.3.330.0000.00816.28
7.3.320.0030.00213.05
7.3.310.0060.00016.36
7.3.300.0000.00616.33
7.3.290.0030.01116.30
7.3.260.0070.01116.35
7.3.230.0120.00616.38
7.3.220.0130.00616.50
7.3.210.0060.01516.44
7.3.200.0150.00916.63
7.3.190.0120.00916.21
7.3.180.0150.00316.38
7.3.170.0060.01616.41
7.3.160.0170.00016.58
7.3.150.0080.01116.54
7.3.140.0100.01016.14
7.3.130.0190.00016.16
7.3.120.0100.01016.32
7.3.110.0130.00716.54
7.3.100.0130.00316.17
7.3.90.0040.01416.41
7.3.80.0130.00616.10
7.3.70.0160.00616.25
7.3.60.0100.01416.28
7.3.50.0190.00316.35
7.3.40.0040.01316.30
7.3.30.0100.01316.17
7.3.20.0860.01616.24
7.3.10.0150.00616.20
7.3.00.0070.01116.54
7.2.330.0070.01616.74
7.2.320.0160.00316.45
7.2.310.0110.00716.72
7.2.300.0070.01716.49
7.2.290.0110.00716.53
7.2.280.0070.01016.59
7.2.270.0100.00916.52
7.2.260.0130.00316.25
7.2.250.0130.00616.60
7.2.240.0090.00916.66
7.2.230.0090.00916.57
7.2.220.0140.00316.46
7.2.210.0150.00416.52
7.2.200.0140.01116.27
7.2.190.0090.01316.61
7.2.180.0140.00416.46
7.2.170.0060.01316.61
7.2.160.0130.01316.45
7.2.150.0100.00916.35
7.2.140.0170.00716.52
7.2.130.0060.01416.68
7.2.120.0070.01316.59
7.2.110.0130.01316.61
7.2.100.0090.01216.61
7.2.90.0060.01316.44
7.2.80.0160.01016.63
7.2.70.0170.00716.49
7.2.60.0080.01216.52
7.2.50.0110.01416.44
7.2.40.0190.00616.76
7.2.30.0040.01816.66
7.2.20.0110.01116.45
7.2.10.0100.01316.57
7.2.00.0150.00816.69

preferences:
46.06 ms | 403 KiB | 5 Q