3v4l.org

run code in 300+ PHP versions simultaneously
<?php $example = 'This is an example of what I need.'; $words = str_word_count($example, 1); for ($x = 0; isset($words[$x + 2]); ++$x) { printf("%s %s %s\n", $words[$x], $words[$x + 1], $words[$x + 2]); }

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.140.0110.01017.52
8.4.130.0130.00717.75
8.4.120.0130.00722.28
8.4.110.0110.00818.68
8.4.100.0120.00818.73
8.4.90.0080.00420.23
8.4.80.0060.00618.98
8.4.70.0100.00618.74
8.4.60.0100.01119.05
8.4.50.0160.00618.41
8.4.40.0030.00717.42
8.4.30.0110.00320.28
8.4.20.0050.00317.82
8.4.10.0040.00419.27
8.3.270.0090.01016.54
8.3.260.0100.00716.65
8.3.250.0040.00418.87
8.3.240.0150.00316.66
8.3.230.0100.01016.52
8.3.220.0140.00418.81
8.3.210.0110.00818.18
8.3.200.0040.00516.84
8.3.190.0120.00717.06
8.3.180.0110.00818.81
8.3.170.0000.01316.50
8.3.160.0140.00017.08
8.3.150.0110.00717.20
8.3.140.0080.00020.38
8.3.130.0030.00716.44
8.3.120.0040.00418.57
8.3.110.0110.00020.94
8.3.100.0050.00324.06
8.3.90.0110.00726.77
8.3.80.0000.01016.63
8.3.70.0090.00616.63
8.3.60.0100.01018.05
8.3.50.0120.00918.07
8.3.40.0070.00720.86
8.3.30.0070.00718.59
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0080.01126.16
8.2.290.0150.00420.36
8.2.280.0050.00718.49
8.2.270.0110.00719.84
8.2.260.0150.00016.37
8.2.250.0000.00818.48
8.2.240.0050.00317.14
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0080.00826.77
8.2.200.0040.00416.38
8.2.190.0070.00716.63
8.2.180.0060.00925.92
8.2.170.0040.01118.91
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00321.18
8.2.110.0070.00321.12
8.2.100.0130.00017.91
8.2.90.0060.00317.91
8.2.80.0000.00919.20
8.2.70.0040.00417.63
8.2.60.0000.00918.04
8.2.50.0050.00317.98
8.2.40.0040.00419.78
8.2.30.0040.00417.56
8.2.20.0000.00718.05
8.2.10.0050.00319.12
8.2.00.0040.00419.19
8.1.330.0110.00720.01
8.1.320.0090.00516.15
8.1.310.0150.00417.98
8.1.300.0130.00320.29
8.1.290.0030.00630.84
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0110.00020.91
8.1.220.0040.00417.74
8.1.210.0000.00918.91
8.1.200.0030.00617.36
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0030.00517.62
8.1.160.0030.00618.93
8.1.150.0000.00718.58
8.1.140.0050.00217.43
8.1.130.0070.00017.30
8.1.120.0000.00717.38
8.1.110.0070.00017.27
8.1.100.0040.00417.36
8.1.90.0030.00317.28
8.1.80.0060.00317.42
8.1.70.0040.00417.40
8.1.60.0000.00817.47
8.1.50.0040.00417.46
8.1.40.0050.00317.34
8.1.30.0050.00317.56
8.1.20.0030.00517.48
8.1.10.0000.00917.41
8.1.00.0040.00417.34
8.0.300.0000.00820.20
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0070.00016.75
8.0.260.0070.00016.75
8.0.250.0000.00816.95
8.0.240.0030.00316.75
8.0.230.0000.00716.88
8.0.220.0040.00416.78
8.0.210.0040.00416.79
8.0.200.0070.00016.76
8.0.190.0000.00716.82
8.0.180.0040.00416.76
8.0.170.0050.00316.68
8.0.160.0000.00716.77
8.0.150.0040.00416.71
8.0.140.0070.00016.81
8.0.130.0030.00613.32
8.0.120.0060.00316.66
8.0.110.0000.00716.62
8.0.100.0000.00816.68
8.0.90.0070.00016.72
8.0.80.0000.00816.81
8.0.70.0030.00316.79
8.0.60.0000.00716.82
8.0.50.0040.00416.78
8.0.30.0030.00316.88
8.0.20.0000.00716.88
8.0.10.0030.00316.82
8.0.00.0040.00416.98
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0060.00016.58
7.4.290.0030.00316.39
7.4.280.0060.00316.44
7.4.270.0040.00416.47
7.4.260.0030.00313.16
7.4.250.0050.00316.41
7.4.240.0000.00716.42
7.4.230.0000.00716.35
7.4.220.0000.00716.61
7.4.210.0040.00416.38
7.4.200.0040.00416.41
7.4.190.0040.00416.71
7.4.180.0040.00416.41
7.4.160.0000.00816.60
7.4.150.0030.00316.30
7.4.140.0030.00516.15
7.4.130.0000.00716.30
7.4.120.0030.00316.09
7.4.110.0030.00316.46
7.4.100.0030.00316.46
7.4.90.0030.00316.21
7.4.80.0070.00016.34
7.4.70.0000.00716.41
7.4.60.0000.00716.41
7.4.50.0030.00316.14
7.4.40.0000.00716.04
7.4.30.0040.00416.39
7.4.20.0030.00316.38
7.4.10.0030.00316.23
7.4.00.0070.00016.36
7.3.330.0070.00016.26
7.3.320.0060.00013.00
7.3.310.0000.00716.20
7.3.300.0040.00416.12
7.3.290.0040.00416.25
7.3.280.0070.00016.07
7.3.270.0030.00316.26
7.3.260.0000.00616.30
7.3.250.0000.00616.20
7.3.240.0030.00316.29
7.3.230.0030.00316.25
7.3.220.0050.00216.30
7.3.210.0070.00016.29
7.3.200.0000.00616.26
7.3.190.0040.00416.28
7.3.180.0030.00316.22
7.3.170.0030.00316.26
7.3.160.0040.00416.13
7.3.150.0050.00216.31
7.3.140.0000.00816.24
7.3.130.0040.00416.29
7.3.120.0000.00616.26
7.3.110.0030.00316.20
7.3.100.0000.00716.21
7.3.90.0080.00016.50
7.3.80.0030.00616.23
7.3.70.0000.00716.38
7.3.60.0080.00016.43
7.3.50.0040.00416.46
7.3.40.0040.00416.30
7.3.30.0050.00316.32
7.3.20.0040.00416.44
7.3.10.0080.00016.41
7.3.00.0040.00416.38

preferences:
131.96 ms | 403 KiB | 5 Q