3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keypair = sodium_crypto_sign_keypair(); $secret = sodium_crypto_sign_secretkey($keypair); $public = sodium_crypto_sign_publickey($keypair); $signature = sodium_crypto_sign_detached('test', $secret); var_dump(sodium_crypto_sign_verify_detached($signature, 'test', $public));

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.4.120.0060.00620.66
8.4.110.0110.00918.85
8.4.100.0110.01017.47
8.4.90.0110.01017.66
8.4.80.0140.00717.59
8.4.70.0090.01219.34
8.4.60.0050.00418.77
8.4.50.0140.00318.53
8.4.40.0070.01419.39
8.4.30.0300.00818.11
8.4.20.0350.00717.68
8.4.10.0290.01217.37
8.3.250.0130.00518.86
8.3.240.0110.00716.66
8.3.230.0040.00516.52
8.3.220.0060.00517.05
8.3.210.0120.00716.65
8.3.200.0060.00216.72
8.3.190.0040.00417.17
8.3.180.0110.00717.33
8.3.170.0210.00517.81
8.3.160.0300.00916.28
8.3.150.0300.01016.52
8.3.140.0320.00716.44
8.3.130.0250.00816.36
8.3.120.0270.00517.36
8.3.110.0250.00816.34
8.3.100.0270.00916.34
8.3.90.0300.00618.95
8.3.80.0180.00726.60
8.3.70.0350.00619.65
8.3.60.0330.00819.73
8.3.50.0240.01119.19
8.3.40.0220.00920.43
8.3.30.0220.00820.28
8.3.20.0190.00521.38
8.3.10.0160.00821.45
8.3.00.0150.00622.09
8.2.290.0150.00520.70
8.2.280.0060.00218.32
8.2.270.0200.00916.76
8.2.260.0260.00616.38
8.2.250.0220.00816.44
8.2.240.0220.00916.42
8.2.230.0220.00917.61
8.2.220.0250.00618.33
8.2.210.0270.00419.02
8.2.200.0220.00719.84
8.2.190.0250.00719.62
8.2.180.0220.00821.16
8.2.170.0290.00720.44
8.2.160.0290.00321.17
8.2.150.0240.00921.75
8.2.140.0280.00621.44
8.2.130.0260.00921.70
8.2.120.0290.00520.26
8.2.110.0160.00920.86
8.2.100.0220.00819.69
8.2.90.0230.01119.85
8.2.80.0260.00619.83
8.2.70.0220.00634.70
8.2.60.0240.00922.23
8.2.50.0250.00420.05
8.2.40.0180.00819.83
8.2.30.0170.00519.13
8.2.20.0210.00519.63
8.2.10.0200.00719.76
8.2.00.0200.00519.59
8.1.330.0110.00816.59
8.1.320.0050.00416.22
8.1.310.0290.00615.87
8.1.300.0260.00516.32
8.1.290.0250.00821.88
8.1.280.0290.00521.03
8.1.270.0240.00621.53
8.1.260.0210.00921.70
8.1.250.0230.00621.97
8.1.240.0210.00420.40
8.1.230.0220.00720.06
8.1.220.0140.00719.31
8.1.210.0200.00620.07
8.1.200.0220.00819.55
8.1.190.0240.00619.58
8.1.180.0180.00919.71
8.1.170.0190.00719.39
8.1.160.0210.00719.66
8.1.150.0200.00919.81
8.1.140.0190.00819.55
8.1.130.0200.00919.38
8.1.120.0210.00619.39
8.1.110.0180.00822.05
8.1.100.0190.00719.44
8.1.90.0160.00418.65
8.1.80.0240.00719.40
8.1.70.0200.00619.45
8.1.60.0200.00719.47
8.1.50.0170.00719.47
8.1.40.0150.00819.47
8.1.30.0170.00719.57
8.1.20.0200.00619.56
8.1.10.0220.00519.45
8.1.00.0210.00619.42
8.0.300.0160.00619.26
8.0.290.0250.00419.10
8.0.280.0170.00418.69
8.0.270.0210.00719.09
8.0.260.0200.00619.05
8.0.250.0210.00418.98
8.0.240.0220.00518.98
8.0.230.0190.00719.08
8.0.220.0190.00718.90
8.0.210.0230.00718.87
8.0.200.0210.00719.01
8.0.190.0210.00519.00
8.0.180.0210.00619.02
8.0.170.0190.00818.97
8.0.160.0200.00718.95
8.0.150.0210.00518.96
8.0.140.0200.00718.96
8.0.130.0190.00618.48
8.0.120.0210.00618.96
8.0.110.0200.00518.93
8.0.100.0220.00518.86
8.0.90.0230.00518.91
8.0.80.0200.00618.46
8.0.70.0200.00618.84
8.0.60.0200.00718.92
8.0.50.0210.00818.92
8.0.30.0230.00719.01
8.0.20.0230.00619.07
8.0.10.0220.00519.03
8.0.00.0180.00819.57
7.4.330.0180.00617.40
7.4.320.0180.00618.74
7.4.300.0200.00418.95
7.4.290.0160.00619.00
7.4.280.0190.00618.70
7.4.270.0190.00518.78
7.4.260.0170.00718.25
7.4.250.0170.00718.70
7.4.240.0170.00518.46
7.4.230.0200.00618.70
7.4.220.0160.00718.41
7.4.210.0150.00818.10
7.4.200.0150.00918.72
7.4.190.0230.00519.15
7.4.180.0220.00619.17
7.4.160.0160.00818.74
7.4.150.0200.00618.71
7.4.140.0170.00618.67
7.4.130.0180.00518.63
7.4.120.0190.00918.60
7.4.110.0210.00618.63
7.4.100.0210.00618.74
7.4.90.0200.00718.58
7.4.80.0190.00918.58
7.4.70.0210.00718.61
7.4.60.0220.00618.49
7.4.50.0210.00818.58
7.4.40.0210.00618.55
7.4.30.0150.01118.62
7.4.20.0180.00818.60
7.4.10.0170.00818.55
7.4.00.0210.00518.27
7.3.330.0180.00618.44
7.3.320.0180.00618.06
7.3.310.0170.00818.44
7.3.300.0190.00618.47
7.3.290.0140.00918.00
7.3.280.0240.00518.92
7.3.270.0200.00818.50
7.3.260.0200.00618.48
7.3.250.0160.00618.54
7.3.240.0200.00718.52
7.3.230.0180.00818.43
7.3.220.0270.00518.42
7.3.210.0240.00718.42
7.3.200.0220.00818.48
7.3.190.0210.00718.44
7.3.180.0220.00918.42
7.3.170.0180.00918.41
7.3.160.0230.00518.46
7.3.150.0220.00618.47
7.3.140.0190.00818.42
7.3.130.0210.00818.48
7.3.120.0190.00818.40
7.3.110.0210.00418.40
7.3.100.0200.00818.41
7.3.90.0240.00518.59
7.3.80.0220.00618.42
7.3.70.0210.00818.51
7.3.60.0210.00818.56
7.3.50.0200.00818.54
7.3.40.0230.00618.56
7.3.30.0230.00618.54
7.3.20.0330.00519.65
7.3.10.0250.00419.53
7.3.00.0240.00519.59

preferences:
28.49 ms | 403 KiB | 5 Q