3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); hash_hmac('sha256', ['foo', 'bar', 'baz'], 'qux');

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.40.0110.00418.83
8.3.30.0140.00018.54
8.3.20.0060.00321.68
8.3.10.0070.00723.44
8.3.00.0000.00823.66
8.2.170.0140.00422.96
8.2.160.0000.01422.17
8.2.150.0140.00625.66
8.2.140.0000.00724.66
8.2.130.0070.00321.04
8.2.120.0000.00826.35
8.2.110.0060.00322.24
8.2.100.0120.00017.84
8.2.90.0050.00319.22
8.2.80.0080.00017.97
8.2.70.0030.00517.93
8.2.60.0030.00617.80
8.2.50.0000.00718.10
8.2.40.0000.00720.53
8.2.30.0050.00319.22
8.2.20.0040.00417.98
8.2.10.0000.00717.85
8.2.00.0000.00817.88
8.1.270.0040.00423.91
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00623.91
8.1.230.0080.00320.88
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.36
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0000.00918.66
8.1.160.0040.00418.64
8.1.150.0040.00418.89
8.1.140.0000.00718.76
8.1.130.0000.00720.72
8.1.120.0030.00617.32
8.1.110.0030.00717.31
8.1.100.0040.00417.24
8.1.90.0000.00917.30
8.1.80.0000.00817.34
8.1.70.0080.00017.25
8.1.60.0050.00317.39
8.1.50.0000.00917.46
8.1.40.0030.00617.45
8.1.30.0030.00617.55
8.1.20.0040.00417.50
8.1.10.0080.00017.48
8.1.00.0120.00017.38
8.0.300.0070.00020.21
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0070.00017.14
8.0.260.0060.00017.09
8.0.250.0040.00416.92
8.0.240.0080.00016.84
8.0.230.0050.00316.94
8.0.220.0040.00416.89
8.0.210.0040.00416.75
8.0.200.0030.00316.86
8.0.190.0050.00216.91
8.0.180.0040.00316.78
8.0.170.0080.00016.89
8.0.160.0040.00416.98
8.0.150.0030.00616.91
8.0.140.0050.00316.82
8.0.130.0000.00513.29
8.0.120.0040.00416.88
8.0.110.0030.00316.92
8.0.100.0070.00016.87
8.0.90.0000.00716.88
8.0.80.0040.01516.91
8.0.70.0040.00316.94
8.0.60.0000.00716.86
8.0.50.0040.00416.67
8.0.30.0170.00317.00
8.0.20.0100.00917.40
8.0.10.0040.00416.93
8.0.00.0090.00916.84
7.4.330.0000.00515.55
7.4.320.0030.00316.28
7.4.300.0000.00716.38
7.4.290.0030.00316.40
7.4.280.0050.00216.53
7.4.270.0000.00716.41
7.4.260.0000.00716.51
7.4.250.0070.00016.40
7.4.240.0000.00716.41
7.4.230.0000.00716.50
7.4.220.0040.00416.50
7.4.210.0100.00816.63
7.4.200.0030.00316.32
7.4.160.0080.00716.30
7.4.140.0130.00517.86
7.4.130.0070.01316.63
7.4.120.0090.00816.46
7.4.110.0070.01016.54
7.4.100.0070.01016.53
7.4.90.0070.01016.44
7.4.80.0110.01119.39
7.4.70.0110.00516.27
7.4.60.0090.01316.57
7.4.50.0070.00716.66
7.4.40.0100.01216.70
7.4.10.0130.00716.30
7.4.00.0080.01015.64
7.3.330.0000.00513.16
7.3.320.0030.00313.16
7.3.310.0000.00716.20
7.3.300.0000.00616.18
7.3.290.0030.00416.22
7.3.280.0070.00816.22
7.3.260.0060.01316.37
7.3.240.0110.00916.29
7.3.230.0110.00716.57
7.3.210.0100.00716.42
7.3.200.0160.00616.54
7.3.190.0080.00816.50
7.3.180.0100.00716.24
7.3.170.0080.01316.23
7.3.160.0130.00716.35
7.3.130.0090.00916.17
7.3.120.0030.01216.40
7.3.110.0000.01516.10
7.3.100.0080.00816.25
7.3.90.0080.00815.13
7.3.80.0050.01115.20
7.3.70.0080.00615.06
7.3.60.0060.01115.25
7.3.50.0050.01115.20
7.3.40.0050.00815.15
7.3.30.0100.00515.24
7.3.20.0120.00315.82
7.3.10.0080.01115.68
7.3.00.0090.00915.73
7.2.330.0070.01016.58
7.2.320.0040.01416.37
7.2.310.0100.00616.43
7.2.300.0070.01016.25
7.2.290.0120.00616.21
7.2.260.0100.00716.57
7.2.250.0040.01416.42
7.2.240.0120.00416.63
7.2.230.0000.01416.44
7.2.220.0080.01015.25
7.2.210.0070.00915.21
7.2.200.0060.00815.22
7.2.190.0090.00715.39
7.2.180.0110.00315.27
7.2.170.0070.00915.17
7.2.160.0110.00315.30
7.2.150.0110.00715.95
7.2.140.0090.00915.89
7.2.130.0090.00815.82
7.2.120.0040.01215.89
7.2.110.0060.01315.93
7.2.100.0060.01015.86
7.2.90.0070.00915.89
7.2.80.0050.01115.97
7.2.70.0270.00815.70
7.2.60.0120.00915.90
7.2.50.0120.00715.92
7.2.40.0390.01216.37
7.2.30.0420.01016.39
7.2.20.0400.01016.41
7.2.10.0310.01116.41
7.2.00.0290.01116.46
7.1.330.0100.01017.30
7.1.320.0040.01014.83
7.1.310.0050.00814.91
7.1.300.0020.01314.74
7.1.290.0080.00614.77
7.1.280.0110.00414.79
7.1.270.0100.00514.88
7.1.260.0060.01014.82
7.1.250.0060.00914.78
7.1.240.0100.00715.03
7.1.230.0120.00614.93
7.1.220.0090.00814.93
7.1.210.0170.00914.91
7.1.200.0080.00715.10
7.1.190.0120.00414.96
7.1.180.0080.00814.76
7.1.170.0120.01214.66
7.1.160.0390.00915.31
7.1.150.0380.00815.29
7.1.140.0370.01115.20
7.1.130.0350.00715.30
7.1.120.0370.00915.24
7.1.110.0210.00815.00
7.1.100.0250.00815.14
7.1.90.0390.01115.12
7.1.80.0360.01115.08
7.1.70.0390.00714.82
7.1.60.0440.00923.75
7.1.50.0510.01323.67
7.1.40.0490.01323.48
7.1.30.0450.01223.54
7.1.20.0490.01023.62
7.1.10.0540.00714.46
7.1.00.0490.00714.72
7.0.330.0130.00613.26
5.6.400.0150.00514.16
5.6.390.0130.01014.20
5.6.380.0160.00613.92

preferences:
59.28 ms | 400 KiB | 5 Q