3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'POST\n/auth/token\nproject=xRxyG0P5&ai=95335e7caf2f6a92&tm=1513574899'; $key = 'HmacSHA256'; $signature = String2Hex(hash_hmac("sha256", $str, $key, true)); 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.0040.01218.66
8.3.50.0090.01218.19
8.3.40.0070.00718.79
8.3.30.0150.00318.81
8.3.20.0090.00021.91
8.3.10.0070.00023.30
8.3.00.0000.00821.85
8.2.180.0160.01016.88
8.2.170.0110.00422.96
8.2.160.0090.00621.93
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00220.35
8.2.120.0030.00626.35
8.2.110.0030.00621.00
8.2.100.0120.00017.72
8.2.90.0000.00818.15
8.2.80.0000.00818.08
8.2.70.0040.00417.75
8.2.60.0090.00017.63
8.2.50.0000.00817.63
8.2.40.0070.00020.66
8.2.30.0000.00719.34
8.2.20.0000.00718.14
8.2.10.0000.00918.13
8.2.00.0000.00818.19
8.1.280.0130.00325.92
8.1.270.0040.00422.05
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00322.55
8.1.230.0080.00320.84
8.1.220.0090.00017.76
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0080.00018.59
8.1.160.0000.00718.76
8.1.150.0040.00418.77
8.1.140.0000.00819.09
8.1.130.0000.00717.80
8.1.120.0030.00617.43
8.1.110.0040.00717.30
8.1.100.0030.00517.27
8.1.90.0000.00817.31
8.1.80.0040.00417.40
8.1.70.0030.00517.32
8.1.60.0030.00517.49
8.1.50.0040.00417.42
8.1.40.0080.00017.41
8.1.30.0040.00417.68
8.1.20.0040.00417.63
8.1.10.0020.00517.48
8.1.00.0040.00417.51
8.0.300.0000.00719.89
8.0.290.0050.00316.88
8.0.280.0030.00318.52
8.0.270.0070.00017.19
8.0.260.0070.00016.98
8.0.250.0000.00717.07
8.0.240.0000.00716.99
8.0.230.0000.00716.98
8.0.220.0000.00716.92
8.0.210.0040.00416.93
8.0.200.0030.00316.86
8.0.190.0050.00316.82
8.0.180.0070.00016.97
8.0.170.0030.00616.89
8.0.160.0070.00416.85
8.0.150.0040.00416.86
8.0.140.0040.00416.91
8.0.130.0060.00013.32
8.0.120.0040.00416.88
8.0.110.0000.00816.90
8.0.100.0000.00716.96
8.0.90.0000.00716.95
8.0.80.0100.00716.87
8.0.70.0040.00416.86
8.0.60.0040.00416.89
8.0.50.0040.00416.97
8.0.30.0130.00717.20
8.0.20.0090.01017.41
8.0.10.0040.00417.00
8.0.00.0100.00816.69
7.4.330.0020.00216.74
7.4.320.0040.00416.45
7.4.300.0040.00416.57
7.4.290.0000.00916.61
7.4.280.0000.00916.59
7.4.270.0070.00016.44
7.4.260.0050.00216.61
7.4.250.0040.00416.42
7.4.240.0000.00716.63
7.4.230.0050.00316.52
7.4.220.0000.00716.62
7.4.210.0110.00316.46
7.4.200.0050.00216.68
7.4.160.0070.01016.54
7.4.150.0070.01317.40
7.4.140.0090.01017.86
7.4.130.0090.00916.52
7.4.120.0100.01016.43
7.4.110.0140.01116.66
7.4.100.0060.01116.50
7.4.90.0040.01716.71
7.4.80.0100.00619.39
7.4.70.0090.00916.79
7.4.60.0090.00616.57
7.4.50.0090.00616.18
7.4.40.0070.01016.44
7.4.30.0130.00316.57
7.4.00.0030.01014.92
7.3.330.0050.00013.30
7.3.320.0000.00613.36
7.3.310.0000.00716.29
7.3.300.0000.00716.42
7.3.290.0040.00916.42
7.3.280.0080.00816.40
7.3.270.0100.00717.40
7.3.260.0080.01116.42
7.3.250.0100.00816.46
7.3.240.0120.00816.56
7.3.230.0080.00816.66
7.3.210.0000.02016.32
7.3.200.0080.00816.42
7.3.190.0050.01016.42
7.3.180.0120.00616.50
7.3.170.0100.00616.46
7.3.160.0060.01016.51
7.3.10.0080.00316.53
7.3.00.0080.00516.52
7.2.330.0170.00016.88
7.2.320.0000.02116.55
7.2.310.0100.00616.68
7.2.300.0170.00716.73
7.2.290.0110.00616.78
7.2.130.0060.00917.02
7.2.120.0070.00317.12
7.2.110.0000.01416.93
7.2.100.0000.01416.91
7.2.90.0040.00816.78
7.2.80.0000.01416.76
7.2.70.0000.01116.84
7.2.60.0050.00716.99
7.2.50.0000.01217.11
7.2.40.0080.00816.67
7.2.30.0060.00316.95
7.2.20.0040.00717.02
7.2.10.0080.00817.11
7.2.00.0120.00517.62
7.1.250.0030.01015.90
7.1.200.0030.01015.90
7.1.120.0120.00917.02
7.1.110.0120.00916.53
7.1.100.0150.00616.63
7.1.90.0150.00916.18
7.1.80.0140.00716.31
7.1.70.0100.01015.51
7.1.60.0180.01533.16
7.1.50.0250.00933.10
7.1.40.1180.02032.55
7.1.30.0260.01132.67
7.1.20.0230.01632.92
7.1.10.0130.00914.78
7.1.00.0170.00314.74

preferences:
49.31 ms | 400 KiB | 5 Q