3v4l.org

run code in 300+ PHP versions simultaneously
<?php $good_mac = hex2bin("0b12ae50aa4be68973372730489521f8cf77972a73b0e8c86fde8d97eaa84f02"); $bad_mac = hex2bin("0b12ae5000000000000000000000000000000000000000000000000000000000"); $hmac_key = random_bytes(32); var_dump( hash_hmac('sha256', $good_mac, $hmac_key), hash_hmac('sha256', $bad_mac, $hmac_key), hash_hmac('sha256', $good_mac, $hmac_key) === hash_hmac('sha256', $bad_mac, $hmac_key) );

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)
7.3.60.0000.01614.73
7.3.50.0140.00314.80
7.3.40.0120.00014.77
7.3.30.0100.01014.64
7.3.20.0090.00916.32
7.3.10.0060.00916.38
7.3.00.0080.01216.61
7.2.190.0030.01514.64
7.2.180.0070.01014.89
7.2.170.0110.00014.70
7.2.160.0090.00614.76
7.2.150.0060.01616.60
7.2.140.0090.01316.61
7.2.130.0060.01016.91
7.2.120.0080.01016.69
7.2.110.0080.00816.81
7.2.100.0040.01116.75
7.2.90.0130.00416.82
7.2.80.0090.00716.90
7.2.70.0110.00816.74
7.2.60.0100.00516.80
7.2.50.0110.00816.86
7.2.40.0080.00616.92
7.2.30.0100.00916.84
7.2.20.0080.00515.85
7.2.10.0070.00716.68
7.2.00.0190.00717.65
7.1.300.0160.00615.47
7.1.290.0040.00715.41
7.1.280.0160.00315.68
7.1.270.0080.00415.87
7.1.260.0170.00815.80
7.1.250.0090.00915.64
7.1.240.0180.00815.91
7.1.230.0160.00815.79
7.1.220.0150.00915.79
7.1.210.0150.00415.48
7.1.200.0240.00915.75
7.1.190.0100.01715.66
7.1.180.0200.00715.54
7.1.170.0200.00315.92
7.1.160.0140.00715.57
7.1.150.0160.00315.60
7.1.140.0160.00315.75
7.1.130.0000.01614.00
7.1.120.0160.00415.73
7.1.110.0120.00515.54
7.1.100.0060.01216.88
7.1.90.0120.00615.72
7.1.80.0100.01015.64
7.1.70.0040.01216.25
7.1.60.0110.00917.57
7.1.50.0090.00816.25
7.1.40.0070.01315.69
7.1.30.0220.00715.60
7.1.20.0080.01115.71
7.1.10.0230.00415.76
7.1.00.0060.04519.02
7.0.330.0090.00915.02
7.0.320.0240.00315.17
7.0.310.0150.00315.16
7.0.300.0100.00715.38
7.0.290.0230.00515.28
7.0.280.0100.01015.11
7.0.270.0100.01415.29
7.0.260.0070.01415.14
7.0.250.0090.01415.46
7.0.240.0060.01215.50
7.0.230.0150.00514.97
7.0.220.0090.00915.32
7.0.210.0240.00415.20
7.0.200.0230.00814.97
7.0.190.0130.00415.42
7.0.180.0050.01515.27
7.0.170.0110.01115.38
7.0.160.0080.00815.36
7.0.150.0160.00315.02
7.0.140.0180.01515.51
7.0.130.0270.00015.36
7.0.120.0170.00915.29
7.0.110.0190.00713.35
7.0.100.0140.00915.25
7.0.90.0190.00715.13
7.0.80.0190.00015.31
7.0.70.0120.00415.29
7.0.60.0070.02717.65
7.0.50.0080.04616.38
7.0.40.0040.02917.91
7.0.30.0170.03617.72
7.0.20.0170.02717.56
7.0.10.0050.02617.62
7.0.00.0110.04217.65
5.6.400.0090.00714.40
5.6.390.0130.00614.30
5.6.380.0120.00814.24
5.6.370.0070.01314.25
5.6.360.0210.00314.23
5.6.350.0060.01213.97
5.6.340.0150.00014.27
5.6.330.0100.00514.02
5.6.320.0190.00613.96
5.6.310.0150.00514.31
5.6.300.0080.01014.27
5.6.290.0280.00514.09
5.6.280.0160.03617.64
5.6.270.0120.01314.42
5.6.260.0060.01213.95
5.6.250.0210.00714.06
5.6.240.0200.00714.00
5.6.230.0200.00013.99
5.6.220.0200.00313.91
5.6.210.0100.04217.52
5.6.200.0030.04516.16
5.6.190.0100.04717.31
5.6.180.0220.03117.28
5.6.170.0200.04017.33
5.6.160.0070.04817.33
5.6.150.0050.02516.05
5.6.140.0100.02716.02
5.6.130.0070.02315.94
5.6.120.0160.03117.38
5.6.110.0090.04417.57
5.6.100.0120.03817.45
5.6.90.0130.04317.33
5.6.80.0100.03817.09
5.6.70.0160.00313.87
5.6.60.0160.01113.70
5.6.50.0230.00313.96
5.6.40.0130.00513.96
5.6.30.0060.01213.96
5.6.20.0220.00414.08
5.6.10.0130.00813.79
5.6.00.0150.01414.03
5.5.380.0140.00513.98
5.5.370.0100.01314.23
5.5.360.0180.00314.30
5.5.350.2200.02317.17
5.5.340.0050.03716.13
5.5.330.0110.04517.02
5.5.320.0160.02817.19
5.5.310.0190.03517.15
5.5.300.0110.02316.04
5.5.290.0100.04415.81
5.5.280.0020.02817.26
5.5.270.0100.04217.32
5.5.260.0070.04517.42
5.5.250.0070.03317.02
5.5.240.0190.03317.15
5.5.230.0150.00713.87
5.5.220.0060.01113.82
5.5.210.0040.01714.20
5.5.200.0060.02014.09
5.5.190.0120.01413.76
5.5.180.0120.00413.71
5.5.170.0160.00613.83
5.5.160.0190.01013.92
5.5.150.0050.01213.55
5.5.140.0130.00313.84
5.5.130.0140.00614.02
5.5.120.0060.01214.06
5.5.110.0150.00313.87
5.5.100.0160.00813.87
5.5.90.0040.01314.16
5.5.80.0160.00414.02
5.5.70.0110.00814.02
5.5.60.0140.01113.86
5.5.50.0230.00914.18
5.5.40.0160.00414.00
5.5.30.0070.01013.82
5.5.20.0110.00814.03
5.5.10.0120.00614.09
5.5.00.0120.00813.67
5.4.450.0420.03915.16
5.4.440.0120.03515.16
5.4.430.0150.02715.01
5.4.420.0150.02514.92
5.4.410.0110.02815.14
5.4.400.0170.02814.68
5.4.390.0130.03114.69
5.4.380.0220.02414.96
5.4.370.0130.03114.89
5.4.360.0050.03514.81
5.4.350.0150.02915.05
5.4.340.0170.03114.96
5.4.330.0110.00410.73
5.4.320.0110.03215.03
5.4.310.0170.03214.97
5.4.300.0090.03415.00
5.4.290.0120.03315.12
5.4.280.0210.02315.00
5.4.270.0160.02514.99
5.4.260.0170.03515.06
5.4.250.0170.03415.03
5.4.240.0140.02714.90
5.4.230.0160.04015.14
5.4.220.0160.02814.79
5.4.210.0070.03614.99
5.4.200.0200.02014.82
5.4.190.0140.02514.74
5.4.180.0090.03114.86
5.4.170.0150.03715.05
5.4.160.0130.02615.05
5.4.150.0220.02114.88
5.4.140.0150.02513.50
5.4.130.0110.02813.54
5.4.120.0110.02613.78
5.4.110.0090.03113.66
5.4.100.0130.02513.67
5.4.90.0190.02213.56
5.4.80.0080.01210.80
5.4.70.0140.00310.86
5.4.60.0110.01210.84
5.4.50.0090.00910.66
5.4.40.0070.01110.55
5.4.30.0110.00410.76
5.4.20.0040.01310.72
5.4.10.0140.01110.85
5.4.00.0130.00010.89
5.3.290.0160.03312.52
5.3.280.0050.04112.35
5.3.270.0070.03412.41
5.3.260.0170.02212.34
5.3.250.0130.02612.41
5.3.240.0080.03412.33
5.3.230.0140.02712.28
5.3.220.0120.02612.27
5.3.210.0150.02612.43
5.3.200.0160.02312.30
5.3.190.0140.02512.32
5.3.180.0050.00810.25
5.3.170.0070.00710.30
5.3.160.0090.00510.32
5.3.150.0000.01410.34
5.3.140.0060.00710.23
5.3.130.0100.00510.05
5.3.120.0060.01210.05
5.3.110.0090.01310.25
5.3.100.0040.00910.25
5.3.90.0040.01110.36
5.3.80.0060.00610.16
5.3.70.0080.00410.32
5.3.60.0080.00810.29
5.3.50.0100.00310.19
5.3.40.0120.00410.05
5.3.30.0050.01010.29
5.3.20.0140.00510.28
5.3.10.0080.00810.00
5.3.00.0100.0079.83
5.2.170.0000.0109.43
5.2.160.0000.0139.43
5.2.150.0150.0009.43
5.2.140.0090.0039.43
5.2.130.0130.0009.43
5.2.120.0040.0049.43
5.2.110.0090.0039.43
5.2.100.0060.0119.43
5.2.90.0090.0049.43
5.2.80.0000.0179.43
5.2.70.0110.0009.43
5.2.60.0090.0079.43
5.2.50.0110.0069.43
5.2.40.0110.0049.43
5.2.30.0000.0099.43
5.2.20.0050.0059.43
5.2.10.0070.0059.43
5.2.00.0090.0039.43
5.1.60.0070.0039.43
5.1.50.0060.0069.43
5.1.40.0050.0039.43
5.1.30.0060.0039.43
5.1.20.0050.0059.43
5.1.10.0030.0089.43
5.1.00.0070.0039.43
5.0.50.0000.0089.43
5.0.40.0030.0069.43
5.0.30.0040.0049.43
5.0.20.0070.0009.43
5.0.10.0110.0009.43
5.0.00.0050.0029.43
4.4.90.0060.0049.43
4.4.80.0050.0089.43
4.4.70.0000.0069.43
4.4.60.0070.0049.43
4.4.50.0040.0119.43
4.4.40.0030.0039.43
4.4.30.0060.0009.43
4.4.20.0030.0039.43
4.4.10.0040.0049.43
4.4.00.0030.0039.43
4.3.110.0030.0079.43
4.3.100.0110.0029.43
4.3.90.0050.0009.43
4.3.80.0000.0069.43
4.3.70.0030.0039.43
4.3.60.0000.0049.43
4.3.50.0050.0009.43
4.3.40.0060.0009.43
4.3.30.0000.0059.43
4.3.20.0000.0139.43
4.3.10.0000.0069.43
4.3.00.0020.0029.43

preferences:
35.79 ms | 401 KiB | 5 Q