3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'POST\n/auth/token\nproject=xRxyG0P5&ai=95335e7caf2f6a92&tm=1513574899'; $key = 'e68c202f73c54468b9822c843b320d34'; $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.0150.00416.75
8.3.50.0090.00918.41
8.3.40.0120.00318.96
8.3.30.0150.00318.82
8.3.20.0080.00021.52
8.3.10.0120.00323.66
8.3.00.0040.00421.73
8.2.180.0110.00816.75
8.2.170.0110.00422.96
8.2.160.0070.00721.87
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00022.25
8.2.120.0000.00826.35
8.2.110.0040.00422.08
8.2.100.0090.00317.84
8.2.90.0000.00818.02
8.2.80.0000.00817.97
8.2.70.0040.00418.15
8.2.60.0000.00818.16
8.2.50.0000.00818.10
8.2.40.0090.00020.64
8.2.30.0040.00419.32
8.2.20.0040.00418.07
8.2.10.0050.00318.26
8.2.00.0050.00218.06
8.1.280.0080.01225.92
8.1.270.0080.00023.77
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.51
8.1.230.0070.00720.85
8.1.220.0030.00621.02
8.1.210.0150.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0000.00818.43
8.1.160.0000.00718.71
8.1.150.0040.00418.71
8.1.140.0030.00319.11
8.1.130.0000.00717.68
8.1.120.0030.00317.43
8.1.110.0000.01017.40
8.1.100.0060.00317.29
8.1.90.0060.00317.46
8.1.80.0000.00717.36
8.1.70.0000.00717.27
8.1.60.0080.00017.59
8.1.50.0040.00417.50
8.1.40.0070.00017.57
8.1.30.0040.00417.59
8.1.20.0040.00417.68
8.1.10.0040.00417.60
8.1.00.0040.00417.56
8.0.300.0000.00722.07
8.0.290.0000.00816.75
8.0.280.0000.00818.46
8.0.270.0000.00817.28
8.0.260.0030.00316.80
8.0.250.0040.00217.02
8.0.240.0030.00316.93
8.0.230.0040.00416.90
8.0.220.0030.00316.91
8.0.210.0000.00716.95
8.0.200.0030.00316.94
8.0.190.0040.00416.98
8.0.180.0030.00316.79
8.0.170.0000.00816.85
8.0.160.0040.00416.96
8.0.150.0040.00416.80
8.0.140.0030.00316.75
8.0.130.0000.00613.29
8.0.120.0060.00316.85
8.0.110.0040.00416.91
8.0.100.0030.00516.93
8.0.90.0070.00016.72
8.0.80.0130.00316.97
8.0.70.0000.00716.78
8.0.60.0070.00016.95
8.0.50.0050.00316.84
8.0.30.0110.00717.15
8.0.20.0100.01017.40
8.0.10.0040.00416.93
8.0.00.0100.00716.72
7.4.330.0050.00016.79
7.4.320.0050.00216.45
7.4.300.0030.00316.46
7.4.290.0040.00716.57
7.4.280.0030.00616.50
7.4.270.0030.00316.43
7.4.260.0000.00716.46
7.4.250.0040.00416.43
7.4.240.0030.00316.62
7.4.230.0040.00416.62
7.4.220.0040.00416.50
7.4.210.0030.01016.71
7.4.200.0000.00716.54
7.4.160.0070.01116.43
7.4.150.0060.01817.40
7.4.140.0100.00917.86
7.4.130.0110.01116.62
7.4.120.0060.01216.58
7.4.110.0110.00716.50
7.4.100.0110.00816.63
7.4.90.0140.00416.43
7.4.80.0100.00619.39
7.4.70.0150.00616.46
7.4.60.0030.01416.64
7.4.50.0040.01116.70
7.4.40.0140.00316.63
7.4.30.0130.00316.75
7.4.10.0060.01215.13
7.4.00.0100.00815.12
7.3.330.0000.00513.42
7.3.320.0060.00013.29
7.3.310.0030.00316.33
7.3.300.0040.00316.38
7.3.290.0100.00616.43
7.3.280.0060.01116.39
7.3.270.0090.01217.40
7.3.260.0100.00916.34
7.3.250.0090.01116.41
7.3.240.0100.00916.48
7.3.230.0120.00616.40
7.3.210.0080.00816.45
7.3.200.0100.00616.28
7.3.190.0110.00416.33
7.3.180.0070.01016.57
7.3.170.0100.00616.68
7.3.160.0100.00716.54
7.3.130.0080.01115.13
7.3.120.0040.01414.70
7.3.110.0130.00615.04
7.3.100.0000.01114.88
7.3.90.0030.00714.86
7.3.80.0040.00714.88
7.3.70.0070.00714.85
7.3.60.0030.00915.00
7.3.50.0040.01414.89
7.3.40.0070.00314.79
7.3.30.0000.01514.88
7.3.20.0070.00416.85
7.3.10.0100.00516.75
7.3.00.0090.00616.75
7.2.330.0150.00316.82
7.2.320.0100.01016.56
7.2.310.0090.00616.43
7.2.300.0030.01516.56
7.2.290.0110.00816.66
7.2.260.0070.01314.92
7.2.250.0070.01315.02
7.2.240.0060.00615.06
7.2.230.0070.01015.16
7.2.220.0090.00615.34
7.2.210.0060.00314.84
7.2.200.0030.00915.11
7.2.190.0030.01314.74
7.2.180.0120.00315.23
7.2.170.0040.00415.28
7.2.160.0000.01615.02
7.2.150.0070.00716.75
7.2.140.0040.00416.92
7.2.130.0000.01317.00
7.2.120.0020.01316.94
7.2.110.0090.00416.88
7.2.100.0070.00716.99
7.2.90.0050.01116.86
7.2.80.0080.00517.02
7.2.70.0080.00317.01
7.2.60.0070.00616.98
7.2.50.0030.01216.85
7.2.40.0060.00716.87
7.2.30.0050.01117.08
7.2.20.0080.00516.98
7.2.10.0070.00616.84
7.2.00.0130.00717.36
7.1.330.0070.00415.78
7.1.320.0120.00915.78
7.1.310.0040.01115.59
7.1.300.0090.00315.78
7.1.290.0060.00615.81
7.1.280.0060.00615.81
7.1.270.0060.00315.98
7.1.260.0040.01115.82
7.1.250.0040.00515.86
7.1.240.0000.00915.75
7.1.230.0060.00915.72
7.1.220.0070.00716.00
7.1.210.0110.00315.66
7.1.200.0060.00515.58
7.1.190.0070.00715.91
7.1.180.0030.01315.81
7.1.170.0060.00615.81
7.1.160.0000.01215.97
7.1.150.0030.01515.74
7.1.140.0000.01115.75
7.1.130.0060.00615.74
7.1.120.0070.01216.47
7.1.110.0100.00816.17
7.1.100.0100.00715.97
7.1.90.0100.00416.07
7.1.80.0070.01215.94
7.1.70.0130.00615.50
7.1.60.0180.00724.49
7.1.50.0160.00524.54
7.1.40.0170.00624.04
7.1.30.0160.00724.10
7.1.20.0190.00724.31
7.1.10.0080.01215.36
7.1.00.0130.00315.46
7.0.330.0070.00715.43
7.0.320.0060.01015.43
7.0.310.0040.01215.25
7.0.300.0030.00915.55
7.0.290.0030.01015.45
7.0.280.0040.00815.57
7.0.270.0060.00615.39
7.0.260.0070.01015.52
7.0.250.0030.00815.29
7.0.240.0070.00715.53
7.0.230.0030.01015.51
7.0.220.0100.00315.40
7.0.210.0040.00415.63
7.0.200.0030.00715.42
7.0.190.0030.00915.24
7.0.180.0040.00415.26
7.0.170.0030.00915.58
7.0.160.0000.01515.48
7.0.150.0000.01215.14
7.0.140.0090.00615.65
7.0.130.0040.00815.38
7.0.120.0060.00615.49
7.0.110.0070.00715.59
7.0.100.0030.01015.51
7.0.90.0070.00715.55
7.0.80.0000.01515.56
7.0.70.0000.01115.60
7.0.60.0030.01015.21
7.0.50.0070.00715.29
7.0.40.0070.00413.76
7.0.30.0060.00613.76
7.0.20.0030.01013.76
7.0.10.0060.00613.76
7.0.00.0030.00613.76
5.6.400.0000.01513.97
5.6.390.0090.00614.33
5.6.380.0040.01114.68
5.6.370.0070.00714.18
5.6.360.0000.01114.42
5.6.350.0060.01014.66
5.6.340.0100.00314.44
5.6.330.0040.00414.37
5.6.320.0120.00314.34
5.6.310.0070.01114.14
5.6.300.0060.00914.83
5.6.290.0060.00314.74
5.6.280.0100.00714.50
5.6.270.0060.00614.15
5.6.260.0060.01014.38
5.6.250.0070.00714.35
5.6.240.0000.01614.30
5.6.230.0070.00314.32
5.6.220.0030.01214.61
5.6.210.0030.01414.17
5.6.200.0040.01114.39
5.6.190.0030.00914.45
5.6.180.0070.00714.77
5.6.170.0070.00714.55
5.6.160.0090.00614.39
5.6.150.0070.01014.41
5.6.140.0090.00914.56
5.6.130.0070.00314.28
5.6.120.0070.00314.32
5.6.110.0080.00414.36
5.6.100.0030.00914.59
5.6.90.0110.00314.19
5.6.80.0080.00814.46
5.6.70.0000.00914.35
5.6.60.0060.00614.36
5.6.50.0060.00814.23
5.6.40.0030.01314.45
5.6.30.0040.01114.61
5.6.20.0070.01014.23
5.6.10.0000.00914.39
5.6.00.0060.00614.41

preferences:
60.43 ms | 400 KiB | 5 Q