3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = random_bytes(32); $public = sodium_crypto_scalarmult_base($secret); var_dump( sodium_bin2hex($secret), sodium_bin2hex($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.2.100.0210.00218.44
8.2.40.0160.00618.44
7.4.90.0210.01116.45
7.4.80.0190.01416.46
7.4.70.0300.00016.29
7.4.60.0210.01016.32
7.4.50.0230.01016.32
7.4.40.0150.01616.50
7.4.30.0220.01316.29
7.4.20.0220.01116.51
7.4.10.0120.01115.85
7.4.00.0120.00815.45
7.3.210.0130.00316.21
7.3.200.0290.00416.53
7.3.190.0310.00016.26
7.3.180.0220.01116.16
7.3.170.0190.01416.15
7.3.160.0230.01016.21
7.3.150.0230.00916.44
7.3.140.0280.00416.04
7.3.130.0160.01015.50
7.3.120.0110.01114.96
7.3.110.0140.01115.00
7.3.100.0110.00915.01
7.3.90.0080.01115.16
7.3.80.0080.01315.12
7.3.70.0050.01515.16
7.3.60.0110.00815.19
7.3.50.0100.01015.22
7.3.40.0140.00715.11
7.3.30.0090.01115.20
7.3.20.0120.00916.24
7.3.10.0120.00716.35
7.3.00.0310.01116.33
7.2.330.0180.00916.29
7.2.320.0230.00916.53
7.2.310.0270.00416.51
7.2.300.0270.00616.52
7.2.290.0210.00916.40
7.2.280.0280.00316.38
7.2.270.0250.00616.11
7.2.260.0150.00515.46
7.2.250.0150.00915.51
7.2.240.0090.01515.13
7.2.230.0140.00615.47
7.2.220.0120.01015.36
7.2.210.0110.01015.48
7.2.200.0130.00815.37
7.2.190.0110.00915.33
7.2.180.0100.01115.34
7.2.170.0130.00715.43
7.2.160.0090.01015.37
7.2.150.0120.00816.71
7.2.140.0140.00716.70
7.2.130.0160.01016.56
7.2.120.0170.01216.56
7.2.110.0110.01216.64
7.2.100.0190.00616.73
7.2.90.0210.01216.17
7.2.80.0210.01016.19
7.2.70.0260.00616.17
7.2.60.0180.01016.16
7.2.50.0240.00816.22
7.2.40.0290.00916.19
7.2.30.0250.00816.27
7.2.20.0150.01316.25
7.2.10.0190.00716.14
7.2.00.0490.01016.10
7.1.330.0130.00715.57
7.1.320.0120.00715.59
7.1.310.0100.00815.45
7.1.300.0140.00415.66
7.1.290.0100.00815.55
7.1.280.0110.00715.67
7.1.270.0050.01315.59
7.1.260.0120.00615.52
7.1.250.0150.00615.59
7.1.240.0130.01015.52
7.1.230.0170.00715.55
7.1.220.0120.01415.60
7.1.210.0250.00514.90
7.1.200.0260.00714.91
7.1.190.0310.00514.93
7.1.180.0240.00814.86
7.1.170.0290.01014.73
7.1.160.0250.01214.82
7.1.150.0310.00614.96
7.1.140.0240.00615.00
7.1.130.0300.01214.78
7.1.120.0270.01114.88
7.1.110.0250.01115.07
7.1.100.0260.00815.00
7.1.90.0240.00814.98
7.1.80.0220.01114.83
7.1.70.0250.01114.93
7.1.60.0310.01420.96
7.1.50.0280.01421.03
7.1.40.0280.01120.93
7.1.30.0340.00620.85
7.1.20.0280.01120.73
7.1.10.0270.00714.83
7.1.00.0300.00614.85
7.0.330.0130.01015.07
7.0.320.0200.00615.09
7.0.310.0140.00715.13
7.0.300.0440.00715.17
7.0.290.0120.01015.05
7.0.280.0120.00915.21
7.0.270.0150.00815.04
7.0.260.0150.00515.26
7.0.250.0150.00715.13
7.0.240.0130.00615.32
7.0.230.0220.00915.22
7.0.220.0160.00915.15
7.0.210.0170.00615.28
7.0.200.0160.00715.08
7.0.190.0110.00915.26
7.0.180.0150.00415.25
7.0.170.0120.00815.15
7.0.160.0130.00915.08
7.0.150.0110.00915.26
7.0.140.0140.00615.22
7.0.130.0150.00515.08
7.0.120.0160.00515.22
7.0.110.0230.00515.23
7.0.100.0090.01415.20
7.0.90.0110.01115.29
7.0.80.0130.00415.19
7.0.70.0140.00715.18
7.0.60.0090.01415.08
7.0.50.0140.00615.09
7.0.40.0180.00514.18
7.0.30.0080.01214.06
7.0.20.0160.00614.08
7.0.10.0190.00014.20
7.0.00.0110.00914.09
5.6.400.0140.00914.82
5.6.390.0110.01314.82
5.6.380.0160.00915.00
5.6.370.0170.00914.82
5.6.360.0110.01014.98
5.6.350.0130.01115.07
5.6.340.0140.00815.02
5.6.330.0110.01014.92
5.6.320.0130.01114.85
5.6.310.0150.01414.88
5.6.300.0160.00415.05
5.6.290.0160.00814.91
5.6.280.0110.01114.78
5.6.270.0140.00815.09
5.6.260.0110.01015.05
5.6.250.0090.01014.88
5.6.240.0120.00914.92
5.6.230.0130.01015.04
5.6.220.0140.01214.89
5.6.210.0130.00914.75
5.6.200.0230.01314.78
5.6.190.0040.01815.04
5.6.180.0110.01114.94
5.6.170.0170.00314.90
5.6.160.0130.00914.83
5.6.150.0170.00714.90
5.6.140.0140.00914.83
5.6.130.0160.00814.94
5.6.120.0130.00814.71
5.6.110.0160.01014.73
5.6.100.0180.01214.93
5.6.90.0110.01014.81
5.6.80.0160.00514.80
5.6.70.0120.00614.71
5.6.60.0150.00514.73
5.6.50.0090.01014.90
5.6.40.0180.00314.72
5.6.30.0110.00914.79
5.6.20.0090.01214.77
5.6.10.0130.01015.00
5.6.00.0100.01114.78

preferences:
26.67 ms | 403 KiB | 5 Q