3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = array('foo : bar', 'foo...bar', 'this ---- is a . .. ¤@££@$ test'); $words = 0; $lines = sizeof($src); $i = 0; while ($i < $lines) { $words += count($src[$i]); $i++; } echo "Lines: $lines - Words: $words";

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.3.60.0140.00016.75
8.3.50.0080.01117.54
8.3.40.0090.00618.83
8.3.30.0080.00818.81
8.3.20.0040.00418.85
8.3.10.0060.00320.65
8.3.00.0030.00619.26
8.2.180.0030.01016.63
8.2.170.0140.00322.96
8.2.160.0100.00321.09
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.01419.36
8.2.110.0030.00720.90
8.2.100.0000.01117.84
8.2.90.0030.00619.22
8.2.80.0040.00419.28
8.2.70.0000.00817.61
8.2.60.0050.00317.78
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0030.00618.18
8.2.20.0040.00417.76
8.2.10.0000.00717.72
8.2.00.0050.00317.68
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00322.55
8.1.230.0080.00320.89
8.1.220.0040.00417.74
8.1.210.0000.00818.84
8.1.200.0030.00617.22
8.1.190.0000.00717.52
8.1.180.0040.00418.10
8.1.170.0040.00418.75
8.1.160.0040.00418.91
8.1.150.0000.00718.70
8.1.140.0000.00717.45
8.1.130.0040.00417.46
8.1.120.0070.00017.37
8.1.110.0000.00817.52
8.1.100.0030.00617.51
8.1.90.0060.00317.34
8.1.80.0000.00717.51
8.1.70.0070.00017.49
8.1.60.0020.00517.49
8.1.50.0000.00717.43
8.1.40.0000.00817.55
8.1.30.0040.00417.66
8.1.20.0000.00817.68
8.1.10.0000.00717.57
8.1.00.0050.00317.52
8.0.300.0080.00019.83
8.0.290.0090.00016.63
8.0.280.0040.00418.37
8.0.270.0000.00817.25
8.0.260.0030.00316.73
8.0.250.0000.00716.85
8.0.240.0050.00316.86
8.0.230.0030.00317.02
8.0.220.0050.00216.90
8.0.210.0000.00816.93
8.0.200.0000.00616.94
8.0.190.0040.00416.98
8.0.180.0000.00717.03
8.0.170.0000.00816.86
8.0.160.0040.00417.00
8.0.150.0030.00616.93
8.0.140.0080.00016.84
8.0.130.0030.00313.41
8.0.120.0000.00717.03
8.0.110.0000.00816.94
8.0.100.0040.00416.91
8.0.90.0060.00316.76
8.0.80.0110.00417.00
8.0.70.0000.00716.86
8.0.60.0000.00716.95
8.0.50.0000.00717.02
8.0.30.0100.00817.11
8.0.20.0080.01017.21
8.0.10.0070.00016.90
8.0.00.0090.00916.73
7.4.330.0000.00512.98
7.4.320.0000.00616.61
7.4.300.0000.00616.54
7.4.290.0070.00016.59
7.4.280.0070.00016.63
7.4.270.0040.00416.66
7.4.260.0030.00313.21
7.4.250.0030.00616.39
7.4.240.0000.00716.42
7.4.230.0030.00316.62
7.4.220.0100.01016.54
7.4.210.0060.01016.61
7.4.200.0030.00316.40
7.4.190.0000.00816.69
7.4.160.0000.01616.59
7.4.150.0290.02216.48
7.4.140.0120.00616.51
7.4.130.0120.00616.46
7.4.120.0060.01316.61
7.4.110.0110.01116.50
7.4.100.0150.00916.63
7.4.90.0100.00716.64
7.4.80.0090.01419.39
7.4.70.0070.01416.58
7.4.60.0090.00916.57
7.4.50.0000.00916.43
7.4.40.0130.00016.62
7.4.30.0130.00316.65
7.4.00.0070.00714.85
7.3.330.0000.00813.23
7.3.320.0000.00513.23
7.3.310.0070.00016.44
7.3.300.0000.00616.38
7.3.290.0110.00316.41
7.3.280.0080.00716.40
7.3.270.0060.01216.34
7.3.260.0180.00616.29
7.3.250.0070.01216.44
7.3.240.0060.01016.63
7.3.230.0070.01116.57
7.3.210.0100.00716.48
7.3.200.0090.00916.45
7.3.190.0150.00316.37
7.3.180.0060.01016.61
7.3.170.0120.00916.32
7.3.160.0120.00616.48
7.3.120.0090.00614.98
7.2.330.0100.01016.61
7.2.320.0110.00716.80
7.2.310.0130.01016.61
7.2.300.0120.00916.44
7.2.290.0100.00716.85
7.2.60.0060.00316.90
7.2.00.0040.00819.41
7.1.200.0080.00415.67
7.1.100.0030.00618.17
7.1.70.0000.01117.16
7.1.60.0100.01019.40
7.1.50.0060.01616.86
7.1.00.0030.06322.35
7.0.200.0670.01014.90
7.0.140.0100.06722.00
7.0.120.0070.04721.96
7.0.60.0170.07720.02
7.0.50.0070.05317.66
7.0.40.0000.07320.21
7.0.30.0600.06320.13
7.0.20.0170.05320.16
7.0.10.0030.05020.33
7.0.00.0070.08320.21
5.6.280.0030.07321.02
5.6.210.0130.07720.60
5.6.200.0030.07318.18
5.6.190.0100.08320.68
5.6.180.0300.07720.41
5.6.170.0300.05320.49
5.6.160.0000.09020.48
5.6.150.0070.04718.11
5.6.140.0070.06318.18
5.6.130.0030.07018.12
5.6.120.0070.05721.03
5.6.110.0070.04321.02
5.6.100.0100.08020.93
5.6.90.0070.04321.00
5.6.80.0170.07320.38
5.5.350.0230.05320.41
5.5.340.0070.03717.95
5.5.330.0070.07020.25
5.5.320.0330.06720.29
5.5.310.0300.07320.23
5.5.300.0100.07717.98
5.5.290.0100.08717.97
5.5.280.0170.07020.89
5.5.270.0070.03720.86
5.5.260.0070.08320.86
5.5.250.0100.06720.77
5.5.240.4130.04020.25
5.4.450.0100.06019.25
5.4.440.0030.08719.24
5.4.430.0100.07019.48
5.4.420.0070.05319.49
5.4.410.0070.08019.20
5.4.400.0030.03719.09
5.4.390.0000.05018.79
5.4.380.0070.07719.09
5.4.370.0130.06718.93
5.4.360.0000.05018.92
5.4.350.0130.07318.80
5.4.340.0130.05719.04
5.4.320.0000.05318.79
5.4.310.0000.04319.11
5.4.300.0070.07718.79
5.4.290.0070.04719.08
5.4.280.0070.04318.78
5.4.270.0070.03718.92
5.4.260.0070.07319.07
5.4.250.0100.07019.11
5.4.240.0070.04719.00
5.4.230.0170.06319.08
5.4.220.0030.04019.07
5.4.210.0070.05019.14
5.4.200.0130.06319.17
5.4.190.0070.07718.90
5.4.180.0030.06018.86
5.4.170.0100.04318.79
5.4.160.0100.04019.17
5.4.150.0070.07719.09
5.4.140.0030.07716.26
5.4.130.0030.06316.24
5.4.120.0130.06316.29
5.4.110.0070.07316.32
5.4.100.0100.07016.29
5.4.90.0070.07016.34
5.4.80.0000.04316.21
5.4.70.0030.03716.34
5.4.60.0000.04716.26
5.4.50.0000.05716.12
5.4.40.0070.03716.27
5.4.30.0030.04316.12
5.4.20.0030.04016.31
5.4.10.0070.03316.59
5.4.00.0070.03315.73
5.3.290.0170.07014.64
5.3.280.0070.05014.55
5.3.270.0070.06014.53
5.3.260.0100.06314.50
5.3.250.0030.05014.55
5.3.240.0070.04314.62
5.3.230.0000.08314.38
5.3.220.0030.07014.52
5.3.210.0000.07714.58
5.3.200.0100.06014.50
5.3.190.0100.04314.45
5.3.180.0000.05314.65
5.3.170.0070.07314.44
5.3.160.0070.04014.35
5.3.150.0070.07014.50
5.3.140.0100.03714.50
5.3.130.0030.06714.47
5.3.120.0030.04014.48
5.3.110.0030.07714.47
5.3.100.0070.07314.05
5.3.90.0030.08014.05
5.3.80.0030.07713.84
5.3.70.0100.06313.98
5.3.60.0000.04314.02
5.3.50.0000.04013.91
5.3.40.0030.07713.89
5.3.30.0100.05313.91
5.3.20.0100.07013.52
5.3.10.0070.06313.65
5.3.00.0070.05713.57
5.2.170.0030.03011.02
5.2.160.0030.03011.23
5.2.150.0070.06311.03
5.2.140.0100.05311.14
5.2.130.0070.03711.00
5.2.120.0100.03311.18
5.2.110.0070.05311.03
5.2.100.0100.02711.11
5.2.90.0030.06311.26
5.2.80.0070.03311.12
5.2.70.0070.04711.20
5.2.60.0000.03711.05
5.2.50.0070.03011.00
5.2.40.0030.06310.93
5.2.30.0070.06010.86
5.2.20.0070.04710.89
5.2.10.0100.03010.89
5.2.00.0070.06010.71
5.1.60.0030.0539.96
5.1.50.0030.02310.03
5.1.40.0070.0539.97
5.1.30.0070.05310.48
5.1.20.0030.05310.34
5.1.10.0070.0539.96
5.1.00.0070.03710.13
5.0.50.0070.0438.56
5.0.40.0000.0338.37
5.0.30.0070.0638.19
5.0.20.0100.0308.24
5.0.10.0000.0308.30
5.0.00.0030.0308.13
4.4.90.0030.0237.72
4.4.80.0000.0207.72
4.4.70.0000.0177.72
4.4.60.0030.0137.72
4.4.50.0030.0277.72
4.4.40.0070.0207.72
4.4.30.0000.0307.72
4.4.20.0000.0207.72
4.4.10.0070.0207.72
4.4.00.0070.0407.72
4.3.110.0030.0137.72
4.3.100.0030.0337.72
4.3.90.0000.0237.72
4.3.80.0000.0307.72
4.3.70.0000.0337.72
4.3.60.0070.0177.72
4.3.50.0030.0307.72
4.3.40.0070.0307.72
4.3.30.0030.0137.72
4.3.20.0030.0237.72
4.3.10.0000.0177.72
4.3.00.0000.0377.72

preferences:
54.41 ms | 400 KiB | 5 Q