3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vowels = array('a', 'e', 'i', 'o', 'u'); $string = "This string contains vowels, and will output the number of each it contains."; return count_array($vowels, $string);

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.00718.34
8.3.50.0150.00017.90
8.3.40.0130.00318.68
8.3.30.0110.00418.52
8.3.20.0000.00820.39
8.3.10.0050.00320.46
8.3.00.0050.00221.91
8.2.180.0000.01416.75
8.2.170.0040.01122.96
8.2.160.0130.00322.08
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00420.98
8.2.120.0040.00426.35
8.2.110.0100.00022.25
8.2.100.0070.00317.72
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0000.00817.36
8.2.60.0100.00017.89
8.2.50.0040.00418.09
8.2.40.0040.00420.34
8.2.30.0070.00019.25
8.2.20.0030.00517.74
8.2.10.0030.00618.11
8.2.00.0080.00018.04
8.1.270.0130.00622.07
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00822.46
8.1.230.0070.00720.98
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0090.00317.35
8.1.190.0060.00317.35
8.1.180.0070.00018.10
8.1.170.0090.00018.24
8.1.160.0000.00820.71
8.1.150.0000.00720.59
8.1.140.0030.00519.43
8.1.130.0040.00417.64
8.1.120.0040.00417.38
8.1.110.0000.00717.27
8.1.100.0070.00017.43
8.1.90.0070.00017.41
8.1.80.0000.00717.34
8.1.70.0000.00817.29
8.1.60.0080.00017.53
8.1.50.0050.00317.55
8.1.40.0050.00317.44
8.1.30.0080.00017.66
8.1.20.0040.00417.38
8.1.10.0000.00717.50
8.1.00.0000.00717.51
8.0.300.0040.00319.90
8.0.290.0080.00016.75
8.0.280.0000.00718.23
8.0.270.0030.00317.19
8.0.260.0060.00017.11
8.0.250.0060.00316.89
8.0.240.0050.00216.85
8.0.230.0050.00216.94
8.0.220.0000.00716.91
8.0.210.0030.00516.93
8.0.200.0060.00016.94
8.0.190.0040.00416.79
8.0.180.0040.00416.94
8.0.170.0000.00716.84
8.0.160.0000.00716.89
8.0.150.0030.00316.93
8.0.140.0050.00216.79
8.0.130.0000.00513.24
8.0.120.0040.00416.86
8.0.110.0040.00416.76
8.0.100.0030.00316.88
8.0.90.0040.00416.79
8.0.80.0110.00416.95
8.0.70.0080.00016.89
8.0.60.0000.00716.85
8.0.50.0000.00716.82
8.0.30.0100.00817.17
8.0.20.0080.01117.40
8.0.10.0030.00516.83
8.0.00.0100.00916.60
7.4.330.0000.00516.85
7.4.320.0040.00416.55
7.4.300.0060.00016.55
7.4.290.0040.00416.45
7.4.280.0040.00416.59
7.4.270.0070.00016.55
7.4.260.0060.00316.46
7.4.250.0050.00316.53
7.4.240.0040.00416.57
7.4.230.0000.00716.25
7.4.220.0070.01416.46
7.4.210.0000.01416.62
7.4.200.0040.00316.71
7.4.160.0110.00316.50
7.4.150.0110.00617.40
7.4.140.0130.00517.86
7.4.130.0140.00916.51
7.4.120.0130.00716.58
7.4.110.0030.01416.67
7.4.100.0060.01216.44
7.4.90.0060.01016.53
7.4.80.0040.01319.39
7.4.70.0030.01716.58
7.4.60.0100.01416.43
7.4.50.0000.01616.44
7.4.40.0070.01016.70
7.4.30.0170.00016.64
7.4.00.0060.01214.87
7.3.330.0070.00013.11
7.3.320.0050.00013.25
7.3.310.0030.00316.23
7.3.300.0030.00316.29
7.3.290.0100.00616.24
7.3.280.0120.00616.25
7.3.270.0100.01017.40
7.3.260.0120.00616.48
7.3.250.0080.00916.39
7.3.240.0070.00916.35
7.3.230.0070.01016.40
7.3.210.0070.01016.38
7.3.200.0100.00716.48
7.3.190.0060.00916.20
7.3.180.0060.00916.34
7.3.170.0090.00916.33
7.3.160.0060.01216.52
7.2.330.0080.01116.53
7.2.320.0040.01816.32
7.2.310.0090.00916.45
7.2.300.0060.01116.34
7.2.290.0150.00616.24
7.2.60.0040.01216.84
7.2.00.0170.01418.43
7.1.200.0190.00415.51
7.1.100.0130.00317.98
7.1.70.0000.00817.07
7.1.60.0070.01819.19
7.1.50.0040.01216.64
7.1.00.0100.06322.45
7.0.200.0430.00714.63
7.0.60.0130.08321.71
7.0.50.0030.09017.90
7.0.40.0030.05019.90
7.0.30.0330.04720.02
7.0.20.0270.07720.16
7.0.10.0070.04320.16
7.0.00.0300.06320.18
5.6.280.0070.03021.11
5.6.210.0030.08320.66
5.6.200.0030.08018.18
5.6.190.0170.04720.64
5.6.180.0330.05720.35
5.6.170.0230.07020.38
5.6.160.0070.07320.48
5.6.150.0070.04718.12
5.6.140.0030.08318.18
5.6.130.0030.04018.21
5.6.120.0030.05320.98
5.6.110.0100.08020.96
5.6.100.0000.05021.08
5.6.90.0100.06320.96
5.6.80.0130.04320.39
5.5.350.0200.03320.32
5.5.340.0130.07317.93
5.5.330.0070.08320.14
5.5.320.0400.07320.20
5.5.310.0370.06320.13
5.5.300.0070.08017.87
5.5.290.0200.07018.00
5.5.280.0070.09020.79
5.5.270.0100.07320.96
5.5.260.0070.04020.75
5.5.250.0000.08720.77
5.5.240.0070.06320.16

preferences:
59.77 ms | 400 KiB | 5 Q