3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testcase = 'DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trello.com; q=dns/txt; s=dkim; bh=zmLkmznXksSFNlY+E/SQwF4vaDducoC91+u20p18W38=; h=from:sender:subject:to:mime-version:content-type; b=XFKjy/g96z0Iv8qDg+IPb4EXYSujEVf/indwAV64icAXv/wceXEgQPLXury2HKBn5/Tk7DbgU HW4duCjde16IKgMOd5xf7n8duXbzhEESD5a3CXSo9QNOjYH1hwsdx8oguz+RWL3Zw4ZJfXjGCzS +LMZig06tV0tF8zFTuAHfRY= Content-Type: multipart/alternative; boundary="----sinikael-?=_1-14883656976170.4675149679677584'; function test($name, array $headers) { echo 'Test in mode "' . $name . '": '; if (isset($headers['Content-Type'])) { echo "OK!\n"; } else { echo "Content-Type header not found:\n"; print_r($headers); } } test('strict', iconv_mime_decode_headers($testcase, ICONV_MIME_DECODE_STRICT, 'utf-8')); test('continue', iconv_mime_decode_headers($testcase, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'utf-8'));

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.100.0060.00317.41
8.1.90.0060.00317.53
8.1.80.0040.00417.44
8.1.70.0070.00017.37
8.1.60.0000.00817.63
8.1.50.0030.00717.47
8.1.40.0030.00617.52
8.1.30.0000.00917.59
8.1.20.0040.00417.68
8.1.10.0000.00717.50
8.1.00.0000.01017.55
8.0.230.0000.00717.01
8.0.220.0000.00716.92
8.0.210.0040.00416.80
8.0.200.0030.00316.95
8.0.190.0000.00917.03
8.0.180.0080.00216.95
8.0.170.0000.00816.89
8.0.160.0000.00716.83
8.0.150.0000.00716.80
8.0.140.0040.00716.86
8.0.130.0000.00813.34
8.0.120.0030.00616.93
8.0.110.0090.00017.12
8.0.100.0000.00916.91
8.0.90.0000.00916.93
8.0.80.0000.01917.11
8.0.70.0040.00417.12
8.0.60.0000.00917.05
8.0.50.0030.00617.02
8.0.30.0110.01017.35
8.0.20.0100.01117.44
8.0.10.0000.00817.18
8.0.00.0130.00717.07
7.4.300.0030.00316.50
7.4.290.0040.00416.52
7.4.280.0000.00716.60
7.4.270.0040.00416.54
7.4.260.0030.00316.53
7.4.250.0060.00316.64
7.4.240.0030.00516.79
7.4.230.0000.00816.83
7.4.220.0060.01616.69
7.4.210.0120.00316.53
7.4.200.0000.00816.41
7.4.160.0100.00916.58
7.4.150.0070.01417.40
7.4.140.0210.00617.86
7.4.130.0110.00916.72
7.4.120.0110.01216.71
7.4.110.0070.01416.88
7.4.100.0140.00816.89
7.4.90.0100.01016.57
7.4.80.0100.01119.39
7.4.70.0000.01916.73
7.4.60.0100.00716.63
7.4.50.0100.00716.85
7.4.40.0130.01316.73
7.4.30.0060.01516.55
7.4.00.0030.01314.98
7.3.330.0000.00613.30
7.3.320.0060.00013.25
7.3.310.0000.01016.48
7.3.300.0000.00916.45
7.3.290.0060.01116.55
7.3.280.0050.01116.43
7.3.270.0030.01617.40
7.3.260.0110.01016.67
7.3.250.0070.01316.63
7.3.240.0130.00616.69
7.3.230.0120.00816.62
7.3.210.0090.01016.68
7.3.200.0100.01016.53
7.3.190.0050.01316.50
7.3.180.0090.00916.62
7.3.170.0070.01016.43
7.3.160.0070.01116.72
7.3.10.0070.00416.79
7.3.00.0060.00616.80
7.2.330.0080.01216.60
7.2.320.0060.02116.88
7.2.310.0140.00716.85
7.2.300.0100.01016.84
7.2.290.0000.01916.84
7.2.130.0030.01316.91
7.2.120.0030.01317.09
7.2.110.0080.00316.87
7.2.100.0030.00916.78
7.2.90.0030.01017.13
7.2.80.0100.00316.89
7.2.70.0080.00817.02
7.2.60.0110.00617.02
7.2.50.0030.01217.02
7.2.40.0070.01017.11
7.2.30.0070.01517.59
7.2.20.0130.00917.51
7.2.10.0100.01217.61
7.2.00.0080.01217.50
7.1.250.0040.01115.86
7.1.200.0030.01315.63
7.1.150.0100.01317.04
7.1.140.0170.01217.04
7.1.130.0160.01616.94
7.1.120.0090.01816.50
7.1.110.0130.01516.07
7.1.100.0100.01416.05
7.1.90.0180.01516.25
7.1.80.0080.01116.12
7.1.70.0140.00616.16
7.1.60.0460.01433.16
7.1.50.0430.01132.83
7.1.40.0490.01432.45
7.1.30.0530.01932.51
7.1.20.0470.01432.55
7.1.10.0320.01615.04
7.1.00.0260.01214.87
7.0.270.0130.01216.45
7.0.260.0390.00916.45
7.0.250.0130.01015.81
7.0.240.0120.01015.91
7.0.230.0160.01215.96
7.0.220.0160.01415.55
7.0.210.0070.01215.09
7.0.200.0310.00915.03
7.0.190.0400.01015.03
7.0.180.1240.01714.67
7.0.170.0450.01614.65
7.0.160.0410.01314.42
7.0.150.0360.00914.72
7.0.140.0280.01514.64
7.0.130.0490.00714.77
7.0.120.0180.01114.94
7.0.110.0190.01214.63
7.0.100.0160.00614.64
7.0.90.0310.01614.58
7.0.80.0360.00514.70
7.0.70.0310.01214.82
7.0.60.0200.01314.45
7.0.50.0300.01214.62
7.0.40.0320.01114.94
7.0.30.0360.01015.00
7.0.20.0890.01114.67
7.0.10.0380.01014.86
7.0.00.0340.00614.83

preferences:
13.28 ms | 406 KiB | 5 Q