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.5.10.0110.00916.64
8.5.00.0060.00220.05
8.4.160.0170.00422.11
8.4.150.0020.00014.05
8.4.140.0160.00617.45
8.4.130.0050.00417.76
8.4.120.0150.00720.54
8.4.110.0110.01023.11
8.4.100.0190.01017.50
8.4.90.0170.00819.03
8.4.80.0120.00918.15
8.4.70.0140.00619.14
8.4.60.0160.00718.96
8.4.50.0130.00417.53
8.4.40.0170.00517.42
8.4.30.0270.00717.89
8.4.20.0200.01017.85
8.4.10.0240.00518.55
8.3.280.0100.01018.15
8.3.270.0130.01116.53
8.3.260.0140.00517.04
8.3.250.0090.00818.42
8.3.240.0140.00516.22
8.3.230.0140.00216.39
8.3.220.0130.00518.39
8.3.210.0140.00616.52
8.3.200.0100.00516.43
8.3.190.0130.00616.67
8.3.180.0140.00516.87
8.3.170.0100.01117.69
8.3.160.0230.00518.10
8.3.150.0210.00816.99
8.3.140.0200.00816.70
8.3.130.0200.00516.66
8.3.120.0220.00417.00
8.3.110.0180.00717.09
8.3.100.0190.00527.53
8.3.90.0200.00718.10
8.3.80.0200.00517.00
8.3.70.0190.00516.62
8.3.60.0230.00716.43
8.3.50.0200.00718.64
8.3.40.0200.00517.46
8.3.30.0180.00617.48
8.3.20.0220.00418.28
8.3.10.0180.00518.48
8.3.00.0110.00419.34
8.2.290.0120.00618.33
8.2.280.0120.00517.22
8.2.270.0210.00416.36
8.2.260.0200.00517.06
8.2.250.0170.00617.00
8.2.240.0190.00416.48
8.2.230.0200.00417.38
8.2.220.0180.00519.92
8.2.210.0190.00518.15
8.2.200.0160.00716.71
8.2.190.0190.00616.30
8.2.180.0160.00918.35
8.2.170.0240.00518.40
8.2.160.0180.00718.30
8.2.150.0210.00618.79
8.2.140.0200.00518.50
8.2.130.0190.00718.73
8.2.120.0230.00517.67
8.2.110.0230.00617.85
8.2.100.0200.00817.37
8.2.90.0200.00417.44
8.2.80.0180.00417.38
8.2.70.0210.00517.41
8.2.60.0220.00617.75
8.2.50.0190.00817.66
8.2.40.0220.00418.26
8.2.30.0230.00417.62
8.2.20.0210.00817.35
8.2.10.0210.00717.56
8.2.00.0230.00417.58
8.1.330.0110.00719.81
8.1.320.0110.00316.97
8.1.310.0230.00516.37
8.1.300.0210.00616.65
8.1.290.0160.00718.72
8.1.280.0190.00617.62
8.1.270.0200.00318.29
8.1.260.0170.00718.67
8.1.250.0170.00618.95
8.1.240.0190.00517.36
8.1.230.0170.00718.02
8.1.220.0190.00517.22
8.1.210.0210.00517.88
8.1.200.0170.00816.97
8.1.190.0150.00917.60
8.1.180.0190.00417.27
8.1.170.0180.00517.20
8.1.160.0170.00617.62
8.1.150.0180.00317.29
8.1.140.0150.00517.20
8.1.130.0140.00617.12
8.1.120.0170.00617.15
8.1.110.0200.00317.00
8.1.100.0190.00517.29
8.1.90.0190.00417.11
8.1.80.0160.00217.22
8.1.70.0140.00417.33
8.1.60.0140.00617.34
8.1.50.0140.00517.28
8.1.40.0130.00717.23
8.1.30.0140.00517.40
8.1.20.0140.00517.44
8.1.10.0150.00617.27
8.1.00.0170.00517.32
8.0.300.0160.00616.97
8.0.290.0190.00416.83
8.0.280.0180.00716.79
8.0.270.0190.00616.84
8.0.260.0180.00716.41
8.0.250.0190.00516.61
8.0.240.0200.00516.56
8.0.230.0170.00616.59
8.0.220.0160.00516.44
8.0.210.0170.00416.59
8.0.200.0120.00616.71
8.0.190.0160.00416.69
8.0.180.0140.00616.60
8.0.170.0140.00516.63
8.0.160.0140.00616.65
8.0.150.0140.00516.58
8.0.140.0130.00716.62
8.0.130.0130.00616.53
8.0.120.0130.00616.76
8.0.110.0130.00716.80
8.0.100.0150.00616.59
8.0.90.0130.00716.62
8.0.80.0140.00616.66
8.0.70.0140.00516.68
8.0.60.0120.00716.69
8.0.50.0140.00616.64
8.0.30.0150.00516.69
8.0.20.0150.00616.74
8.0.10.0140.00616.79
8.0.00.0120.00616.82
7.4.330.0160.00316.08
7.4.320.0150.00716.17
7.4.300.0130.00516.40
7.4.290.0120.00516.39
7.4.280.0140.00616.43
7.4.270.0130.00616.39
7.4.260.0150.00416.37
7.4.250.0150.00516.37
7.4.240.0150.00416.42
7.4.230.0150.00516.38
7.4.220.0130.00416.32
7.4.210.0130.00616.34
7.4.200.0130.00616.33
7.4.190.0120.00616.37
7.4.180.0130.00516.50
7.4.160.0150.00416.38
7.4.150.0140.00416.30
7.4.140.0130.00616.34
7.4.130.0120.00616.20
7.4.120.0130.00616.38
7.4.110.0120.00616.21
7.4.100.0120.00616.29
7.4.90.0130.00616.35
7.4.80.0120.00616.36
7.4.70.0120.00516.18
7.4.60.0120.00616.23
7.4.50.0110.00716.22
7.4.40.0110.00816.15
7.4.30.0120.00716.14
7.4.20.0130.00616.17
7.4.10.0120.00716.21
7.4.00.0100.00816.27
7.3.330.0120.00516.13
7.3.320.0130.00415.92
7.3.310.0140.00415.98
7.3.300.0150.00516.20
7.3.290.0130.00516.11
7.3.280.0140.00516.09
7.3.270.0140.00616.13
7.3.260.0150.00516.04
7.3.250.0130.00716.10
7.3.240.0130.00616.10
7.3.230.0130.00616.02
7.3.220.0120.00616.01
7.3.210.0130.00715.99
7.3.200.0130.00616.05
7.3.190.0130.00616.02
7.3.180.0140.00615.99
7.3.170.0110.00816.00
7.3.160.0120.00816.08
7.3.150.0120.00716.03
7.3.140.0130.00716.03
7.3.130.0120.00716.08
7.3.120.0120.00716.02
7.3.110.0120.00815.96
7.3.100.0130.00616.04
7.3.90.0140.00616.19
7.3.80.0120.00816.05
7.3.70.0120.00716.12
7.3.60.0130.00616.13
7.3.50.0140.00616.08
7.3.40.0130.00616.10
7.3.30.0140.00516.15
7.3.20.0130.00716.96
7.3.10.0120.00816.94
7.3.00.0140.00716.90
7.2.340.0140.00616.10
7.2.330.0140.00616.14
7.2.320.0150.00516.14
7.2.310.0140.00716.12
7.2.300.0140.00516.13
7.2.290.0130.00816.19
7.2.280.0130.00816.25
7.2.270.0140.00716.18
7.2.260.0140.00716.26
7.2.250.0130.00716.17
7.2.240.0150.00716.21
7.2.230.0130.00716.19
7.2.220.0130.00716.22
7.2.210.0140.00716.17
7.2.200.0140.00816.28
7.2.190.0130.00716.34
7.2.180.0140.00716.25
7.2.170.0140.00716.26
7.2.160.0140.00516.27
7.2.150.0140.00617.13
7.2.140.0150.00617.21
7.2.130.0160.00617.24
7.2.120.0140.00717.19
7.2.110.0140.00717.21
7.2.100.0150.00617.18
7.2.90.0150.00817.16
7.2.80.0150.00617.19
7.2.70.0160.00717.17
7.2.60.0150.00717.20
7.2.50.0180.00817.17
7.2.40.0150.00717.20
7.2.30.0140.00717.23
7.2.20.0150.00817.15
7.2.10.0140.00817.22
7.2.00.0130.00817.21

preferences:
38.83 ms | 403 KiB | 5 Q