3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo base64_encode(hash_hmac('sha1', 'test123', 'secret', true));

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.0140.00716.48
8.3.50.0120.00722.08
8.3.40.0040.01118.73
8.3.30.0070.00719.11
8.3.20.0050.00320.22
8.3.10.0030.00523.66
8.3.00.0080.00019.13
8.2.180.0120.00318.16
8.2.170.0150.00022.96
8.2.160.0100.00720.38
8.2.150.0050.00324.18
8.2.140.0100.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00022.25
8.2.110.0070.00321.03
8.2.100.0130.00017.78
8.2.90.0000.00919.13
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0090.00318.07
8.2.40.0040.00419.76
8.2.30.0040.00419.85
8.2.20.0000.00817.71
8.2.10.0070.00017.89
8.2.00.0030.00717.48
8.1.280.0070.00725.92
8.1.270.0040.00423.84
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.07
8.1.230.0080.00318.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00316.88
8.1.190.0070.00017.40
8.1.180.0040.00818.76
8.1.170.0090.00020.30
8.1.160.0070.00021.93
8.1.150.0000.00718.42
8.1.140.0060.00317.23
8.1.130.0000.00717.73
8.1.120.0000.00717.32
8.1.110.0000.00717.30
8.1.100.0000.00717.20
8.1.90.0040.00417.32
8.1.80.0040.00417.30
8.1.70.0000.00717.23
8.1.60.0060.00317.45
8.1.50.0040.00417.30
8.1.40.0040.00417.29
8.1.30.0060.00317.48
8.1.20.0000.00917.61
8.1.10.0000.00717.34
8.1.00.0060.00317.28
8.0.300.0000.00818.77
8.0.290.0030.00317.04
8.0.280.0000.00718.25
8.0.270.0000.00716.81
8.0.260.0000.00717.14
8.0.250.0020.00516.91
8.0.240.0030.00316.80
8.0.230.0000.00716.82
8.0.220.0060.00016.76
8.0.210.0000.00616.80
8.0.200.0000.00716.82
8.0.190.0050.00216.75
8.0.180.0060.00616.50
8.0.170.0000.00716.75
8.0.160.0000.00716.73
8.0.150.0050.00216.66
8.0.140.0040.00416.71
8.0.130.0000.00613.15
8.0.120.0000.00816.61
8.0.110.0000.00816.72
8.0.100.0000.00716.64
8.0.90.0040.00416.59
8.0.80.0030.01216.72
8.0.70.0000.00816.71
8.0.60.0000.00816.72
8.0.50.0000.00716.66
8.0.30.0050.01417.16
8.0.20.0110.00917.40
8.0.10.0040.00416.85
8.0.00.0160.00416.68
7.4.330.0050.00015.00
7.4.320.0000.00616.47
7.4.300.0030.00316.37
7.4.290.0000.00716.45
7.4.280.0060.00316.36
7.4.270.0070.00016.48
7.4.260.0030.00316.47
7.4.250.0040.00416.34
7.4.240.0040.00316.44
7.4.230.0030.00316.25
7.4.220.0080.00816.57
7.4.210.0090.00716.36
7.4.200.0000.00716.45
7.4.190.0080.00016.33
7.4.160.0090.00916.27
7.4.150.0100.01017.40
7.4.140.0100.00917.86
7.4.130.0070.01016.54
7.4.120.0080.01116.41
7.4.110.0100.00716.19
7.4.100.0130.00616.32
7.4.90.0110.00716.30
7.4.80.0120.00619.39
7.4.70.0070.01416.49
7.4.60.0100.00516.33
7.4.50.0030.00516.00
7.4.40.0110.00722.77
7.4.30.0030.01316.50
7.4.00.0090.00714.64
7.3.330.0050.00013.04
7.3.320.0050.00012.81
7.3.310.0030.00516.09
7.3.300.0030.00316.16
7.3.290.0110.00316.10
7.3.280.0110.00416.14
7.3.270.0120.00617.40
7.3.260.0180.00016.29
7.3.250.0050.01516.19
7.3.240.0110.01116.38
7.3.230.0080.00816.39
7.3.210.0030.01316.37
7.3.200.0120.00619.39
7.3.190.0170.00416.43
7.3.180.0090.00616.23
7.3.170.0110.00416.30
7.3.160.0030.01316.14
7.3.120.0070.00714.64
7.3.110.0080.01014.63
7.3.100.0050.00914.76
7.3.90.0050.00914.89
7.3.80.0020.00814.83
7.3.70.0080.00514.77
7.3.60.0020.00914.75
7.3.50.0070.00714.79
7.3.40.0030.00714.76
7.3.30.0040.00514.61
7.3.20.0080.00516.56
7.3.10.0050.00516.52
7.3.00.0110.00416.51
7.2.330.0120.00616.31
7.2.320.0130.00916.34
7.2.310.0070.01016.60
7.2.300.0090.00916.66
7.2.290.0100.00716.55
7.2.250.0100.00814.95
7.2.240.0020.01714.82
7.2.230.0090.00514.76
7.2.220.0060.00614.88
7.2.210.0020.01215.02
7.2.200.0020.01414.83
7.2.190.0060.00514.80
7.2.180.0060.00814.98
7.2.170.0050.01214.86
7.2.60.0030.01416.72
7.2.00.0070.01019.38
7.1.330.0080.00615.54
7.1.320.0030.01015.72
7.1.310.0050.00515.60
7.1.300.0110.00115.69
7.1.290.0090.00515.54
7.1.280.0060.00515.72
7.1.270.0040.00615.55
7.1.260.0050.00815.69
7.1.200.0040.00715.53
7.1.100.0080.00318.05
7.1.70.0000.00816.91
7.1.60.0110.01419.46
7.1.50.0070.01516.49
7.1.00.0030.07722.30
7.0.200.0040.00716.65
7.0.140.0070.07022.07
7.0.60.0070.06720.00
7.0.50.0170.07017.88
7.0.40.0230.07020.05
7.0.30.0270.03720.13
7.0.20.0330.06320.32
7.0.10.0030.09320.21
7.0.00.0070.07020.31
5.6.280.0030.06721.11
5.6.210.0070.07720.54
5.6.200.0030.05318.11
5.6.190.0100.08320.41
5.6.180.0200.05720.27
5.6.170.0130.06020.54
5.6.160.0100.06020.47
5.6.150.0030.04018.18
5.6.140.0000.04318.15
5.6.130.0100.07318.11
5.6.120.0070.03721.14
5.6.110.0070.08321.12
5.6.100.0030.09721.12
5.6.90.0100.08320.94
5.6.80.0100.06720.34
5.6.70.0030.07720.36
5.5.350.0200.07020.36
5.5.340.0030.04317.96
5.5.330.0100.03720.29
5.5.320.0370.07320.20
5.5.310.0200.04320.21
5.5.300.0000.04017.89
5.5.290.0100.07317.92
5.5.280.0030.08320.79
5.5.270.0100.07720.88
5.5.260.0100.08320.95
5.5.250.0030.05020.61
5.5.240.0230.06320.03
5.4.450.0830.06019.57
5.4.440.0470.06019.51
5.4.430.0070.06719.48
5.4.420.0730.04319.62
5.4.410.0970.06019.10
5.4.400.0730.06718.77
5.4.390.0800.07019.00
5.4.380.0100.06318.77
5.4.370.0300.05318.56
5.4.360.0370.04318.44
5.4.350.0370.05018.71
5.4.340.0300.05318.40
5.4.320.0050.03712.45
5.4.310.0070.03912.45
5.4.300.0040.03812.45
5.4.290.0100.05812.43
5.4.280.0080.05912.33
5.4.270.0120.06012.33
5.4.260.0170.06212.33
5.4.250.0120.05412.33
5.4.240.0120.05512.33
5.4.230.0070.06212.32
5.4.220.0120.05912.32
5.4.210.0140.10612.32
5.4.200.0170.09312.32
5.4.190.0240.08812.32
5.4.180.0210.06212.32
5.4.170.0180.08612.33
5.4.160.0180.07412.32
5.4.150.0140.06812.32
5.4.140.0180.11812.00
5.4.130.0060.07911.99
5.4.120.0180.06711.95
5.4.110.0130.07011.95
5.4.100.0160.06111.95
5.4.90.0150.09211.95
5.4.80.0110.07311.95
5.4.70.0120.12411.95
5.4.60.0190.12911.94
5.4.50.0340.11911.95
5.4.40.0210.10611.93
5.4.30.0190.10811.93
5.4.20.0090.11611.93
5.4.10.0290.09411.93
5.4.00.0170.09911.42
5.3.290.0050.04012.80
5.3.280.0180.10212.71
5.3.270.0420.13012.72
5.3.260.0230.13412.72
5.3.250.0190.13812.72
5.3.240.0170.12312.72
5.3.230.0240.12412.71
5.3.220.0140.08012.68
5.3.210.0220.14212.68
5.3.200.0300.14212.68
5.3.190.0190.11012.68
5.3.180.0000.08212.68
5.3.170.0080.05712.67
5.3.160.0110.05212.67
5.3.150.0110.05412.67
5.3.140.0130.05412.66
5.3.130.0090.06612.65
5.3.120.0100.07012.66
5.3.110.0230.10612.66
5.3.100.0260.09312.12
5.3.90.0180.10912.08
5.3.80.0250.09112.08
5.3.70.0320.09712.07
5.3.60.0220.10512.07
5.3.50.0210.07812.00
5.3.40.0150.10612.00
5.3.30.0140.04511.94
5.3.20.0140.09511.72
5.3.10.0270.09011.69
5.3.00.0160.07811.68
5.2.170.0100.0769.18
5.2.160.0150.0779.18
5.2.150.0220.0699.18
5.2.140.0100.0689.18
5.2.130.0070.0529.14
5.2.120.0070.0439.13
5.2.110.0100.0459.14
5.2.100.0040.0449.13
5.2.90.0120.0339.14
5.2.80.0100.0579.13
5.2.70.0050.0349.13
5.2.60.0110.0609.09
5.2.50.0040.0359.05
5.2.40.0020.0349.03
5.2.30.0040.0359.01
5.2.20.0070.0429.00
5.2.10.0150.0708.91
5.2.00.0070.0348.77
5.1.60.0050.0298.06
5.1.50.0080.0308.05
5.1.40.0070.0298.04
5.1.30.0060.0298.39
5.1.20.0090.0388.41
5.1.10.0080.0368.14
5.1.00.0080.0518.14
5.0.50.0050.0286.62
5.0.40.0120.0386.47
5.0.30.0110.0776.29
5.0.20.0050.0286.26
5.0.10.0110.0446.23
5.0.00.0110.0526.22
4.4.90.0160.0344.78
4.4.80.0080.0324.75
4.4.70.0110.0354.75
4.4.60.0050.0224.75
4.4.50.0110.0404.77
4.4.40.0110.0484.71
4.4.30.0050.0234.76
4.4.20.0050.0334.85
4.4.10.0050.0364.85
4.4.00.0100.0314.76
4.3.110.0120.0414.67
4.3.100.0060.0154.67
4.3.90.0010.0174.63
4.3.80.0010.0274.59
4.3.70.0050.0154.63
4.3.60.0090.0434.63
4.3.50.0110.0444.63
4.3.40.0080.0504.54
4.3.30.0040.0283.27
4.3.20.0050.0253.25
4.3.10.0030.0293.21
4.3.00.0300.01310.54

preferences:
40.84 ms | 401 KiB | 5 Q