3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'POST\n/auth/token\nproject=xRxyG0P5&ai=95335e7caf2f6a92&tm=1513574899'; $key = 'e68c202f73c54468b9822c843b320d34'; $signature = hash_hmac("sha256", $str, $key, false); function String2Hex($string){ $hex=''; for ($i=0; $i < strlen($string); $i++){ $hex .= dechex(ord($string[$i])); } return $hex; } echo $signature;exit; ?>

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.0180.00016.75
8.3.50.0110.00417.98
8.3.40.0040.01118.84
8.3.30.0060.01618.70
8.3.20.0040.00421.80
8.3.10.0050.00323.65
8.3.00.0000.00721.95
8.2.180.0130.00416.88
8.2.170.0070.00722.96
8.2.160.0080.00522.15
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00020.39
8.2.120.0050.00326.35
8.2.110.0030.00722.20
8.2.100.0090.00317.91
8.2.90.0060.00318.79
8.2.80.0030.00517.97
8.2.70.0080.00017.50
8.2.60.0000.00817.80
8.2.50.0040.00418.22
8.2.40.0040.00420.23
8.2.30.0050.00219.25
8.2.20.0070.00018.11
8.2.10.0000.00818.03
8.2.00.0040.00418.19
8.1.280.0140.00725.92
8.1.270.0080.00022.23
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.66
8.1.230.0070.00417.68
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0070.00317.25
8.1.190.0070.00317.10
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0050.00318.84
8.1.150.0000.00718.74
8.1.140.0000.00719.11
8.1.130.0030.00317.85
8.1.120.0000.00817.42
8.1.110.0000.00917.39
8.1.100.0000.00717.30
8.1.90.0000.00817.45
8.1.80.0040.00417.42
8.1.70.0030.00317.31
8.1.60.0040.00417.47
8.1.50.0070.00017.56
8.1.40.0000.00817.47
8.1.30.0040.00417.54
8.1.20.0040.00417.61
8.1.10.0040.00417.41
8.1.00.0000.00717.34
8.0.300.0000.00818.77
8.0.290.0050.00316.75
8.0.280.0030.00318.39
8.0.270.0000.00717.16
8.0.260.0030.00316.77
8.0.250.0030.00317.00
8.0.240.0040.00416.93
8.0.230.0070.00016.98
8.0.220.0030.00316.88
8.0.210.0030.00316.82
8.0.200.0040.00417.03
8.0.190.0040.00416.96
8.0.180.0050.00216.94
8.0.170.0030.00616.79
8.0.160.0040.00716.84
8.0.150.0030.00316.89
8.0.140.0000.00716.81
8.0.130.0000.00513.29
8.0.120.0000.00716.76
8.0.110.0080.00016.85
8.0.100.0040.00416.72
8.0.90.0040.00416.74
8.0.80.0090.00616.88
8.0.70.0040.00416.99
8.0.60.0040.00416.86
8.0.50.0040.00416.85
8.0.30.0090.00817.05
8.0.20.0090.01017.40
8.0.10.0040.00416.86
8.0.00.0160.00216.87
7.4.330.0000.00516.83
7.4.320.0030.00316.46
7.4.300.0030.00316.52
7.4.290.0030.00616.50
7.4.280.0030.00616.60
7.4.270.0000.00716.61
7.4.260.0030.00316.36
7.4.250.0030.00316.45
7.4.240.0040.00416.58
7.4.230.0030.00316.65
7.4.220.0000.00716.34
7.4.210.0000.01416.58
7.4.200.0000.00716.44
7.4.160.0120.00516.52
7.4.150.0090.00917.40
7.4.140.0140.00417.86
7.4.130.0120.00916.49
7.4.120.0110.01016.49
7.4.110.0100.01016.63
7.4.100.0110.00616.56
7.4.90.0110.00516.48
7.4.80.0100.00619.39
7.4.70.0100.00716.50
7.4.60.0060.00916.39
7.4.50.0070.01016.48
7.4.40.0060.01216.29
7.4.30.0060.00916.55
7.4.00.0100.00714.82
7.3.330.0000.00513.32
7.3.320.0060.00013.30
7.3.310.0000.00716.34
7.3.300.0030.00316.26
7.3.290.0070.00916.30
7.3.280.0070.01216.32
7.3.270.0130.00617.40
7.3.260.0120.00816.32
7.3.250.0130.00716.34
7.3.240.0110.01116.42
7.3.230.0110.00516.64
7.3.210.0120.00316.42
7.3.200.0120.00916.38
7.3.190.0060.01016.35
7.3.180.0140.00716.58
7.3.170.0070.01016.35
7.3.160.0100.00716.29
7.2.330.0140.00416.49
7.2.320.0120.00916.68
7.2.310.0030.01316.64
7.2.300.0120.00616.78
7.2.290.0070.01016.69
7.2.60.0060.00316.98
7.2.00.0140.01017.79
7.1.200.0000.01115.79
7.1.120.0160.00716.96
7.1.110.0090.01416.12
7.1.100.0170.01016.45
7.1.90.0030.01018.23
7.1.80.0060.00617.93
7.1.70.0000.01217.02
7.1.60.0230.00835.01
7.1.50.0080.01734.89
7.1.40.0190.00634.51
7.1.30.0160.00834.53
7.1.20.0240.01434.68
7.1.10.0090.00616.55
7.1.00.0050.01316.71

preferences:
62.84 ms | 401 KiB | 5 Q