3v4l.org

run code in 300+ PHP versions simultaneously
<?php const CIPHER = MCRYPT_RIJNDAEL_128; const KEY_BYTE_SIZE = 16; const CIPHER_MODE = 'cbc'; const HASH_FUNCTION = 'sha256'; const MAC_BYTE_SIZE = 32; const ENCRYPTION_INFO = 'PIPS|KeyForEncryption'; const AUTHENTICATION_INFO = 'PIPS|KeyForAuthentication'; $x = hash_hmac("sha256", "blah", "It is a kitten", false); print $x; ?>

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.0160.00018.68
8.3.50.0260.00822.11
8.3.40.0180.00318.83
8.3.30.0070.00718.84
8.3.20.0140.00420.34
8.3.10.0080.00023.61
8.3.00.0070.00419.25
8.2.180.0160.00718.36
8.2.170.0100.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00317.63
8.2.110.0090.00022.21
8.2.100.0030.00717.80
8.2.90.0030.00619.09
8.2.80.0030.00617.97
8.2.70.0030.00517.50
8.2.60.0070.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00419.45
8.2.30.0070.00020.69
8.2.20.0050.00317.66
8.2.10.0000.00718.12
8.2.00.0040.00418.11
8.1.280.0040.01125.92
8.1.270.0030.00524.02
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.51
8.1.230.0070.00417.68
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00718.79
8.1.160.0050.00321.97
8.1.150.0060.00318.72
8.1.140.0040.00419.42
8.1.130.0040.00417.57
8.1.120.0040.00417.46
8.1.110.0040.00417.43
8.1.100.0000.00717.31
8.1.90.0000.00817.34
8.1.80.0060.00317.45
8.1.70.0030.00317.28
8.1.60.0030.00617.57
8.1.50.0040.00417.36
8.1.40.0000.01017.41
8.1.30.0030.00517.66
8.1.20.0000.00817.62
8.1.10.0030.00617.49
8.1.00.0000.00817.42
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0030.00318.31
8.0.270.0020.00517.23
8.0.260.0030.00317.11
8.0.250.0000.00716.88
8.0.240.0040.00416.88
8.0.230.0030.00616.93
8.0.220.0040.00416.88
8.0.210.0030.00516.96
8.0.200.0000.00616.88
8.0.190.0030.00617.04
8.0.180.0050.00316.93
8.0.170.0080.00016.96
8.0.160.0040.00416.95
8.0.150.0040.00416.79
8.0.140.0000.00716.81
8.0.130.0050.00013.36
8.0.120.0020.00516.93
8.0.110.0040.00416.88
8.0.100.0040.00417.02
8.0.90.0000.00816.85
8.0.80.0080.00816.93
8.0.70.0050.00216.78
8.0.60.0000.00716.94
8.0.50.0070.00017.05
8.0.30.0120.00817.07
8.0.20.0090.01017.40
8.0.10.0070.00016.90
8.0.00.0100.01216.79
7.4.330.0000.00515.08
7.4.320.0060.00016.56
7.4.300.0040.00416.51
7.4.290.0040.00416.63
7.4.280.0000.00716.40
7.4.270.0000.00716.65
7.4.260.0070.00016.61
7.4.250.0040.00416.56
7.4.240.0000.00716.54
7.4.230.0070.00016.70
7.4.220.0100.01016.54
7.4.210.0100.00616.52
7.4.200.0070.00016.65
7.4.160.0080.00816.27
7.4.150.0070.01017.40
7.4.140.0120.00817.86
7.4.130.0120.00916.41
7.4.120.0100.00816.50
7.4.110.0110.01416.53
7.4.100.0100.01616.66
7.4.90.0070.01416.54
7.4.80.0110.00519.39
7.4.70.0090.01216.60
7.4.60.0060.00916.65
7.4.50.0060.00316.54
7.4.40.0130.00916.66
7.4.30.0030.01716.56
7.4.00.0110.00414.98
7.3.330.0000.00613.31
7.3.320.0000.00613.19
7.3.310.0000.00616.32
7.3.300.0000.00716.33
7.3.290.0080.00016.33
7.3.280.0050.01116.36
7.3.270.0090.00917.40
7.3.260.0100.01016.68
7.3.250.0120.00716.39
7.3.240.0140.00316.44
7.3.230.0090.00916.39
7.3.210.0100.00716.32
7.3.200.0080.00816.29
7.3.190.0090.00916.30
7.3.180.0100.01016.38
7.3.170.0180.00316.27
7.3.160.0180.00316.45
7.2.330.0060.01116.58
7.2.320.0070.01316.36
7.2.310.0120.00416.74
7.2.300.0060.01116.64
7.2.290.0070.01116.63
7.2.60.0030.01016.93
7.2.00.0000.01719.13
7.1.200.0070.00715.54
7.1.100.0090.00318.00
7.1.70.0030.00516.91
7.1.60.0140.01019.43
7.1.50.0040.01516.90
7.1.00.0030.07722.36
7.0.200.0450.00314.27
7.0.60.0230.05319.93
7.0.50.0100.06717.88
7.0.40.0100.05019.91
7.0.30.0330.04320.20
7.0.20.0330.07320.20
7.0.10.0100.09020.16
7.0.00.0070.06719.99
5.6.280.0000.03721.13
5.6.210.0030.04020.75
5.6.200.0030.04018.13
5.6.190.0070.05020.77
5.6.180.0170.06720.77
5.6.170.0200.08720.71
5.6.160.0100.05720.70
5.6.150.0000.07718.12
5.6.140.0100.03718.11
5.6.130.0000.06718.22
5.6.120.0030.09020.99
5.6.110.0000.07720.98
5.6.100.0070.05020.97
5.6.90.0170.06321.12
5.6.80.0030.04020.36
5.5.350.0270.08020.44
5.5.340.0100.07717.93
5.5.330.0070.03720.47
5.5.320.0230.04020.18
5.5.310.0270.07720.29
5.5.300.0070.04717.97
5.5.290.0130.07718.02
5.5.280.0130.07320.87
5.5.270.0100.08020.64
5.5.260.0070.04320.76
5.5.250.0070.03720.46
5.5.240.0070.07720.14
5.4.450.0330.07319.41
5.4.440.0330.07319.45
5.4.430.0300.06019.25
5.4.420.0270.03719.11
5.4.410.0330.04719.32
5.4.400.0330.06719.13
5.4.390.0300.07318.94
5.4.380.0370.06719.09
5.4.370.0370.07018.88
5.4.360.0300.06319.19
5.4.350.0300.07319.16
5.4.340.0330.05719.26
5.4.320.0300.06019.22
5.4.310.0430.06019.09
5.4.300.0230.04718.78
5.4.290.0330.07019.13
5.4.280.0300.04319.13
5.4.270.0400.05319.22
5.4.260.0300.06719.21
5.4.250.0200.04719.07
5.4.240.0300.04019.05
5.4.230.0230.04719.13
5.4.220.0230.04719.12
5.4.210.0300.03318.93
5.4.200.0400.04719.07
5.4.190.0170.04319.21
5.4.180.0330.06719.22
5.4.170.0270.05719.12
5.4.160.0430.03719.07
5.4.150.0330.05019.22
5.4.140.0430.06016.28
5.4.130.0230.05716.30
5.4.120.0270.04316.38
5.4.110.0270.03716.47
5.4.100.0330.05716.26
5.4.90.0300.04016.28

preferences:
54.68 ms | 401 KiB | 5 Q