3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = str_split("The quick brown fox jumps over the lazy dog."); foreach ($chars as $char) { switch (strtoupper($char)) { case "A": case "E": case "I": case "O": case "U": case "Y": continue; } print $char; }

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.130.0040.00418.32
8.3.120.0040.00418.86
8.3.110.0060.00320.94
8.3.100.0050.00324.06
8.3.90.0070.00026.77
8.3.80.0060.00316.88
8.3.70.0030.01218.43
8.3.60.0090.00918.68
8.3.50.0090.00921.27
8.3.40.0080.00818.79
8.3.30.0070.00718.72
8.3.20.0030.00519.06
8.3.10.0070.00021.64
8.3.00.0060.00320.82
8.2.250.0130.00718.14
8.2.240.0100.00016.92
8.2.230.0030.00522.58
8.2.220.0040.00437.54
8.2.210.0050.00226.77
8.2.200.0120.00016.63
8.2.190.0090.00616.58
8.2.180.0130.01016.75
8.2.170.0140.00718.91
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0030.00521.06
8.2.110.0030.00619.31
8.2.100.0000.01217.84
8.2.90.0090.00019.20
8.2.80.0060.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00419.30
8.2.30.0060.00321.08
8.2.20.0040.00418.12
8.2.10.0000.00718.12
8.2.00.0000.00917.66
8.1.300.0100.00018.09
8.1.290.0070.00418.88
8.1.280.0090.00625.92
8.1.270.0040.00422.18
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00621.05
8.1.230.0070.00420.90
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0040.00717.23
8.1.190.0100.00017.23
8.1.180.0090.00318.10
8.1.170.0030.00518.59
8.1.160.0070.00022.19
8.1.150.0000.00718.70
8.1.140.0050.00319.58
8.1.130.0070.00017.61
8.1.120.0040.00417.51
8.1.110.0050.00317.45
8.1.100.0040.00417.36
8.1.90.0050.00317.49
8.1.80.0000.00717.38
8.1.70.0040.00417.34
8.1.60.0060.00417.53
8.1.50.0070.00317.46
8.1.40.0070.00617.43
8.1.30.0030.00717.60
8.1.20.0080.00217.64
8.1.10.0020.00817.45
8.1.00.0070.00317.40
8.0.300.0040.00419.97
8.0.290.0060.00316.75
8.0.280.0070.00018.44
8.0.270.0030.00517.27
8.0.260.0070.00017.34
8.0.250.0030.00317.02
8.0.240.0030.00316.91
8.0.230.0070.00016.93
8.0.220.0040.00416.95
8.0.210.0070.00016.86
8.0.200.0000.00717.00
8.0.190.0020.00716.97
8.0.180.0080.00216.98
8.0.170.0050.00516.91
8.0.160.0030.00616.96
8.0.150.0000.00916.90
8.0.140.0000.00716.91
8.0.130.0000.00815.09
8.0.120.0050.00316.90
8.0.110.0040.00416.98
8.0.100.0040.00416.94
8.0.90.0050.00316.87
8.0.80.0070.01016.85
8.0.70.0040.00416.87
8.0.60.0050.00316.99
8.0.50.0030.00516.84
8.0.30.0090.00717.03
8.0.20.0120.00417.29
8.0.10.0030.00617.09
8.0.00.0080.00816.90
7.4.330.0020.00215.55
7.4.320.0000.00616.54
7.4.300.0030.00316.50
7.4.290.0040.00416.53
7.4.280.0020.00516.54
7.4.270.0030.00516.59
7.4.260.0050.00416.52
7.4.250.0020.00616.54
7.4.240.0050.00316.49
7.4.230.0020.00516.48
7.4.220.0050.00816.53
7.4.210.0040.00816.56
7.4.200.0030.00416.51
7.4.190.0050.00516.66
7.4.180.0050.00316.65
7.4.160.0060.00716.62
7.4.150.0040.00916.96
7.4.140.0090.00817.50
7.4.130.0080.00716.53
7.4.120.0080.01116.44
7.4.110.0100.00616.36
7.4.100.0050.01116.31
7.4.90.0070.00916.35
7.4.80.0080.00717.65
7.4.70.0070.00716.52
7.4.60.0110.00416.25
7.4.50.0030.00916.29
7.4.40.0070.00916.23
7.4.30.0120.00416.24
7.4.20.0060.00616.20
7.4.10.0060.01115.43
7.4.00.0050.01115.23
7.3.330.0070.00414.83
7.3.320.0070.00314.65
7.3.310.0050.00616.36
7.3.300.0070.00316.23
7.3.290.0040.01016.28
7.3.280.0090.00716.30
7.3.270.0070.00916.86
7.3.260.0120.00616.35
7.3.250.0110.00616.46
7.3.240.0100.00816.40
7.3.230.0110.00816.28
7.3.220.0150.00016.22
7.3.210.0140.00316.34
7.3.200.0090.00616.32
7.3.190.0080.01116.38
7.3.180.0080.00916.38
7.3.170.0130.00616.21
7.3.160.0090.00816.16
7.3.150.0110.00416.09
7.3.140.0090.00616.27
7.3.130.0080.00815.20
7.3.120.0130.00415.27
7.3.110.0080.01015.38
7.3.100.0060.00715.20
7.3.90.0080.00615.26
7.3.80.0070.00515.22
7.3.70.0060.00615.13
7.3.60.0090.00515.17
7.3.50.0080.00515.09
7.3.40.0070.00615.00
7.3.30.0050.00714.98
7.3.20.0110.00616.17
7.3.10.0110.00616.22
7.3.00.0100.01016.22
7.2.340.0090.00516.35
7.2.330.0150.00116.51
7.2.320.0100.00616.58
7.2.310.0090.00716.38
7.2.300.0100.00816.38
7.2.290.0030.01416.44
7.2.280.0090.00516.32
7.2.270.0130.00216.37
7.2.260.0080.00815.48
7.2.250.0050.01115.55
7.2.240.0080.00615.42
7.2.230.0070.00715.32
7.2.220.0070.00815.31
7.2.210.0080.00615.45
7.2.200.0070.00515.42
7.2.190.0050.00815.27
7.2.180.0060.00715.24
7.2.170.0070.00715.38
7.2.160.0050.00915.21
7.2.150.0150.00716.38
7.2.140.0060.01316.52
7.2.130.0080.00816.47
7.2.120.0110.00616.50
7.2.110.0110.00616.51
7.2.100.0130.00516.36
7.2.90.0110.00916.47
7.2.80.0160.00616.21
7.2.70.0130.00716.28
7.2.60.0240.00816.31
7.2.50.0140.01016.24
7.2.40.0140.00716.60
7.2.30.0150.00516.56
7.2.20.0130.00716.51
7.2.10.0120.00916.51
7.2.00.0240.00716.67
7.1.330.0090.00416.44
7.1.320.0060.00716.27
7.1.310.0090.00415.74
7.1.300.0090.00615.77
7.1.290.0090.00515.79
7.1.280.0100.00815.43
7.1.270.0120.00515.31
7.1.260.0110.00415.33
7.1.250.0130.00615.29
7.1.240.0290.00715.24
7.1.230.0140.00715.31
7.1.220.0120.00915.44
7.1.210.0120.00715.31
7.1.200.0070.00915.29
7.1.190.0150.00815.05
7.1.180.0160.00715.04
7.1.170.0270.00515.30
7.1.160.0110.01015.29
7.1.150.0150.00415.52
7.1.140.0130.00715.32
7.1.130.0150.00415.37
7.1.120.0150.00515.39
7.1.110.0160.00515.41
7.1.100.0160.00515.39
7.1.90.0160.00715.20
7.1.80.0150.00715.47
7.1.70.0120.00815.65
7.1.60.0150.01018.25
7.1.50.0180.00718.32
7.1.40.0140.00818.50
7.1.30.0170.00818.42
7.1.20.0160.00818.27
7.1.10.0140.00715.39
7.1.00.0110.01716.43
7.0.330.0450.00714.58
7.0.320.0180.00614.72
7.0.310.0180.00914.33
7.0.300.0190.00714.81
7.0.290.0160.00814.92
7.0.280.0140.00715.26
7.0.270.0210.00614.83
7.0.260.0170.00914.70
7.0.250.0210.00514.95
7.0.240.0230.00514.94
7.0.230.0250.00414.82
7.0.220.0220.00514.71
7.0.210.0210.00514.74
7.0.200.0240.00414.88
7.0.190.0210.00614.86
7.0.180.0330.00914.98
7.0.170.0190.00814.99
7.0.160.0200.00614.95
7.0.150.0170.00814.94
7.0.140.0170.00514.95
7.0.130.0140.01616.18
7.0.120.0170.01716.25
7.0.110.0130.02016.32
7.0.100.0680.01716.33
7.0.90.0150.01616.25
7.0.80.0130.02016.30
7.0.70.0160.02416.21
7.0.60.0150.01416.18
7.0.50.0200.01616.26
7.0.40.0190.01816.38
7.0.30.0190.01616.33
7.0.20.0130.01816.23
7.0.10.0170.01516.28
7.0.00.0170.01916.27
5.6.400.0060.01114.68
5.6.390.0090.00814.69
5.6.380.0090.01214.67
5.6.370.0100.00814.87
5.6.360.0130.00514.72
5.6.350.0130.00614.83
5.6.340.0150.00414.57
5.6.330.0130.00714.82
5.6.320.0140.00414.96
5.6.310.0180.00414.79
5.6.300.0120.00614.59
5.6.290.0130.00514.58
5.6.280.0150.01615.91
5.6.270.0110.01915.83
5.6.260.0130.01315.87
5.6.250.0110.01615.94
5.6.240.0110.01615.86
5.6.230.0110.01515.81
5.6.220.0080.02515.96
5.6.210.0150.01615.94
5.6.200.0120.01815.92
5.6.190.0120.01815.92
5.6.180.0150.01415.89
5.6.170.0090.02016.01
5.6.160.0120.02215.91
5.6.150.0140.01915.83
5.6.140.0100.01815.84
5.6.130.0120.01915.74
5.6.120.0100.02115.84
5.6.110.0090.02415.94
5.6.100.0110.02015.94
5.6.90.0110.01815.78
5.6.80.0070.02115.75
5.6.70.0120.01815.69
5.6.60.0100.01615.71
5.6.50.0110.01515.69
5.6.40.0100.02115.69
5.6.30.0130.01515.85
5.6.20.0140.01615.73
5.6.10.0120.01615.65
5.6.00.0120.01715.65

preferences:
31.59 ms | 403 KiB | 5 Q