3v4l.org

run code in 300+ PHP versions simultaneously
<?php class strtoupper_filter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { while ($bucket = stream_bucket_make_writeable($in)) { $bucket->data = strtoupper($bucket->data); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } define('FD', fopen('/dev/null','rw')); stream_filter_append(FD, "strtoupper_filter");

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.0150.00016.88
8.3.50.0150.00522.03
8.3.40.0070.00718.56
8.3.30.0090.00919.03
8.3.20.0050.00220.39
8.3.10.0030.00523.66
8.3.00.0080.00020.94
8.2.180.0110.00716.88
8.2.170.0140.00722.96
8.2.160.0080.00820.44
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00520.93
8.2.110.0040.00722.22
8.2.100.0030.00919.57
8.2.90.0000.00819.21
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0090.00018.05
8.2.50.0080.00018.07
8.2.40.0040.00421.13
8.2.30.0040.00418.25
8.2.20.0070.00017.82
8.2.10.0000.00718.14
8.2.00.0000.00917.81
8.1.280.0070.00725.92
8.1.270.0040.00423.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0040.00718.97
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0070.00717.35
8.1.190.0040.00417.25
8.1.180.0050.00518.10
8.1.170.0030.00618.65
8.1.160.0070.00022.05
8.1.150.0030.00518.60
8.1.140.0000.00717.31
8.1.130.0000.00717.83
8.1.120.0030.00517.44
8.1.110.0030.00617.47
8.1.100.0040.00417.41
8.1.90.0040.00717.43
8.1.80.0060.00317.39
8.1.70.0060.00317.30
8.1.60.0000.00817.55
8.1.50.0090.00017.50
8.1.40.0080.00017.51
8.1.30.0040.00417.52
8.1.20.0080.00017.44
8.1.10.0000.00817.61
8.1.00.0030.00517.46
8.0.300.0080.00018.77
8.0.290.0070.00017.17
8.0.280.0000.00718.53
8.0.270.0030.00317.36
8.0.260.0070.00017.25
8.0.250.0030.00317.09
8.0.240.0070.00017.12
8.0.230.0050.00317.14
8.0.220.0030.00316.90
8.0.210.0040.00417.04
8.0.200.0030.00317.08
8.0.190.0070.00017.03
8.0.180.0080.00417.05
8.0.170.0040.00416.93
8.0.160.0040.00417.07
8.0.150.0000.00716.91
8.0.140.0040.00417.03
8.0.130.0000.00613.36
8.0.120.0030.00517.01
8.0.110.0030.00517.02
8.0.100.0000.00716.91
8.0.90.0030.00516.93
8.0.80.0100.01217.04
8.0.70.0040.00416.83
8.0.60.0050.00316.91
8.0.50.0080.00017.09
8.0.30.0100.00817.16
8.0.20.0050.01717.40
8.0.10.0000.00816.89
8.0.00.0090.01116.77
7.4.330.0060.00015.00
7.4.320.0080.00016.56
7.4.300.0030.00316.50
7.4.290.0070.00016.54
7.4.280.0070.00016.43
7.4.270.0030.00416.48
7.4.260.0040.00416.43
7.4.250.0040.00416.49
7.4.240.0050.00216.45
7.4.230.0030.00316.49
7.4.220.0090.00916.63
7.4.210.0030.01016.52
7.4.200.0040.00416.58
7.4.190.0000.00816.36
7.4.160.0070.00716.36
7.4.150.0000.01717.40
7.4.140.0110.00917.86
7.4.130.0120.00516.56
7.4.120.0110.00616.55
7.4.110.0040.01416.54
7.4.100.0110.01116.54
7.4.90.0060.01516.41
7.4.80.0120.00819.39
7.4.70.0130.00316.52
7.4.60.0140.00416.46
7.4.50.0060.00316.33
7.4.40.0120.00916.58
7.4.30.0000.01616.29
7.4.00.0050.01014.75
7.3.330.0020.00213.35
7.3.320.0030.00313.13
7.3.310.0070.00016.38
7.3.300.0070.00016.23
7.3.290.0000.01316.35
7.3.280.0110.00716.34
7.3.270.0090.00917.40
7.3.260.0120.00916.47
7.3.250.0100.00816.41
7.3.240.0130.00316.40
7.3.230.0080.00816.39
7.3.210.0110.00516.37
7.3.200.0140.00319.39
7.3.190.0160.00616.53
7.3.180.0120.00416.32
7.3.170.0140.00916.36
7.3.160.0110.01116.44
7.3.120.0100.00714.76
7.3.110.0070.01014.65
7.3.100.0140.00314.59
7.3.90.0040.00914.52
7.3.80.0030.01314.84
7.3.70.0030.00614.66
7.3.60.0050.00514.63
7.3.50.0070.01114.53
7.3.40.0040.01114.53
7.3.30.0000.01414.70
7.3.20.0060.00616.47
7.3.10.0130.00316.22
7.3.00.0030.01316.54
7.2.330.0120.00616.46
7.2.320.0100.00716.44
7.2.310.0090.01416.58
7.2.300.0110.00716.53
7.2.290.0170.00416.68
7.2.250.0060.01214.78
7.2.240.0060.00914.66
7.2.230.0030.01214.55
7.2.220.0000.01514.68
7.2.210.0060.01314.68
7.2.200.0030.00714.90
7.2.190.0030.00614.97
7.2.180.0070.01014.57
7.2.170.0030.00714.82
7.2.60.0000.00816.73
7.2.00.0190.00919.28
7.1.330.0070.01015.49
7.1.320.0030.00915.84
7.1.310.0100.00715.72
7.1.300.0030.00715.62
7.1.290.0040.00715.34
7.1.280.0060.00315.72
7.1.270.0040.00915.61
7.1.260.0100.00315.67
7.1.200.0030.00915.78
7.1.100.0060.00617.79
7.1.70.0000.00717.08
7.1.60.0070.01719.46
7.1.50.0040.01816.86
7.1.00.0000.08022.28
7.0.200.0000.00816.36
7.0.140.0130.06322.21
7.0.60.0000.03721.77
7.0.50.0030.04317.88
7.0.40.0130.08020.40
7.0.30.0270.08020.06
7.0.20.0200.05720.10
7.0.10.0100.04020.24
7.0.00.0070.08020.19
5.6.280.0030.07321.12
5.6.210.0030.04320.68
5.6.200.0130.07718.12
5.6.190.0030.05320.39
5.6.180.0270.03720.39
5.6.170.0230.03320.57
5.6.160.0030.08720.54
5.6.150.0070.05018.28
5.6.140.0030.05718.27
5.6.130.0030.04718.16
5.6.120.0030.04320.98
5.6.110.0100.09021.02
5.6.100.0100.05021.07
5.6.90.0030.07021.00
5.6.80.0030.03720.39
5.5.350.0370.06320.47
5.5.340.0000.08318.00
5.5.330.0130.08020.35
5.5.320.0670.06020.24
5.5.310.0230.08020.26
5.5.300.0070.08717.97
5.5.290.0100.07718.09
5.5.280.0070.05020.88
5.5.270.0100.07720.80
5.5.260.0030.08720.79
5.5.250.0070.07020.55
5.5.240.0070.05720.22
5.4.450.3830.04019.37
5.4.440.3970.04719.29
5.4.430.3700.04319.54
5.4.420.3700.03719.48
5.4.410.3570.03719.42
5.4.400.3900.03719.00
5.4.390.3300.04319.23
5.4.380.3630.04719.06
5.4.370.4470.04019.23
5.4.360.4570.04019.02
5.4.350.3530.03019.06
5.4.340.4100.03718.99
5.4.320.3870.03019.18
5.4.310.3770.04319.06
5.4.300.3700.03319.13
5.4.290.4600.04318.97
5.4.280.4700.03719.16
5.4.270.4070.03719.21
5.4.260.3230.03719.07
5.4.250.3000.03719.14
5.4.240.3600.03319.27
5.4.230.3930.04719.06
5.4.220.3530.03319.20
5.4.210.3800.03719.14
5.4.200.3270.03019.21
5.4.190.3730.03319.21
5.4.180.4500.03719.21
5.4.170.3900.04319.03
5.4.160.3630.02719.18
5.4.150.3670.04319.13
5.4.140.0070.03316.26
5.4.130.0000.03716.34
5.4.120.3930.03716.40
5.4.110.3730.03316.22
5.4.100.3500.03716.45
5.4.90.3470.03716.48
5.4.80.3530.03316.30
5.4.70.3970.03316.23
5.4.60.3900.04016.29
5.4.50.3630.03016.43
5.4.40.4070.03316.49
5.4.30.3370.03716.53
5.4.20.0100.06016.53
5.4.10.2600.03716.52
5.4.00.4330.03015.93
5.3.290.3930.03714.66
5.3.280.3600.04314.59
5.3.270.3770.03714.64
5.3.260.3530.03014.75
5.3.250.2870.03714.63
5.3.240.0070.03714.62
5.3.230.2430.03014.65
5.3.220.4170.03314.72
5.3.210.3800.04014.64
5.3.200.3600.03714.49
5.3.190.3530.03714.71
5.3.180.3700.02714.61
5.3.170.3870.04014.59
5.3.160.3670.03314.63
5.3.150.3830.03714.70
5.3.140.3600.03314.60
5.3.130.3200.02714.60
5.3.120.0070.07714.69
5.3.110.0070.06014.54
5.3.100.4100.03713.96
5.3.90.3800.02714.05
5.3.80.3630.03313.94
5.3.70.3770.03314.09
5.3.60.3700.03013.89
5.3.50.4300.04013.84
5.3.40.3900.03713.87
5.3.30.3900.03713.96
5.3.20.3970.04013.68
5.3.10.4500.03313.72
5.3.00.4570.02713.79
5.2.170.3670.03011.16
5.2.160.3500.03011.19
5.2.150.3070.02311.10
5.2.140.3730.03011.18
5.2.130.3870.03011.14
5.2.120.3670.03011.11
5.2.110.3600.03011.01
5.2.100.3070.03011.13
5.2.90.2900.03011.11
5.2.80.3070.02310.98
5.2.70.2900.03011.11
5.2.60.3530.02011.02
5.2.50.3570.03011.07
5.2.40.3030.04010.95
5.2.30.3000.03010.89
5.2.20.3070.03311.12
5.2.10.3070.02310.92
5.2.00.3200.02710.72
5.1.60.3170.02310.02
5.1.50.2770.02710.06
5.1.40.3230.0209.98
5.1.30.2900.03310.31
5.1.20.2900.02710.36
5.1.10.2830.02310.11
5.1.00.2800.02010.07
5.0.50.1730.0238.52
5.0.40.1570.0178.41
5.0.30.1670.0338.23
5.0.20.1700.0238.25
5.0.10.1530.0238.23
5.0.00.1400.0338.23
4.4.90.1430.0175.89
4.4.80.1670.0175.89
4.4.70.1430.0175.89
4.4.60.1670.0135.89
4.4.50.1500.0175.89
4.4.40.1430.0275.89
4.4.30.1470.0175.89
4.4.20.1470.0175.95
4.4.10.1670.0175.90
4.4.00.1530.0235.89
4.3.110.1570.0135.89
4.3.100.1630.0135.89
4.3.90.1670.0175.89
4.3.80.1530.0205.89
4.3.70.1770.0205.89
4.3.60.1430.0135.89
4.3.50.1770.0175.89
4.3.40.1670.0205.89
4.3.30.0930.0235.89
4.3.20.0970.0205.89
4.3.10.0830.0135.89
4.3.00.0830.0205.89

preferences:
35.12 ms | 401 KiB | 5 Q