3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_secret = sodium_hex2bin("da93b1db433cfb2efe490a1bb263e440b586b6167c20b86f14cd058515806940"); $my_public = sodium_crypto_scalarmult_base($my_secret); $message = sodium_crypto_box_seal("This is a secret", $my_public); var_dump(sodium_bin2hex($message)); $opened = sodium_crypto_box_seal_open($message, $my_secret . $my_public); var_dump(sodium_bin2hex($opened));

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.0140.00318.55
8.3.50.0110.00418.33
8.3.40.0070.01118.82
8.3.30.0110.00418.76
8.3.20.0040.00419.15
8.3.10.0040.00423.79
8.3.00.0080.00022.45
8.2.180.0060.01218.38
8.2.170.0110.00722.96
8.2.160.0110.00321.26
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00422.20
8.2.120.0080.00026.35
8.2.110.0000.00921.16
8.2.100.0120.00017.84
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0060.00317.63
8.2.50.0070.00417.75
8.2.40.0060.00319.48
8.2.30.0070.00020.62
8.2.20.0030.00518.25
8.2.10.0000.00818.06
8.2.00.0050.00219.41
8.1.280.0090.00625.92
8.1.270.0080.00022.32
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0060.00621.09
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0050.00317.62
8.1.160.0050.00318.89
8.1.150.0050.00218.99
8.1.140.0030.00619.03
8.1.130.0060.00319.12
8.1.120.0020.00517.46
8.1.110.0000.00717.34
8.1.100.0030.00617.31
8.1.90.0030.00517.44
8.1.80.0040.00417.31
8.1.70.0070.00017.47
8.1.60.0050.00317.65
8.1.50.0000.00817.59
8.1.40.0080.00017.47
8.1.30.0030.00517.65
8.1.20.0040.00417.48
8.1.10.0000.00817.62
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0030.00318.47
8.0.270.0050.00216.84
8.0.260.0070.00020.50
8.0.250.0030.00416.95
8.0.240.0040.00417.09
8.0.230.0040.00417.00
8.0.220.0000.00717.05
8.0.210.0000.00817.04
8.0.200.0000.00616.95
8.0.190.0040.00417.00
8.0.180.0040.00417.02
8.0.170.0030.00617.05
8.0.160.0000.00716.95
8.0.150.0080.00016.98
8.0.140.0040.00416.84
8.0.130.0000.00613.34
8.0.120.0040.00416.93
8.0.110.0080.00016.93
8.0.100.0040.00416.76
8.0.90.0060.00316.78
8.0.80.0030.01316.88
8.0.70.0060.00316.90
8.0.60.0000.00716.93
8.0.50.0050.00317.01
8.0.30.0070.01017.07
8.0.20.0100.01017.40
8.0.10.0040.00416.84
8.0.00.0120.01016.78
7.4.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0000.00616.57
7.4.290.0000.00816.48
7.4.280.0040.00416.58
7.4.270.0000.00716.51
7.4.260.0040.00716.53
7.4.250.0090.00016.58
7.4.240.0000.00716.61
7.4.230.0030.00316.48
7.4.220.0040.00416.62
7.4.210.0050.00916.62
7.4.200.0000.00716.32
7.4.160.0100.00616.55
7.4.140.0100.01017.86
7.4.130.0090.00916.63
7.4.120.0100.00816.53
7.4.110.0090.01016.74
7.4.100.0090.00916.51
7.4.90.0060.01216.61
7.4.80.0100.00719.39
7.4.70.0120.00616.37
7.4.60.0030.01316.45
7.4.50.0070.01116.34
7.4.40.0030.01316.56
7.4.00.0080.00814.78
7.3.330.0000.00513.07
7.3.320.0060.00013.09
7.3.310.0030.00316.22
7.3.300.0000.00716.23
7.3.290.0000.00716.24
7.3.280.0030.01216.27
7.3.260.0110.00716.40
7.3.240.0040.01516.34
7.3.230.0110.00616.27
7.3.210.0120.00616.49
7.3.200.0070.01016.52
7.3.190.0090.00616.25
7.3.180.0000.01716.52
7.3.170.0120.00616.29
7.3.160.0140.00316.29
7.3.120.0020.01314.79
7.3.110.0090.00914.93
7.3.100.0070.01414.61
7.3.90.0030.01414.75
7.3.80.0090.00314.61
7.3.70.0090.00014.68
7.3.60.0070.01014.56
7.3.50.0060.00614.83
7.3.40.0090.00614.79
7.3.30.0070.01014.55
7.3.20.0000.01116.64
7.3.10.0030.00916.67
7.3.00.0040.00716.30
7.2.330.0140.00416.80
7.2.320.0040.01416.72
7.2.310.0120.00816.30
7.2.300.0100.01316.43
7.2.290.0030.01516.74
7.2.250.0100.00715.02
7.2.240.0070.00715.02
7.2.230.0100.00715.29
7.2.220.0090.00614.93
7.2.210.0030.01214.79
7.2.200.0000.01315.13
7.2.190.0060.00615.13
7.2.180.0090.00614.96
7.2.170.0030.01215.14
7.2.160.0070.00715.18
7.2.150.0060.00316.88
7.2.140.0060.00917.11
7.2.130.0060.01016.97
7.2.120.0040.01116.94
7.2.110.0090.00616.81
7.2.100.0090.00917.13
7.2.90.0850.01215.76
7.2.80.0850.00915.83
7.2.70.1420.00915.84
7.2.60.0740.00516.11
7.2.50.0630.00816.08
7.2.40.0770.00516.02
7.2.30.0840.00916.04
7.2.20.0910.00316.04
7.2.10.0990.01115.91
7.2.00.0760.01215.82
7.1.330.0100.00715.63
7.1.320.0060.00615.78
7.1.310.0100.00615.39
7.1.300.0040.00815.75
7.1.290.0030.01015.70
7.1.280.0030.01215.45
7.1.270.0000.01215.76
7.1.260.0060.00915.64
7.1.250.0060.00915.79
7.1.240.0090.00615.73
7.1.230.0070.01015.77
7.1.220.0040.01115.39
7.1.210.1140.00714.73
7.1.200.0800.00914.66
7.1.190.1030.00514.56
7.1.180.0680.00314.71
7.1.170.0760.00214.80
7.1.160.0850.00614.54
7.1.150.0730.00714.69
7.1.140.1310.00714.70
7.1.130.0680.00814.58
7.1.120.0630.00514.67
7.1.110.0600.01114.71
7.1.100.0620.00914.70
7.1.90.0130.00314.45
7.1.80.0830.00414.63
7.1.70.0780.00914.46
7.1.60.1520.00723.38
7.1.50.1220.00823.37
7.1.40.1410.01023.68
7.1.30.1660.01023.62
7.1.20.1600.01123.43
7.1.10.1630.00714.25
7.1.00.0750.00714.50
7.0.330.0060.00315.27
7.0.320.0060.00615.21
7.0.310.0040.01115.53
7.0.300.0080.00815.39
7.0.290.0030.01015.12
7.0.280.0030.00615.50
7.0.270.0040.01115.32
7.0.260.0090.00615.18
7.0.250.0090.00515.16
7.0.240.0100.00315.34
7.0.230.0000.01315.48
7.0.220.0030.01015.30
7.0.210.0030.01315.33
7.0.200.0100.00315.23
7.0.190.0030.00915.46
7.0.180.0000.00915.39
7.0.170.0080.00415.21
7.0.160.0070.00315.36
7.0.150.0070.01115.31
7.0.140.0090.00315.32
7.0.130.0030.00615.42
7.0.120.0060.00615.10
7.0.110.0000.00915.18
7.0.100.0030.01315.23
7.0.90.0090.00315.28
7.0.80.0030.00615.30
7.0.70.0030.00715.18
7.0.60.0030.01015.41
7.0.50.0090.00315.44
7.0.40.0030.01013.13
7.0.30.0100.00313.48
7.0.20.0140.00413.41
7.0.10.0090.00913.46
7.0.00.0110.00713.49
5.6.400.0030.01414.25
5.6.390.0080.00613.82
5.6.380.0100.00314.02
5.6.370.0030.00814.13
5.6.360.0040.01114.44
5.6.350.0060.00914.38
5.6.340.0030.00914.09
5.6.330.0000.01614.15
5.6.320.0030.01014.02
5.6.310.0060.00914.45
5.6.300.0100.00314.14
5.6.290.0030.01014.22
5.6.280.0090.00614.23
5.6.270.0100.00313.91
5.6.260.0000.01414.16
5.6.250.0070.00714.17
5.6.240.0130.00013.88
5.6.230.0070.00714.26
5.6.220.0090.00314.24
5.6.210.0030.01014.41
5.6.200.0100.00314.19
5.6.190.0030.00714.06
5.6.180.0060.00914.05
5.6.170.0060.01214.23
5.6.160.0070.00714.04
5.6.150.0060.00314.07
5.6.140.0030.01014.40
5.6.130.0030.00914.48
5.6.120.0060.00614.23
5.6.110.0070.01014.11
5.6.100.0040.01014.39
5.6.90.0070.00713.98
5.6.80.0060.00313.79
5.6.70.0070.01113.82
5.6.60.0080.00613.93
5.6.50.0100.00313.99
5.6.40.0000.00913.91
5.6.30.0030.01014.08
5.6.20.0130.00013.81
5.6.10.0000.00814.09
5.6.00.0030.00514.15

preferences:
66.79 ms | 401 KiB | 5 Q