3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'abclkjabc'; echo count(array_filter(count_chars($string, 1), fn($count) => $count === 1));

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.0130.00722.04
8.3.140.0050.00316.46
8.3.130.0040.00418.50
8.3.120.0090.00618.88
8.3.110.0040.01120.94
8.3.100.0100.00024.06
8.3.90.0060.01226.77
8.3.80.0100.00016.63
8.3.70.0140.00416.58
8.3.60.0080.01218.43
8.3.50.0060.00919.90
8.3.40.0150.00721.86
8.3.30.0070.00718.42
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0020.00526.16
8.2.260.0040.00416.36
8.2.250.0080.00018.35
8.2.240.0040.00418.91
8.2.230.0090.00022.58
8.2.220.0080.00037.54
8.2.210.0110.00726.77
8.2.200.0040.00416.25
8.2.190.0110.00716.58
8.2.180.0100.00625.92
8.2.170.0060.00918.83
8.2.160.0100.00322.96
8.2.150.0060.00325.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0030.00622.13
8.2.100.0000.01217.91
8.2.90.0050.00317.75
8.2.80.0040.00418.64
8.2.70.0050.00317.63
8.2.60.0090.00018.05
8.2.50.0000.01018.07
8.2.40.0050.00318.04
8.2.30.0040.00418.13
8.2.20.0000.00720.35
8.2.10.0000.00818.11
8.2.00.0000.00719.20
8.1.310.0030.00618.57
8.1.300.0060.00318.19
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0050.00323.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.46
8.1.230.0040.00817.77
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0090.00018.46
8.1.160.0070.00018.94
8.1.150.0040.00418.64
8.1.140.0000.00817.43
8.1.130.0030.00318.80
8.1.120.0030.00717.47
8.1.110.0040.00417.44
8.1.100.0050.00217.42
8.1.90.0030.00517.45
8.1.80.0100.00717.51
8.1.70.0060.00917.42
8.1.60.0170.00017.54
8.1.50.0110.00517.50
8.1.40.0170.00017.54
8.1.30.0140.00317.59
8.1.20.0110.00517.67
8.1.10.0120.00617.41
8.1.00.0140.00317.44
8.0.300.0080.00018.77
8.0.290.0060.00316.63
8.0.280.0050.00318.45
8.0.270.0030.00516.86
8.0.260.0000.00818.43
8.0.250.0000.00716.84
8.0.240.0070.00016.84
8.0.230.0000.00816.77
8.0.220.0000.00716.69
8.0.210.0090.00916.77
8.0.200.0080.00816.92
8.0.190.0130.00316.95
8.0.180.0110.00416.92
8.0.170.0160.00016.74
8.0.160.0120.00616.86
8.0.150.0040.01216.89
8.0.140.0090.00616.77
8.0.130.0130.00316.89
8.0.120.0080.00816.86
8.0.110.0080.00816.86
8.0.100.0120.00416.83
8.0.90.0170.00016.79
8.0.80.0050.00816.74
8.0.70.0100.00516.88
8.0.60.0110.00616.90
8.0.50.0090.00616.88
8.0.30.0030.00916.82
8.0.20.0160.00016.88
8.0.10.0090.00017.04
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0000.00616.47
7.4.290.0030.01016.46
7.4.280.0110.00416.54
7.4.270.0120.00316.43
7.4.260.0120.00016.41
7.4.250.0030.01016.55
7.4.240.0130.00016.39
7.4.230.0090.00316.58
7.4.220.0070.00516.38
7.4.210.0110.00016.46
7.4.200.0050.00616.36
7.4.190.0130.00016.64
7.4.180.0060.00616.58
7.4.160.0130.00016.46
7.4.150.0090.00616.36
7.4.140.0110.00416.49
7.4.130.0090.00716.50
7.4.120.0100.00416.43
7.4.110.0110.00316.46
7.4.100.0060.00816.51
7.4.90.0090.00616.44
7.4.80.0100.00316.52
7.4.70.0110.00316.44
7.4.60.0040.01116.43
7.4.50.0050.01016.36
7.4.40.0070.00716.34
7.4.30.0080.00516.43
7.4.20.0100.00316.54
7.4.10.0080.00616.43
7.4.00.0120.00216.44

preferences:
29.15 ms | 403 KiB | 5 Q