3v4l.org

run code in 300+ PHP versions simultaneously
<?php $correctSentence = "The year stations are summer, winter, spring and fall."; $textSentence = "The year stations are four summer, winter and spring and summer."; $correctArray = str_word_count($correctSentence, 1); $textArray = str_word_count($textSentence, 1); var_export( array_merge( array_diff($textArray, $correctArray), array_keys(array_filter(array_count_values($textArray), fn($v) => $v > 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.5.20.0080.01019.56
8.5.10.0070.01120.15
8.5.00.0130.00820.07
8.4.170.0120.01023.67
8.4.160.0110.01023.14
8.4.150.0010.00114.05
8.4.140.0110.01017.59
8.4.130.0140.00617.75
8.4.120.0060.00320.53
8.4.110.0110.00922.67
8.4.100.0120.00817.52
8.4.90.0060.00218.52
8.4.80.0110.00917.68
8.4.70.0110.00617.66
8.4.60.0120.01018.88
8.4.50.0110.00919.39
8.4.40.0120.00918.04
8.4.30.0120.00618.77
8.4.20.0170.00322.52
8.4.10.0060.00323.73
8.3.290.0140.00820.92
8.3.280.0120.00818.27
8.3.270.0110.00816.73
8.3.260.0070.00216.66
8.3.250.0080.00318.80
8.3.240.0050.00416.77
8.3.230.0150.00616.35
8.3.220.0060.00617.08
8.3.210.0060.00216.64
8.3.200.0070.00216.65
8.3.190.0050.00417.27
8.3.180.0080.01218.37
8.3.170.0030.01717.25
8.3.160.0070.01118.23
8.3.150.0110.00720.54
8.3.140.0150.00016.46
8.3.130.0040.01218.66
8.3.120.0060.00320.96
8.3.110.0030.00516.50
8.3.100.0100.00718.30
8.3.90.0080.00026.77
8.3.80.0060.00916.50
8.3.70.0110.00416.75
8.3.60.0110.00716.75
8.3.50.0070.01120.35
8.3.40.0030.01020.15
8.3.30.0000.01518.72
8.3.20.0050.00524.18
8.3.10.0020.00524.66
8.3.00.0040.00426.16
8.2.300.0100.01118.11
8.2.290.0130.00520.16
8.2.280.0070.00618.44
8.2.270.0060.01217.05
8.2.260.0150.00418.27
8.2.250.0120.00316.35
8.2.240.0130.00717.25
8.2.230.0090.00020.94
8.2.220.0080.00024.06
8.2.210.0100.00026.77
8.2.200.0000.00918.42
8.2.190.0120.00316.58
8.2.180.0140.00725.92
8.2.170.0120.00322.96
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0050.00522.11
8.2.100.0060.00617.78
8.2.90.0060.00317.75
8.2.80.0030.00618.73
8.2.70.0040.00417.50
8.2.60.0080.00017.48
8.2.50.0090.00018.05
8.2.40.0050.00218.02
8.2.30.0040.00417.96
8.2.20.0040.00419.27
8.2.10.0040.00418.07
8.2.00.0040.00419.31
8.1.340.0110.01017.34
8.1.330.0100.00822.00
8.1.320.0130.00616.30
8.1.310.0090.00016.63
8.1.300.0080.00020.19
8.1.290.0060.00330.84
8.1.280.0120.00925.92
8.1.270.0080.00021.91
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00723.91
8.1.230.0030.00920.87
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0000.00917.36
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0000.00719.02
8.1.150.0000.00818.53
8.1.140.0000.00817.42
8.1.130.0030.00320.52
8.1.120.0000.00717.50
8.1.110.0140.00217.43
8.1.100.0000.01517.38
8.1.90.0130.00217.38
8.1.80.0040.01217.47
8.1.70.0070.00817.36
8.1.60.0090.00917.53
8.1.50.0080.00817.55
8.1.40.0150.00317.52
8.1.30.0170.00017.61
8.1.20.0100.00717.71
8.1.10.0180.00017.30
8.1.00.0180.00017.39
8.0.300.0000.00718.78
8.0.290.0040.00416.75
8.0.280.0060.00318.46
8.0.270.0030.00316.87
8.0.260.0000.00618.48
8.0.250.0070.00017.00
8.0.240.0110.00416.83
8.0.230.0090.00616.94
8.0.220.0000.01416.89
8.0.210.0120.00216.82
8.0.200.0130.00316.92
8.0.190.0110.00416.79
8.0.180.0150.00016.88
8.0.170.0040.00416.92
8.0.160.0150.00016.95
8.0.150.0130.00316.77
8.0.140.0120.00416.71
8.0.130.0120.00416.79
8.0.120.0070.00716.70
8.0.110.0060.00616.73
8.0.100.0100.00516.73
8.0.90.0050.00916.83
8.0.80.0050.00916.84
8.0.70.0150.00016.78
8.0.60.0070.00716.84
8.0.50.0070.00716.83
8.0.30.0140.00016.86
8.0.20.0080.00816.86
8.0.10.0100.00516.98
7.4.330.0050.00015.55
7.4.320.0140.00016.45
7.4.300.0100.00516.49
7.4.290.0040.01416.41
7.4.280.0140.00316.46
7.4.270.0140.00316.52
7.4.260.0090.00516.33
7.4.250.0110.00016.27
7.4.240.0100.00016.22
7.4.230.0070.00316.36
7.4.220.0110.00016.41
7.4.210.0100.00316.59
7.4.200.0120.00316.58
7.4.190.0130.00016.53
7.4.180.0130.00316.53
7.4.160.0070.00716.57
7.4.150.0150.00016.50
7.4.140.0110.00416.33
7.4.130.0110.00316.39
7.4.120.0000.01316.28
7.4.110.0120.00416.36
7.4.100.0110.00316.41
7.4.90.0110.00316.46
7.4.80.0110.00316.36
7.4.70.0120.00316.27
7.4.60.0100.00516.30
7.4.50.0050.00316.22
7.4.40.0030.00316.25
7.4.30.0050.00216.43
7.4.20.0000.00616.26
7.4.10.0040.00416.39
7.4.00.0030.00316.39

preferences:
135.08 ms | 403 KiB | 5 Q