3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; echo preg_replace('/([aeiou]{1})([^aeiou]*)$/i', '$2', $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.40.0140.00419.01
8.3.30.0110.00318.98
8.3.20.0000.00820.07
8.3.10.0030.00523.46
8.3.00.0080.00019.43
8.2.170.0070.00722.96
8.2.160.0070.01020.39
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0050.00522.30
8.2.100.0150.00019.77
8.2.90.0080.00019.23
8.2.80.0000.00917.97
8.2.70.0000.00917.75
8.2.60.0050.00517.92
8.2.50.0090.00018.07
8.2.40.0000.00817.97
8.2.30.0020.00518.32
8.2.20.0040.00417.73
8.2.10.0000.00817.89
8.2.00.0070.00017.83
8.1.270.0030.00623.91
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0180.00018.70
8.1.230.0040.00819.22
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00017.38
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0030.00618.73
8.1.160.0000.00821.89
8.1.150.0020.00518.78
8.1.140.0040.00417.57
8.1.130.0030.00317.86
8.1.120.0000.00717.53
8.1.110.0060.00317.50
8.1.100.0040.00417.55
8.1.90.0050.00217.50
8.1.80.0040.00417.56
8.1.70.0000.00717.47
8.1.60.0080.00017.55
8.1.50.0040.00417.55
8.1.40.0000.00817.61
8.1.30.0040.00417.64
8.1.20.0040.00417.77
8.1.10.0030.00517.68
8.1.00.0040.00417.67
8.0.300.0030.00318.77
8.0.290.0070.00016.61
8.0.280.0000.00718.46
8.0.270.0070.00017.27
8.0.260.0030.00317.26
8.0.250.0070.00017.11
8.0.240.0060.00317.14
8.0.230.0040.00417.05
8.0.220.0000.00716.86
8.0.210.0040.00416.86
8.0.200.0040.00417.06
8.0.190.0000.00717.05
8.0.180.0040.00417.02
8.0.170.0040.00417.02
8.0.160.0000.00716.80
8.0.150.0000.00716.94
8.0.140.0040.00416.98
8.0.130.0030.00313.33
8.0.120.0080.00016.98
8.0.110.0040.00416.95
8.0.100.0000.00816.84
8.0.90.0000.00817.05
8.0.80.0030.01416.97
8.0.70.0030.00316.86
8.0.60.0040.00417.03
8.0.50.0040.00416.95
8.0.30.0120.00717.27
8.0.20.0080.01117.40
8.0.10.0000.00817.14
8.0.00.0130.00616.93
7.4.330.0050.00015.05
7.4.320.0060.00016.58
7.4.300.0000.00616.71
7.4.290.0080.00016.66
7.4.280.0050.00516.73
7.4.270.0000.00816.65
7.4.260.0030.00616.63
7.4.250.0030.00516.62
7.4.240.0060.00216.66
7.4.230.0030.00316.78
7.4.220.0150.00316.69
7.4.210.0120.00316.79
7.4.200.0030.00316.76
7.4.160.0130.00316.63
7.4.150.0070.01817.40
7.4.140.0130.00817.86
7.4.130.0120.00616.58
7.4.120.0130.00716.65
7.4.110.0140.00316.54
7.4.100.0040.01516.93
7.4.90.0090.00916.66
7.4.80.0080.01419.39
7.4.70.0100.00716.68
7.4.60.0090.00916.54
7.4.50.0030.00516.75
7.4.40.0110.00616.63
7.4.30.0070.01016.79
7.4.00.0060.00915.00
7.3.330.0000.00513.21
7.3.320.0000.00613.19
7.3.310.0060.00016.34
7.3.300.0030.00316.20
7.3.290.0070.00716.33
7.3.280.0100.00916.27
7.3.270.0070.01017.40
7.3.260.0150.00316.56
7.3.250.0050.01116.52
7.3.240.0100.00616.37
7.3.230.0130.00716.68
7.3.210.0120.00616.46
7.3.200.0110.00819.39
7.3.190.0060.00916.37
7.3.180.0090.00616.45
7.3.170.0140.00716.33
7.3.160.0060.00916.61
7.3.120.0000.01314.84
7.2.330.0060.01316.73
7.2.320.0000.01616.65
7.2.310.0070.01316.67
7.2.300.0040.01316.63
7.2.290.0060.00916.69
7.2.60.0070.00716.66
7.2.00.0070.01019.56
7.1.200.0100.00315.69
7.1.100.0100.00318.28
7.1.70.0000.01016.94
7.1.60.0100.01319.70
7.1.50.0200.01734.96
7.1.00.0070.07322.50
7.0.200.0100.00316.84
7.0.140.0030.07321.99
7.0.100.0200.04019.89
7.0.90.0370.07319.86
7.0.80.0330.07719.95
7.0.70.0070.05019.91
7.0.60.0400.07320.09
7.0.50.0100.08020.38
7.0.40.0130.06720.06
7.0.30.0200.06020.00
7.0.20.0070.06320.05
7.0.10.0100.07720.14
7.0.00.0070.05320.06
5.6.280.0100.08721.14
5.6.250.0130.07020.63
5.6.240.0070.08020.57
5.6.230.0030.09020.54
5.6.220.0100.07720.73
5.6.210.0200.08020.46
5.6.200.0130.07721.08
5.6.190.0130.06721.04
5.6.180.0070.06721.07
5.6.170.0100.07721.00
5.6.160.0030.08021.02
5.6.150.0100.06021.02
5.6.140.0070.08321.05
5.6.130.0170.07320.94
5.6.120.0070.05321.16
5.6.110.0000.08021.03
5.6.100.0030.07721.06
5.6.90.0130.08020.98
5.6.80.0070.07020.43
5.6.70.0070.08320.42
5.6.60.0030.08020.45
5.6.50.0070.05720.34
5.6.40.0130.08020.40
5.6.30.0030.07020.39
5.6.20.0070.05020.41
5.6.10.0030.05020.27
5.6.00.0070.04320.39
5.5.380.0170.06320.36
5.5.370.0130.07720.45
5.5.360.0070.05020.37
5.5.350.0030.04720.34
5.5.340.0130.07020.91
5.5.330.0070.08320.87
5.5.320.0200.05020.76
5.5.310.0070.05320.87
5.5.300.0100.07320.79
5.5.290.0070.08020.91
5.5.280.0230.03320.63
5.5.270.0030.09020.76
5.5.260.0030.06020.81
5.5.250.0000.08720.54
5.5.240.0000.08320.16
5.5.230.0100.06720.30
5.5.220.0100.09720.27
5.5.210.0100.06020.24
5.5.200.0100.07720.22
5.5.190.0130.06020.09
5.5.180.0100.07320.23
5.5.160.0070.04020.22
5.5.150.0000.07020.14
5.5.140.0070.08020.07
5.5.130.0100.07720.21
5.5.120.0070.04720.26
5.5.110.0070.06720.27
5.5.100.0070.04020.15
5.5.90.0030.04020.10
5.5.80.0100.03320.03
5.5.70.0000.04320.09
5.5.60.0100.03720.00
5.5.50.0100.03320.05
5.5.40.0070.03020.11
5.5.30.0100.03320.04
5.5.20.0070.03020.09
5.5.10.0130.03720.11
5.5.00.0030.04020.09
5.4.450.0130.07319.31
5.4.440.0070.07319.14
5.4.430.0170.06319.11
5.4.420.0170.08319.30
5.4.410.0030.04719.23
5.4.400.0100.06318.97
5.4.390.0030.07318.96
5.4.380.0030.08019.04
5.4.370.0070.06718.95
5.4.360.0070.08318.98
5.4.350.0270.03718.98
5.4.340.0130.04019.12
5.4.320.0070.07319.08
5.4.310.0000.04319.04
5.4.300.0170.07019.10
5.4.290.0030.07318.81
5.4.280.0100.09019.05
5.4.270.0000.07718.95
5.4.260.0070.03719.14
5.4.250.0070.04319.07
5.4.240.0100.03318.94
5.4.230.0030.04318.94
5.4.220.0030.03719.08
5.4.210.0070.03319.22
5.4.200.0000.04018.95
5.4.190.0070.04019.05
5.4.180.0070.03318.80
5.4.170.0070.03319.05
5.4.160.0000.05019.01
5.4.150.0100.03318.76
5.4.140.0000.04016.28
5.4.130.0000.04016.28
5.4.120.0070.03316.35
5.4.110.0030.03716.21
5.4.100.0030.03716.41
5.4.90.0030.03716.23
5.4.80.0070.04016.25
5.4.70.0030.03716.43
5.4.60.0130.02716.43
5.4.50.0070.03316.18
5.4.40.0000.04016.48
5.4.30.0070.03316.18
5.4.20.0100.03016.38
5.4.10.0030.04016.18
5.4.00.0000.04315.73
5.3.290.0000.08714.52
5.3.280.0070.03314.55
5.3.270.0030.04014.46
5.3.260.0000.04014.47
5.3.250.0000.04014.56
5.3.240.0070.03314.60
5.3.230.0070.04014.44
5.3.220.0070.05014.42
5.3.210.0000.04014.38
5.3.200.0100.03014.57
5.3.190.0070.03714.53
5.3.180.0030.03314.51
5.3.170.0030.03714.50
5.3.160.0000.03714.43
5.3.150.0070.03014.38
5.3.140.0030.04314.55
5.3.130.0030.03714.52
5.3.120.0070.03714.39
5.3.110.0070.04314.52
5.3.100.0070.03313.85
5.3.90.0000.04313.86
5.3.80.0000.03713.92
5.3.70.0030.03714.00
5.3.60.0000.04013.86
5.3.50.0100.03013.80
5.3.40.0030.03713.90
5.3.30.0030.05313.69
5.3.20.0030.06013.54
5.3.10.0000.05013.65
5.3.00.0000.03313.54
5.2.170.0000.03011.01
5.2.160.0000.03010.94
5.2.150.0070.02311.19
5.2.140.0000.03011.14
5.2.130.0000.02710.95
5.2.120.0030.02711.13
5.2.110.0030.02311.09
5.2.100.0000.03011.09
5.2.90.0030.02711.06
5.2.80.0000.02711.04
5.2.70.0000.03010.89
5.2.60.0030.04311.05
5.2.50.0000.03310.86
5.2.40.0030.02710.84
5.2.30.0030.04010.94
5.2.20.0030.02310.81
5.2.10.0030.02710.77
5.2.00.0000.04710.66
5.1.60.0070.0539.83
5.1.50.0030.0539.99
5.1.40.0030.0509.98
5.1.30.0030.06010.38
5.1.20.0070.02710.29
5.1.10.0030.05710.05
5.1.00.0070.05310.09
5.0.50.0100.0308.58
5.0.40.0000.0478.51
5.0.30.0000.0678.51
5.0.20.0100.0408.51
5.0.10.0000.0438.51
5.0.00.0070.0678.51
4.4.90.0000.0178.51
4.4.80.0030.0108.51
4.4.70.0030.0138.51
4.4.60.0000.0138.51
4.4.50.0000.0178.51
4.4.40.0000.0478.51
4.4.30.0030.0338.51
4.4.20.0070.0338.51
4.4.10.0000.0338.51
4.4.00.0000.0408.51
4.3.110.0000.0378.51
4.3.100.0100.0278.51
4.3.90.0030.0338.51
4.3.80.0100.0478.51
4.3.70.0000.0378.51
4.3.60.0030.0338.51
4.3.50.0000.0408.51
4.3.40.0070.0378.51
4.3.30.0000.0378.51
4.3.20.0000.0378.51
4.3.10.0030.0338.51
4.3.00.0000.0378.51

preferences:
58.05 ms | 400 KiB | 5 Q