3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '=?UTF-8?Q?=c3=b8en?='; echo "$input\n"; $output = ''; foreach(imap_mime_header_decode($input) as $element){ if($element->charset == 'utf-8'){ echo "utf8 = $element->text\n"; $output .= $element->text; } else{ echo "default = $element->text\n"; $output .= $element->text; } } $string = preg_replace('/[^a-zæøåA-ZÆØÅ0-9 \-\.,:]/', '', $output); echo "$string\n"; echo strlen($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.0110.00316.75
8.3.50.0080.01021.09
8.3.40.0040.01118.84
8.3.30.0110.00418.85
8.3.20.0040.00420.33
8.3.10.0080.00023.56
8.3.00.0040.00423.39
8.2.180.0120.00318.41
8.2.170.0040.01118.95
8.2.160.0140.00722.96
8.2.150.0070.00325.66
8.2.140.0040.00424.66
8.2.130.0060.00319.70
8.2.120.0070.00026.35
8.2.110.0030.00619.30
8.2.100.0090.00317.97
8.2.90.0080.00419.22
8.2.80.0000.00817.97
8.2.70.0000.01017.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00422.23
8.2.30.0050.00320.65
8.2.20.0040.00417.65
8.2.10.0000.00818.23
8.2.00.0040.00418.20
8.1.280.0100.01025.92
8.1.270.0030.00623.89
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0000.00921.16
8.1.230.0060.00617.42
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0080.00018.58
8.1.160.0080.00020.70
8.1.150.0040.00418.86
8.1.140.0050.00319.39
8.1.130.0000.00717.61
8.1.120.0020.00517.49
8.1.110.0000.00817.34
8.1.100.0000.00817.38
8.1.90.0050.00217.31
8.1.80.0070.00017.40
8.1.70.0000.00717.44
8.1.60.0000.00717.50
8.1.50.0040.00417.56
8.1.40.0000.00817.48
8.1.30.0040.00417.66
8.1.20.0030.00617.66
8.1.10.0000.00817.67
8.1.00.0040.00417.39
8.0.300.0030.00618.77
8.0.290.0050.00316.63
8.0.280.0030.00318.46
8.0.270.0040.00417.34
8.0.260.0080.00017.33
8.0.250.0000.00717.07
8.0.240.0000.00617.04
8.0.230.0030.00317.04
8.0.220.0030.00316.94
8.0.210.0030.00316.98
8.0.200.0000.00616.91
8.0.190.0040.00417.02
8.0.180.0000.00716.90
8.0.170.0070.00317.03
8.0.160.0040.00416.89
8.0.150.0000.00716.81
8.0.140.0000.00716.83
8.0.130.0000.00513.47
8.0.120.0000.00716.91
8.0.110.0050.00316.85
8.0.100.0050.00216.88
8.0.90.0000.00816.88
8.0.80.0100.01016.97
8.0.70.0030.00516.85
8.0.60.0040.00416.93
8.0.50.0040.00417.01
8.0.30.0070.01217.21
8.0.20.0120.00917.40
8.0.10.0040.00416.84
8.0.00.0150.00616.83
7.4.330.0050.00016.79
7.4.320.0030.00316.61
7.4.300.0060.00016.53
7.4.290.0030.00316.48
7.4.280.0030.00716.65
7.4.270.0030.00316.49
7.4.260.0060.00316.63
7.4.250.0030.00316.63
7.4.240.0030.00416.64
7.4.230.0030.00316.45
7.4.220.0130.01016.46
7.4.210.0050.00816.64
7.4.200.0040.00316.37
7.4.160.0100.01316.48
7.4.150.0140.00617.40
7.4.140.0130.00617.86
7.4.130.0120.00516.53
7.4.120.0100.00716.43
7.4.110.0070.01816.50
7.4.100.0070.01116.38
7.4.90.0160.00616.48
7.4.80.0100.00719.39
7.4.70.0100.00716.58
7.4.60.0130.00316.46
7.4.50.0000.01516.32
7.4.40.0130.01016.53
7.4.30.0090.01316.54
7.4.00.0130.00314.84
7.3.330.0070.00013.19
7.3.320.0030.00313.23
7.3.310.0040.00416.30
7.3.300.0000.00716.40
7.3.290.0000.00816.39
7.3.280.0080.00916.34
7.3.270.0120.00617.40
7.3.260.0080.00916.48
7.3.250.0140.00516.53
7.3.240.0090.00916.42
7.3.230.0080.00916.39
7.3.210.0130.00316.55
7.3.200.0130.00319.39
7.3.190.0070.01016.43
7.3.180.0110.00416.63
7.3.170.0120.00616.59
7.3.160.0130.00316.58
7.2.330.0130.00416.62
7.2.320.0000.02016.61
7.2.310.0130.00316.67
7.2.300.0090.00816.73
7.2.290.0070.01016.38
7.2.60.0100.00316.75
7.2.00.0060.00619.37
7.1.200.0040.01115.75
7.1.100.0080.00618.02
7.1.70.0030.00717.09
7.1.60.0030.01719.21
7.1.50.0090.01616.80
7.1.00.0070.07322.33
7.0.200.0000.01016.54
7.0.60.0070.07721.66
7.0.50.0030.08317.88
7.0.40.0000.08720.27
7.0.30.0200.07720.17
7.0.20.0330.04020.33
7.0.10.0030.04320.16
7.0.00.0100.08720.20
5.6.280.0070.05721.13
5.6.210.0200.07020.71
5.6.200.0200.06718.16
5.6.190.0130.07320.33
5.6.180.0230.07720.57
5.6.170.0500.03320.60
5.6.160.0130.05320.50
5.6.150.0130.07318.20
5.6.140.0130.07318.21
5.6.130.0070.06718.21
5.6.120.0130.08321.00
5.6.110.0170.07021.00
5.6.100.0130.07020.97
5.6.90.0070.08721.12
5.6.80.0130.07320.51
5.5.350.0170.07320.42
5.5.340.0100.08017.98
5.5.330.0200.07020.15
5.5.320.0530.07020.41
5.5.310.0200.03720.29
5.5.300.0070.03717.95
5.5.290.0100.07017.92
5.5.280.0270.06320.87
5.5.270.0100.07720.79
5.5.260.0100.07020.79
5.5.250.0130.07720.46
5.5.240.0130.08020.15

preferences:
51.29 ms | 401 KiB | 5 Q