3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret_key = sodium_hex2bin( '70637679b45ba313a122e63f12b3a557a01be9c0519fc8d08bb98f3633134e66' . '812540a01852c7e582021d253c1ecee35e948e294befe19ccf1cdbafa6266260' ); $public_key = sodium_hex2bin( '812540a01852c7e582021d253c1ecee35e948e294befe19ccf1cdbafa6266260' ); $message = 'Soatok is a gay/demi dhole furry <3'; $signature = sodium_crypto_sign_detached($message, $secret_key); var_dump(sodium_bin2hex($signature)); var_dump(sodium_crypto_sign_verify_detached($signature, $message, $public_key));

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.140.0000.01516.49
8.3.130.0060.00316.35
8.3.120.0130.00318.97
8.3.110.0040.00420.94
8.3.100.0120.00535.61
8.3.90.0040.00426.77
8.3.80.0090.00316.50
8.3.70.0110.00416.58
8.3.60.0110.00718.55
8.3.50.0140.00724.37
8.3.40.0070.00718.67
8.3.30.0090.00619.04
8.3.20.0060.00324.18
8.3.10.0040.00724.66
8.3.00.0040.00426.16
8.2.250.0000.00918.69
8.2.240.0090.00017.09
8.2.230.0060.00322.58
8.2.220.0070.00437.54
8.2.210.0080.00026.77
8.2.200.0030.00618.16
8.2.190.0100.00716.58
8.2.180.0060.00925.92
8.2.170.0070.00722.96
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.64
8.2.110.0060.00321.04
8.2.100.0060.00617.71
8.2.90.0080.00017.72
8.2.80.0060.00317.97
8.2.70.0040.00417.80
8.2.60.0000.00818.09
8.2.50.0040.00419.32
8.2.40.0040.00421.05
8.2.30.0070.00019.24
8.2.20.0000.00817.86
8.2.10.0000.00719.15
8.2.00.0040.00419.12
8.1.300.0070.01120.22
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0120.00326.35
8.1.250.0050.00328.09
8.1.240.0070.00318.96
8.1.230.0060.00620.90
8.1.220.0050.00517.74
8.1.210.0050.00518.77
8.1.200.0120.00017.23
8.1.190.0000.00817.22
8.1.180.0000.00818.73
8.1.170.0040.00418.50
8.1.160.0000.00719.00
8.1.150.0040.00418.78
8.1.140.0040.00418.82
8.1.130.0000.00717.39
8.1.120.0040.00417.29
8.1.110.0050.00317.41
8.1.100.0000.00717.27
8.1.90.0040.00417.29
8.1.80.0080.00217.37
8.1.70.0090.00417.32
8.1.60.0100.00617.43
8.1.50.0100.00617.36
8.1.40.0110.00517.34
8.1.30.0100.00617.51
8.1.20.0110.00517.54
8.1.10.0120.00617.39
8.1.00.0150.00517.34
8.0.300.0070.00019.73
8.0.290.0090.00016.63
8.0.280.0000.00718.38
8.0.270.0030.00616.76
8.0.260.0000.00716.62
8.0.250.0030.00316.91
8.0.240.0030.00516.87
8.0.230.0070.00016.92
8.0.220.0030.00616.71
8.0.210.0100.00216.72
8.0.200.0070.00516.83
8.0.190.0100.00416.83
8.0.180.0100.00616.75
8.0.170.0090.00616.77
8.0.160.0100.00616.77
8.0.150.0110.00316.64
8.0.140.0090.00716.72
8.0.130.0100.00616.42
8.0.120.0110.00616.72
8.0.110.0100.00616.71
8.0.100.0110.00616.70
8.0.90.0100.00716.72
8.0.80.0120.00616.74
8.0.70.0120.00516.70
8.0.60.0100.00716.67
8.0.50.0110.00516.71
8.0.30.0130.00616.73
8.0.20.0130.00516.83
8.0.10.0110.00616.87
8.0.00.0090.00716.88
7.4.330.0050.00015.55
7.4.320.0030.00316.44
7.4.300.0090.00516.38
7.4.290.0070.00716.45
7.4.280.0100.00616.45
7.4.270.0110.00616.42
7.4.260.0130.00316.36
7.4.250.0140.00516.40
7.4.240.0130.00416.44
7.4.230.0130.00516.37
7.4.220.0110.00416.39
7.4.210.0110.00616.41
7.4.200.0120.00616.40
7.4.190.0100.00716.46
7.4.180.0110.00516.50
7.4.160.0120.00516.45
7.4.150.0120.00416.38
7.4.140.0110.00516.34
7.4.130.0110.00616.27
7.4.120.0110.00716.31
7.4.110.0110.00616.27
7.4.100.0110.00616.38
7.4.90.0110.00616.33
7.4.80.0110.00616.44
7.4.70.0100.00616.23
7.4.60.0100.00616.30
7.4.50.0100.00816.22
7.4.40.0100.00816.21
7.4.30.0110.00716.16
7.4.20.0120.00616.21
7.4.10.0120.00716.25
7.4.00.0090.00916.32
7.3.330.0110.00416.04
7.3.320.0120.00415.86
7.3.310.0130.00416.09
7.3.300.0130.00416.10
7.3.290.0110.00516.08
7.3.280.0120.00516.12
7.3.270.0120.00616.14
7.3.260.0120.00516.12
7.3.250.0110.00716.10
7.3.240.0110.00616.17
7.3.230.0120.00616.11
7.3.220.0110.00616.07
7.3.210.0110.00716.06
7.3.200.0110.00616.04
7.3.190.0120.00616.10
7.3.180.0120.00616.08
7.3.170.0100.00816.07
7.3.160.0120.00716.08
7.3.150.0120.00716.03
7.3.140.0120.00816.08
7.3.130.0110.00716.08
7.3.120.0110.00716.08
7.3.110.0110.00816.01
7.3.100.0120.00716.04
7.3.90.0130.00616.25
7.3.80.0110.00816.12
7.3.70.0110.00816.11
7.3.60.0120.00716.17
7.3.50.0130.00616.13
7.3.40.0120.00716.15
7.3.30.0130.00516.19
7.3.20.0120.00716.83
7.3.10.0110.00816.80
7.3.00.0140.00716.77
7.2.340.0130.00616.19
7.2.330.0140.00616.23
7.2.320.0130.00516.23
7.2.310.0130.00716.20
7.2.300.0120.00716.20
7.2.290.0130.00816.24
7.2.280.0120.00916.25
7.2.270.0140.00816.25
7.2.260.0130.00716.26
7.2.250.0120.00816.24
7.2.240.0140.00716.26
7.2.230.0130.00816.24
7.2.220.0130.00716.28
7.2.210.0130.00716.24
7.2.200.0130.00816.32
7.2.190.0130.00816.34
7.2.180.0130.00716.30
7.2.170.0130.00716.31
7.2.160.0140.00616.32
7.2.150.0140.00617.02
7.2.140.0140.00617.09
7.2.130.0150.00717.09
7.2.120.0130.00717.07
7.2.110.0130.00717.10
7.2.100.0140.00717.05
7.2.90.0140.00817.03
7.2.80.0140.00717.05
7.2.70.0150.00717.02
7.2.60.0140.00717.04
7.2.50.0170.00817.01
7.2.40.0140.00717.05
7.2.30.0140.00717.10
7.2.20.0130.00817.00
7.2.10.0130.00817.06
7.2.00.0120.00717.05
5.6.00.0080.00615.25

preferences:
20.02 ms | 403 KiB | 5 Q