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; } } stream_filter_register("strtoupper", "strtoupper_filter") or die("Failed to register filter"); define('FD', fopen('/dev/null','rw')); stream_filter_append(FD, "strtoupper");

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.1.70.0000.00717.38
8.1.60.0130.00017.52
8.1.50.0040.00417.35
8.1.40.0000.00817.35
8.1.30.0040.00417.55
8.1.20.0030.00617.52
8.1.10.0000.00817.55
8.1.00.0040.00417.48
8.0.200.0040.00417.11
8.0.190.0080.00017.11
8.0.180.0000.00817.04
8.0.170.0000.00717.07
8.0.160.0030.00417.14
8.0.150.0000.00716.95
8.0.140.0070.00016.88
8.0.130.0000.00513.39
8.0.120.0000.00817.03
8.0.110.0070.00017.10
8.0.100.0040.00416.95
8.0.90.0020.00517.07
8.0.80.0130.00617.07
8.0.70.0020.00517.02
8.0.60.0050.00316.84
8.0.50.0040.00417.02
8.0.30.0100.00916.98
8.0.20.0110.01017.40
8.0.10.0000.00717.08
8.0.00.0120.00816.71
7.4.300.0030.00316.45
7.4.290.0030.00316.55
7.4.280.0060.00316.47
7.4.270.0030.00316.55
7.4.260.0060.00013.23
7.4.250.0040.00416.48
7.4.240.0040.00416.59
7.4.230.0000.00716.40
7.4.220.0180.00316.58
7.4.210.0070.00816.50
7.4.200.0000.00816.31
7.4.190.0030.00316.43
7.4.160.0080.00816.37
7.4.150.0120.00617.40
7.4.140.0100.01317.86
7.4.130.0090.00816.41
7.4.120.0100.00816.43
7.4.110.0190.00316.49
7.4.100.0070.01016.44
7.4.90.0060.01116.40
7.4.80.0100.00719.39
7.4.70.0070.01016.52
7.4.60.0100.00616.49
7.4.50.0030.00616.46
7.4.40.0000.01522.77
7.4.30.0040.01316.29
7.4.00.0060.00914.87
7.3.330.0000.00513.04
7.3.320.0030.00313.12
7.3.310.0040.00416.23
7.3.300.0030.00316.18
7.3.290.0090.00616.38
7.3.280.0120.00516.30
7.3.270.0070.01017.40
7.3.260.0100.01016.56
7.3.250.0110.00616.30
7.3.240.0060.01016.52
7.3.230.0100.00716.43
7.3.210.0070.01016.30
7.3.200.0060.01319.39
7.3.190.0120.00916.61
7.3.180.0060.00916.41
7.3.170.0110.00616.54
7.3.160.0130.00616.40
7.3.120.0080.00914.80
7.3.110.0040.00914.79
7.3.100.0080.00814.86
7.3.90.0090.00614.94
7.3.80.0100.00314.73
7.3.70.0030.01214.62
7.3.60.0070.00714.59
7.3.50.0020.01214.77
7.3.40.0070.00914.72
7.3.30.0060.00614.71
7.3.20.0030.01116.51
7.3.10.0070.01116.53
7.3.00.0080.00616.40
7.2.330.0100.01016.61
7.2.320.0030.01316.56
7.2.310.0080.00816.61
7.2.300.0100.01316.43
7.2.290.0100.00616.72
7.2.250.0030.01214.88
7.2.240.0030.01415.05
7.2.230.0060.00914.81
7.2.220.0030.00915.22
7.2.210.0060.00814.88
7.2.200.0130.00514.68
7.2.190.0050.00814.93
7.2.180.0040.01514.75
7.2.170.0060.01114.99
7.2.160.0160.00314.91
7.2.150.0070.01116.54
7.2.140.0030.01316.51
7.2.130.0070.01416.80
7.2.120.0030.00716.91
7.2.110.0120.00616.52
7.2.100.0040.01216.74
7.2.90.0030.01016.95
7.2.80.0100.00616.73
7.2.70.0110.00716.75
7.2.60.0080.00516.96
7.2.50.0080.00716.97
7.2.40.0040.01616.88
7.2.30.0030.01317.00
7.2.20.0070.01016.66
7.2.10.0070.00716.87
7.2.00.0100.00616.75
7.1.330.0020.01215.68
7.1.320.0060.00615.46
7.1.310.0050.00915.61
7.1.300.0070.00715.76
7.1.290.0060.00515.60
7.1.280.0030.00815.59
7.1.270.0070.00415.74
7.1.260.0070.00715.71
7.1.250.0090.00615.72
7.1.200.0080.00415.60
7.1.70.0040.00416.74
7.1.60.0060.00919.21
7.1.50.0040.01916.54
7.1.00.0130.04722.34
7.0.200.0180.01114.46
7.0.140.0030.07722.12
7.0.70.0100.07321.71
7.0.60.0100.07721.75
7.0.50.0000.09021.96
7.0.40.0100.06020.08
7.0.30.0030.08019.95
7.0.20.0000.04720.14
7.0.10.0000.04320.04
7.0.00.0030.04320.08
5.6.280.0100.06720.86
5.6.220.0070.04720.62
5.6.210.0100.08020.62
5.6.200.0000.09021.20
5.6.190.0070.05021.04
5.6.180.0070.04320.95
5.6.170.0030.05721.23
5.6.160.0030.04021.19
5.6.150.0070.04021.05
5.6.140.0130.02721.14
5.6.130.0030.08320.98
5.6.120.0200.07721.13
5.6.110.0070.08020.93
5.6.100.0100.08021.05
5.6.90.0100.03721.03
5.6.80.0070.03320.53
5.6.70.0030.04020.53
5.6.60.0100.03720.34
5.6.50.0030.03720.42
5.6.40.0000.04020.52
5.6.30.0000.04320.58
5.6.20.0070.04720.41
5.6.10.0000.05320.44
5.6.00.0030.03320.40
5.5.360.0070.07720.38
5.5.350.0070.04020.55
5.5.340.0000.06020.91
5.5.330.0100.03720.89
5.5.320.0030.06720.93
5.5.310.0070.04020.87
5.5.300.0030.03320.83
5.5.290.0030.04320.90
5.5.280.0000.04320.93
5.5.270.0130.07720.82
5.5.260.0000.04320.92
5.5.250.0030.04020.73
5.5.240.0030.04020.32
5.5.230.0030.03720.15
5.5.220.0070.03320.21
5.5.210.0030.03320.34
5.5.200.0000.04020.19
5.5.190.0000.03720.12
5.5.180.0000.04020.02
5.5.160.0070.07720.26
5.5.150.0070.05020.15
5.5.140.0030.03720.18
5.5.130.0070.03320.21
5.5.120.0000.04020.27
5.5.110.0100.03020.18
5.5.100.0030.03720.12
5.5.90.0000.07019.97
5.5.80.0000.04020.14
5.5.70.0000.04020.01
5.5.60.0030.04720.19
5.5.50.0030.03720.09
5.5.40.0030.05320.00
5.5.30.0000.04320.16
5.5.20.0100.03019.95
5.5.10.0030.06720.18
5.5.00.0130.07020.18
5.4.450.0070.06019.16
5.4.440.0100.02719.37
5.4.430.0030.05719.18
5.4.420.0100.05319.41
5.4.410.0000.04019.06
5.4.400.0030.03018.95
5.4.390.0030.03718.83
5.4.380.0000.03719.11
5.4.370.0000.04019.04
5.4.360.0030.03718.92
5.4.350.0030.03319.02
5.4.340.0030.03719.04
5.4.320.0030.03719.02
5.4.310.0000.04019.19
5.4.300.0030.03719.10
5.4.290.0030.03719.01
5.4.280.0070.05319.16
5.4.270.0030.03719.00
5.4.260.0030.03718.97
5.4.250.0000.03719.08
5.4.240.0030.03318.93
5.4.230.0030.03319.04
5.4.220.0030.03018.94
5.4.210.0030.03319.08
5.4.200.0030.03719.08
5.4.190.0030.03719.00
5.4.180.0000.03718.99
5.4.170.0070.07719.00
5.4.160.0030.05719.00
5.4.150.0100.07018.97
5.4.140.0030.07716.46
5.4.130.0130.06316.44
5.4.120.0000.08016.52
5.4.110.0070.06716.32
5.4.100.0070.07316.29
5.4.90.0070.07716.36
5.4.80.0070.07716.38
5.4.70.0030.07716.44
5.4.60.0030.07316.35
5.4.50.0030.07316.33
5.4.40.0070.07016.35
5.4.30.0030.08016.43
5.4.20.0030.07016.47
5.4.10.0070.07316.45
5.4.00.0070.06715.89
5.3.290.0030.03314.54
5.3.280.0000.04714.36
5.3.270.0070.04314.51
5.3.260.0070.07714.46
5.3.250.0070.05014.43
5.3.240.0130.06714.57
5.3.230.0030.08314.52
5.3.220.0030.06714.47
5.3.210.0030.07314.38
5.3.200.0100.07314.54
5.3.190.0000.08314.37
5.3.180.0130.06714.43
5.3.170.0030.07714.46
5.3.160.0070.09014.48
5.3.150.0100.06714.46
5.3.140.0130.06714.28
5.3.130.0100.07714.39
5.3.120.0100.06714.35
5.3.110.0100.06714.47
5.3.100.0030.08013.88
5.3.90.0070.07013.94
5.3.80.0030.06313.76
5.3.70.0030.07713.80
5.3.60.0030.07313.81
5.3.50.0000.08013.69
5.3.40.0070.06313.68
5.3.30.0070.07313.75
5.3.20.0000.06013.49
5.3.10.0070.06713.35
5.3.00.0000.08013.38
5.2.170.0000.06713.31
5.2.160.0030.06313.31
5.2.150.0030.06313.31
5.2.140.0070.06313.31
5.2.130.0000.03713.31
5.2.120.0030.06013.31
5.2.110.0030.05713.31
5.2.100.0070.05013.31
5.2.90.0000.06313.31
5.2.80.0030.05713.31
5.2.70.0030.06013.31
5.2.60.0030.05713.31
5.2.50.0100.05313.31
5.2.40.0030.06013.31
5.2.30.0030.06013.31
5.2.20.0030.05713.31
5.2.10.0000.04713.31
5.2.00.0030.06313.31
5.1.60.0030.05713.31
5.1.50.0130.04713.31
5.1.40.0070.04713.31
5.1.30.0030.05713.31
5.1.20.0070.05013.31
5.1.10.0070.05313.31
5.1.00.0070.05013.31
5.0.50.0000.03713.31
5.0.40.0000.04313.31
5.0.30.0000.04313.31
5.0.20.0030.04313.31
5.0.10.0000.03713.31
5.0.00.0030.04713.31
4.4.90.0070.03013.31
4.4.80.0030.03313.31
4.4.70.0000.03313.31
4.4.60.0000.04313.31
4.4.50.0030.03313.31
4.4.40.0030.04713.31
4.4.30.0000.03713.31
4.4.20.0000.03713.31
4.4.10.0000.03313.31
4.4.00.0000.05713.31
4.3.110.0070.03013.31
4.3.100.0000.03713.31
4.3.90.0030.03313.31
4.3.80.0030.04713.31
4.3.70.0000.03713.31
4.3.60.0000.03313.31
4.3.50.0000.03713.31
4.3.40.0070.04713.31
4.3.30.0000.03013.31
4.3.20.0100.03013.31
4.3.10.0030.03713.31
4.3.00.0070.03313.31

preferences:
41.91 ms | 406 KiB | 5 Q