3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; $old = str_split($string); $new = array(); while ($old) { $chr = array_pop($old); if (stripos("aeiou", $chr) !== false) { break; } array_unshift($new, $chr); } echo implode("", $old) . implode("", $new);

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.00716.63
8.3.50.0220.00222.05
8.3.40.0140.00018.58
8.3.30.0070.00718.91
8.3.20.0040.00420.34
8.3.10.0090.00023.66
8.3.00.0030.00519.56
8.2.180.0120.00616.63
8.2.170.0070.00722.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.33
8.2.110.0030.00722.02
8.2.100.0030.01017.59
8.2.90.0080.00019.27
8.2.80.0040.00417.97
8.2.70.0000.01017.63
8.2.60.0110.00018.04
8.2.50.0060.00318.07
8.2.40.0000.00718.16
8.2.30.0050.00318.32
8.2.20.0040.00417.60
8.2.10.0080.00017.97
8.2.00.0040.00417.70
8.1.280.0040.01125.92
8.1.270.0040.00423.71
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0070.01023.84
8.1.230.0090.00319.04
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0000.00722.01
8.1.150.0040.00418.48
8.1.140.0040.00417.44
8.1.130.0030.00517.70
8.1.120.0050.00217.36
8.1.110.0030.00617.47
8.1.100.0000.00717.36
8.1.90.0000.00817.47
8.1.80.0000.00717.48
8.1.70.0040.00417.43
8.1.60.0060.00317.47
8.1.50.0030.00617.58
8.1.40.0060.00317.58
8.1.30.0030.00517.50
8.1.20.0030.00517.70
8.1.10.0000.00717.57
8.1.00.0100.00017.43
8.0.300.0030.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00317.26
8.0.260.0040.00417.18
8.0.250.0000.00716.94
8.0.240.0000.00816.93
8.0.230.0070.00016.96
8.0.220.0000.00716.77
8.0.210.0000.00716.86
8.0.200.0000.00816.88
8.0.190.0000.00716.83
8.0.180.0000.00716.94
8.0.170.0030.00516.99
8.0.160.0000.00716.90
8.0.150.0030.00316.80
8.0.140.0000.00716.89
8.0.130.0060.00013.32
8.0.120.0000.00816.75
8.0.110.0040.00416.85
8.0.100.0040.00416.79
8.0.90.0040.00416.93
8.0.80.0140.00716.94
8.0.70.0000.00816.93
8.0.60.0040.00416.76
8.0.50.0080.00016.83
8.0.30.0140.00817.00
8.0.20.0110.00817.40
8.0.10.0040.00416.85
8.0.00.0070.01116.77
7.4.330.0000.00515.00
7.4.320.0000.00616.53
7.4.300.0030.00316.48
7.4.290.0030.00316.50
7.4.280.0050.00516.51
7.4.270.0070.00016.49
7.4.260.0060.00316.58
7.4.250.0000.00716.61
7.4.240.0030.00316.54
7.4.230.0030.00316.54
7.4.220.0070.01316.38
7.4.210.0040.01116.54
7.4.200.0040.00416.68
7.4.160.0140.00716.37
7.4.150.0120.00617.40
7.4.140.0140.00617.86
7.4.130.0140.00716.64
7.4.120.0060.01016.54
7.4.110.0080.00816.63
7.4.100.0100.00716.52
7.4.90.0110.00716.43
7.4.80.0100.01319.39
7.4.70.0030.01316.58
7.4.60.0060.01216.47
7.4.50.0090.00016.29
7.4.40.0080.00916.48
7.4.30.0130.00316.49
7.4.00.0060.00315.10
7.3.330.0020.00213.04
7.3.320.0050.00013.19
7.3.310.0040.00416.34
7.3.300.0050.00216.16
7.3.290.0070.00716.17
7.3.280.0110.00516.18
7.3.270.0040.01417.40
7.3.260.0140.01216.48
7.3.250.0100.00616.34
7.3.240.0030.01316.20
7.3.230.0130.00316.39
7.3.210.0060.01216.21
7.3.200.0030.01319.39
7.3.190.0040.01216.30
7.3.180.0070.00816.23
7.3.170.0100.00516.27
7.3.160.0050.01116.45
7.3.120.0100.00714.84
7.2.330.0090.00916.43
7.2.320.0060.01116.66
7.2.310.0090.01316.64
7.2.300.0190.03616.38
7.2.290.0030.01216.49
7.2.00.0060.00619.34
7.1.100.0040.01418.02
7.1.70.0030.00517.16
7.1.60.0000.01017.23
7.1.50.0120.01216.84
7.1.00.0030.07722.40
7.0.200.0000.01116.59
7.0.140.0100.06722.08
7.0.60.0170.06719.91
7.0.50.0130.07017.66
7.0.40.0030.07320.22
7.0.30.0230.05020.30
7.0.20.0300.07720.16
7.0.10.0270.06320.19
7.0.00.0070.08320.30
5.6.280.0000.07721.09
5.6.210.0100.07020.64
5.6.200.0030.07318.09
5.6.190.0070.05320.44
5.6.180.0100.04320.45
5.6.170.0270.05320.41
5.6.160.0130.07320.46
5.6.150.0070.07018.17
5.6.140.0100.07718.15
5.6.130.0100.04318.11
5.6.120.0130.07320.98
5.6.110.0030.06320.98
5.6.100.0070.09020.88
5.6.90.0030.08320.96
5.6.80.0170.06320.50
5.6.70.4300.04020.43
5.5.350.0100.08020.43
5.5.340.0100.07717.89
5.5.330.0070.07720.21
5.5.320.0170.07320.17
5.5.310.0200.05720.41
5.5.300.0070.03318.00
5.5.290.0030.04717.98
5.5.280.0130.08020.87
5.5.270.0070.04320.88
5.5.260.0030.05720.61
5.5.250.0030.04320.69
5.5.240.0130.07020.18
5.4.450.0230.04743.90
5.4.440.0500.04343.87
5.4.430.0070.03743.90
5.4.420.0230.04343.79
5.4.410.0270.04743.90
5.4.400.0130.04343.77
5.4.390.0400.03343.77
5.4.380.0230.05018.60
5.4.370.0100.05718.61
5.4.360.0070.05718.57
5.4.350.0170.05018.69
5.4.340.0170.05018.61
5.4.320.0070.03712.45
5.4.310.0080.04312.45
5.4.300.0080.03512.45
5.4.290.0050.03912.45
5.4.280.0040.03712.35
5.4.270.0070.03512.35
5.4.260.0070.03612.35
5.4.250.0050.03812.35
5.4.240.0080.03512.35
5.4.230.0110.03412.34
5.4.220.0060.03812.34
5.4.210.0060.03712.34
5.4.200.0090.03612.34
5.4.190.0050.03712.34
5.4.180.0050.03812.34
5.4.170.0090.03512.35
5.4.160.0060.03712.35
5.4.150.0070.03612.34
5.4.140.0040.04012.02
5.4.130.0080.03312.01
5.4.120.0050.03611.97
5.4.110.0050.03711.96
5.4.100.0050.03711.96
5.4.90.0100.03411.96
5.4.80.0050.03911.96
5.4.70.0030.03911.96
5.4.60.0040.04011.96
5.4.50.0080.03411.96
5.4.40.0060.03411.95
5.4.30.0070.03911.95
5.4.20.0050.03611.95
5.4.10.0060.03811.95
5.4.00.0070.03611.44
5.3.290.0070.03812.80
5.3.280.0080.03712.70
5.3.270.0080.03712.73
5.3.260.0070.03812.72
5.3.250.0070.03612.72
5.3.240.0040.03912.72
5.3.230.0060.03712.71
5.3.220.0040.03912.68
5.3.210.0060.03812.68
5.3.200.0080.03412.68
5.3.190.0050.03812.68
5.3.180.0040.03812.68
5.3.170.0040.03812.67
5.3.160.0040.03812.67
5.3.150.0060.03712.67
5.3.140.0110.03112.66
5.3.130.0060.03912.66
5.3.120.0060.03812.66
5.3.110.0050.04412.66
5.3.100.0040.03812.12
5.3.90.0050.03712.09
5.3.80.0080.03312.07
5.3.70.0070.03512.07
5.3.60.0080.03412.06
5.3.50.0070.03412.00
5.3.40.0100.03112.00
5.3.30.0100.03111.95
5.3.20.0040.03611.72
5.3.10.0030.03711.70
5.3.00.0100.03211.68
5.2.170.0080.0329.18
5.2.160.0060.0289.18
5.2.150.0020.0339.18
5.2.140.0030.0329.18
5.2.130.0030.0309.14
5.2.120.0050.0289.14
5.2.110.0050.0289.15
5.2.100.0020.0319.14
5.2.90.0040.0299.15
5.2.80.0060.0299.14
5.2.70.0040.0329.14
5.2.60.0070.0289.09
5.2.50.0040.0309.05
5.2.40.0030.0309.04
5.2.30.0030.0319.02
5.2.20.0040.0309.00
5.2.10.0050.0378.93
5.2.00.0070.0288.79
5.1.60.0030.0258.07
5.1.50.0070.0268.07
5.1.40.0060.0238.05
5.1.30.0020.0288.41
5.1.20.0050.0268.42
5.1.10.0040.0268.15
5.1.00.0040.0258.15
5.0.50.0070.0176.62
5.0.40.0040.0196.49
5.0.30.0040.0306.30
5.0.20.0050.0216.27
5.0.10.0040.0206.25
5.0.00.0030.0316.24
4.4.90.0010.0174.78
4.4.80.0000.0204.76
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0020.0174.77
4.4.40.0040.0274.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0020.0254.76
4.3.110.0030.0174.67
4.3.100.0040.0194.66
4.3.90.0020.0154.63
4.3.80.0040.0264.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0050.0144.63
4.3.40.0030.0244.54
4.3.30.0020.0163.28
4.3.20.0000.0193.25
4.3.10.0020.0163.22
4.3.00.0030.02343.77

preferences:
40.39 ms | 401 KiB | 5 Q