3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; function asdf($string){ for ($i=strlen($string); $i >= 0 ; $i--) { if (strpos("aeiouAEIOU", substr($string, $i, 1)) !== false) { return substr_replace($string, "", $i, 1); } } return $string; } echo asdf($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.0070.01116.63
8.3.50.0110.00421.93
8.3.40.0120.00918.67
8.3.30.0090.00618.91
8.3.20.0000.00720.29
8.3.10.0040.00423.36
8.3.00.0040.00419.66
8.2.180.0140.00416.88
8.2.170.0080.00818.92
8.2.160.0030.01022.96
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0020.00526.16
8.2.120.0040.00419.21
8.2.110.0060.00321.98
8.2.100.0120.00019.83
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0060.00617.93
8.2.50.0070.00318.07
8.2.40.0050.00318.01
8.2.30.0000.00818.32
8.2.20.0050.00317.69
8.2.10.0000.00818.00
8.2.00.0000.00717.57
8.1.280.0070.00725.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.20
8.1.230.0070.00419.11
8.1.220.0000.00817.77
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.53
8.1.160.0070.00021.88
8.1.150.0050.00318.68
8.1.140.0000.00717.38
8.1.130.0030.00317.75
8.1.120.0030.00317.38
8.1.110.0000.00917.29
8.1.100.0050.00317.45
8.1.90.0070.00017.42
8.1.80.0030.00617.41
8.1.70.0030.00517.40
8.1.60.0040.00417.49
8.1.50.0050.00317.48
8.1.40.0080.00017.52
8.1.30.0040.00417.55
8.1.20.0040.00417.57
8.1.10.0000.00817.52
8.1.00.0050.00217.37
8.0.300.0000.00718.77
8.0.290.0030.00516.63
8.0.280.0030.00318.52
8.0.270.0030.00417.22
8.0.260.0030.00317.20
8.0.250.0040.00417.01
8.0.240.0000.00716.98
8.0.230.0070.00016.80
8.0.220.0000.00716.80
8.0.210.0080.00016.82
8.0.200.0030.00616.79
8.0.190.0040.00416.94
8.0.180.0000.00816.88
8.0.170.0000.00816.75
8.0.160.0040.00416.81
8.0.150.0040.00416.82
8.0.140.0070.00016.82
8.0.130.0050.00013.20
8.0.120.0040.00416.79
8.0.110.0040.00416.81
8.0.100.0070.00016.90
8.0.90.0070.00016.86
8.0.80.0030.01316.89
8.0.70.0000.00716.79
8.0.60.0070.00016.71
8.0.50.0040.00416.89
8.0.30.0110.01017.09
8.0.20.0130.01017.40
8.0.10.0000.00717.00
8.0.00.0120.00516.80
7.4.330.0000.00515.10
7.4.320.0030.00316.37
7.4.300.0000.00616.61
7.4.290.0000.00816.48
7.4.280.0030.00616.37
7.4.270.0020.00516.59
7.4.260.0070.00316.51
7.4.250.0000.00716.48
7.4.240.0000.00716.45
7.4.230.0070.00016.52
7.4.220.0100.01116.45
7.4.210.0090.00916.60
7.4.200.0000.00716.64
7.4.160.0130.01316.41
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0100.00916.55
7.4.120.0090.00816.54
7.4.110.0100.00716.58
7.4.100.0160.00416.54
7.4.90.0070.01116.32
7.4.80.0030.01919.39
7.4.70.0110.00716.54
7.4.60.0140.00316.45
7.4.50.0040.00416.54
7.4.40.0100.00716.61
7.4.30.0160.00016.62
7.4.00.0070.00915.04
7.3.330.0000.00513.25
7.3.320.0060.00013.42
7.3.310.0060.00016.40
7.3.300.0000.00616.29
7.3.290.0100.00316.43
7.3.280.0120.00816.39
7.3.270.0100.00717.40
7.3.260.0100.00716.42
7.3.250.0140.00616.60
7.3.240.0040.01316.43
7.3.230.0040.01416.70
7.3.210.0030.01416.49
7.3.200.0130.00319.39
7.3.190.0080.01216.51
7.3.180.0070.00716.35
7.3.170.0090.00616.55
7.3.160.0060.00916.64
7.3.120.0030.01414.86
7.3.110.0030.01414.91
7.3.100.0090.00914.86
7.3.90.0060.01315.14
7.3.80.0070.00715.10
7.3.70.0090.00614.85
7.3.60.0000.01414.88
7.3.50.0080.00814.66
7.3.40.0030.00614.95
7.3.30.0030.00914.86
7.3.20.0070.00716.48
7.3.10.0040.01116.73
7.3.00.0070.00716.65
7.2.330.0070.01016.47
7.2.320.0070.01016.75
7.2.310.0130.00916.82
7.2.300.0090.00916.79
7.2.290.0030.01216.54
7.2.250.0070.01015.22
7.2.240.0100.01014.82
7.2.230.0070.01015.11
7.2.220.0100.01015.12
7.2.210.0100.00715.02
7.2.200.0000.01614.80
7.2.190.0100.00715.11
7.2.180.0000.01615.19
7.2.170.0060.00914.79
7.2.60.0040.01116.63
7.2.00.0030.01219.59
7.1.330.0110.00415.92
7.1.320.0000.01315.55
7.1.310.0090.00915.95
7.1.300.0030.01315.80
7.1.290.0070.00715.76
7.1.280.0000.01315.99
7.1.270.0110.00315.79
7.1.260.0090.00315.68
7.1.200.0030.01015.54
7.1.100.0030.01018.41
7.1.70.0060.01017.27
7.1.60.0140.01019.70
7.1.50.0180.00734.78
7.1.00.0070.07322.42
7.0.200.0140.00016.82
7.0.140.0000.08022.04
7.0.60.0070.08019.91
7.0.50.0000.07317.88
7.0.40.0070.08020.23
7.0.30.0370.03720.23
7.0.20.0200.05320.07
7.0.10.0000.05320.26
7.0.00.0000.05720.41
5.6.280.0000.07720.91
5.6.210.0030.08020.50
5.6.200.0100.07718.21
5.6.190.0030.09020.48
5.6.180.0300.03720.46
5.6.170.0130.07720.54
5.6.160.0000.09020.50
5.6.150.0070.03718.28
5.6.140.0100.07318.30
5.6.130.0100.05018.17
5.6.120.0100.06321.02
5.6.110.0070.08721.03
5.6.100.0070.08020.99
5.6.90.0100.08020.98
5.6.80.0100.05720.39
5.6.70.4070.04320.48
5.5.350.0100.08320.37
5.5.340.0070.05318.09
5.5.330.0030.09020.30
5.5.320.0100.07320.27
5.5.310.0400.06720.28
5.5.300.0100.03318.07
5.5.290.0030.04717.92
5.5.280.0130.07320.65
5.5.270.0000.04720.89
5.5.260.0070.07320.89
5.5.250.0130.07320.78
5.5.240.0130.07020.04
5.4.450.0270.07719.49
5.4.440.0230.05019.51
5.4.430.0300.06719.54
5.4.420.0330.07019.52
5.4.410.0300.05319.33
5.4.400.0270.05319.09
5.4.390.0330.08019.06
5.4.380.0300.07319.09
5.4.370.0300.04719.08
5.4.360.0270.05719.25
5.4.350.0330.06718.99
5.4.340.0370.04718.86
5.4.320.0370.06019.15
5.4.310.0270.03718.89
5.4.300.0330.07019.22
5.4.290.0230.04719.24
5.4.280.0330.06319.21
5.4.270.0400.06319.08
5.4.260.0300.04719.09
5.4.250.0270.06319.07
5.4.240.0370.06318.86
5.4.230.0330.06718.97
5.4.220.0270.08018.86
5.4.210.0300.04718.94
5.4.200.0230.06019.08
5.4.190.0270.06719.09
5.4.180.0230.04019.04
5.4.170.0300.06019.08
5.4.160.0370.05019.20
5.4.150.0300.07019.23
5.4.140.0300.03716.52
5.4.130.0230.03716.35
5.4.120.0370.05716.30
5.4.110.0230.06316.58
5.4.100.0330.05716.55
5.4.90.0270.03316.56
5.4.80.0330.07016.26
5.4.70.0270.03716.52
5.4.60.0300.07016.52
5.4.50.0300.07016.53
5.4.40.0270.07016.55
5.4.30.0370.06016.47
5.4.20.0300.05016.38
5.4.10.0200.05016.37
5.4.00.0300.07015.97
5.3.290.0330.04014.58
5.3.280.0200.05714.62
5.3.270.0270.06314.62
5.3.260.0330.06714.57
5.3.250.0370.05714.66
5.3.240.0330.03714.57
5.3.230.0300.04014.68
5.3.220.0330.06014.49
5.3.210.0300.03714.54
5.3.200.0430.05714.48
5.3.190.0400.06314.66
5.3.180.0270.04714.72
5.3.170.0200.04714.53
5.3.160.0330.07014.66
5.3.150.0270.06714.69
5.3.140.0270.06714.52
5.3.130.0270.07714.52
5.3.120.0300.07314.54
5.3.110.0200.05714.46
5.3.100.0230.07314.04
5.3.90.0230.05714.02
5.3.80.0300.06713.93
5.3.70.0230.06313.99
5.3.60.0270.04013.93
5.3.50.0270.07014.05
5.3.40.0370.06013.95
5.3.30.0230.04313.83
5.3.20.0270.07013.77
5.3.10.0270.06013.58
5.3.00.0330.06713.80
5.2.170.0300.06012.30
5.2.160.0200.04712.30
5.2.150.0230.04312.30
5.2.140.0200.06312.30
5.2.130.0300.05712.30
5.2.120.0200.06012.30
5.2.110.0270.06012.30
5.2.100.0270.05012.30
5.2.90.0230.06012.30
5.2.80.0230.05312.30
5.2.70.0270.05012.30
5.2.60.0270.06012.30
5.2.50.0200.04312.30
5.2.40.0200.03012.30
5.2.30.0270.04312.30
5.2.20.0270.05012.30
5.2.10.0230.04312.30
5.2.00.0200.03012.30
5.1.60.0170.02312.30
5.1.50.0200.04712.30
5.1.40.0200.05312.30
5.1.30.0200.04012.30
5.1.20.0230.04712.30
5.1.10.0170.05712.30
5.1.00.0230.03312.30
5.0.50.0130.02312.30
5.0.40.0070.04312.30
5.0.30.0200.05712.30
5.0.20.0170.04012.30
5.0.10.0070.02012.30
5.0.00.0100.04312.30
4.4.90.0130.03012.30
4.4.80.0100.03012.30
4.4.70.0100.03712.30
4.4.60.0070.03312.30
4.4.50.0100.03312.30
4.4.40.0070.05712.30
4.4.30.0100.03312.30
4.4.20.0200.02312.30
4.4.10.0100.03312.30
4.4.00.0130.04312.30
4.3.110.0100.03712.30
4.3.100.0170.02712.30
4.3.90.0100.02012.30
4.3.80.0200.02712.30
4.3.70.0130.02312.30
4.3.60.0100.03012.30
4.3.50.0130.02712.30
4.3.40.0070.05312.30
4.3.30.0100.03012.30
4.3.20.0030.03012.30
4.3.10.0070.02312.30
4.3.00.0030.03012.30

preferences:
41.9 ms | 401 KiB | 5 Q