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($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.4.10.0100.01017.57
8.3.140.0040.00420.54
8.3.130.0000.00918.40
8.3.120.0060.00320.82
8.3.110.0030.00618.25
8.3.100.0030.00616.52
8.3.90.0040.00426.77
8.3.80.0040.00816.48
8.3.70.0080.00818.28
8.3.60.0160.00018.30
8.3.50.0090.00818.07
8.3.40.0060.01518.82
8.3.30.0120.00318.76
8.3.20.0040.00419.10
8.3.10.0000.00823.61
8.3.00.0060.00322.62
8.2.260.0000.00816.93
8.2.250.0000.01016.50
8.2.240.0090.00918.93
8.2.230.0090.00620.94
8.2.220.0050.00324.06
8.2.210.0110.00726.77
8.2.200.0060.00318.41
8.2.190.0110.00416.58
8.2.180.0120.00416.63
8.2.170.0110.00718.91
8.2.160.0030.01022.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0000.00820.75
8.2.110.0060.00621.04
8.2.100.0000.01217.66
8.2.90.0000.00818.22
8.2.80.0030.00518.34
8.2.70.0000.00817.63
8.2.60.0040.00418.34
8.2.50.0000.00918.10
8.2.40.0000.00819.61
8.2.30.0040.00419.36
8.2.20.0000.00818.09
8.2.10.0040.00418.16
8.2.00.0070.00019.54
8.1.310.0040.00416.61
8.1.300.0100.00719.67
8.1.290.0030.00730.84
8.1.280.0150.00325.92
8.1.270.0080.00022.27
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.01122.73
8.1.230.0080.00421.16
8.1.220.0040.00417.78
8.1.210.0090.00318.77
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0050.00318.78
8.1.160.0030.00520.69
8.1.150.0000.00718.82
8.1.140.0030.00619.08
8.1.130.0100.00019.22
8.1.120.0050.00317.46
8.1.110.0040.00417.36
8.1.100.0100.00317.41
8.1.90.0000.00717.41
8.1.80.0040.00417.44
8.1.70.0000.00817.30
8.1.60.0060.00317.54
8.1.50.0040.00417.36
8.1.40.0080.00017.37
8.1.30.0040.00417.57
8.1.20.0000.00717.66
8.1.10.0040.00417.49
8.1.00.0030.00617.45
8.0.300.0000.00720.16
8.0.290.0040.00416.88
8.0.280.0000.00818.56
8.0.270.0050.00216.95
8.0.260.0070.00016.94
8.0.250.0040.00416.96
8.0.240.0030.00316.95
8.0.230.0000.00716.91
8.0.220.0050.00216.99
8.0.210.0040.00416.88
8.0.200.0000.00716.88
8.0.190.0040.00417.02
8.0.180.0080.00016.89
8.0.170.0040.00416.99
8.0.160.0070.00016.96
8.0.150.0040.00416.84
8.0.140.0040.00416.91
8.0.130.0030.00313.42
8.0.120.0040.00416.86
8.0.110.0000.00716.96
8.0.100.0040.00416.85
8.0.90.0040.00416.90
8.0.80.0130.00816.95
8.0.70.0040.00416.78
8.0.60.0040.00416.93
8.0.50.0020.00516.84
8.0.30.0100.00917.03
8.0.20.0150.00517.40
8.0.10.0000.00816.98
8.0.00.0070.01316.62
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0020.00516.44
7.4.290.0030.00316.48
7.4.280.0040.00416.44
7.4.270.0050.00316.42
7.4.260.0110.00016.48
7.4.250.0040.00416.49
7.4.240.0040.00416.58
7.4.230.0000.00716.67
7.4.220.0000.00716.69
7.4.210.0090.00516.66
7.4.200.0000.00716.43
7.4.160.0090.00916.54
7.4.140.0110.00717.86
7.4.130.0110.00716.79
7.4.120.0110.00816.54
7.4.110.0110.00716.53
7.4.100.0110.00816.68
7.4.90.0060.01116.60
7.4.80.0130.00319.39
7.4.70.0120.00616.65
7.4.60.0170.00016.54
7.4.50.0110.00716.42
7.4.40.0060.01116.43
7.4.00.0040.01514.85
7.3.330.0050.00012.99
7.3.320.0000.00712.96
7.3.310.0030.00316.15
7.3.300.0070.00016.15
7.3.290.0000.00716.11
7.3.280.0080.01116.29
7.3.260.0090.00916.39
7.3.240.0110.00816.31
7.3.230.0190.00416.29
7.3.210.0080.01116.27
7.3.200.0040.01516.41
7.3.190.0060.00916.20
7.3.180.0060.01616.56
7.3.170.0120.00916.30
7.3.160.0100.00616.29
7.3.110.0090.00514.71
7.3.100.0040.01114.60
7.3.90.0080.00814.53
7.3.80.0090.01014.81
7.3.70.0120.01214.77
7.3.60.0070.01214.80
7.3.50.0170.00314.62
7.3.40.0130.01014.59
7.3.30.0140.00614.58
7.3.20.0130.01014.76
7.3.10.0090.00915.40
7.3.00.0070.01015.09
7.2.330.0080.01116.61
7.2.320.0070.01216.53
7.2.310.0060.01416.68
7.2.300.0030.01416.37
7.2.290.0160.00016.85
7.2.240.0070.01015.13
7.2.230.0070.00714.70
7.2.220.0140.00414.98
7.2.210.0140.00714.95
7.2.200.0120.01014.95
7.2.190.0060.01115.08
7.2.180.0170.00314.92
7.2.170.0140.00914.94
7.2.160.0090.01515.05
7.2.150.0130.01115.15
7.2.140.0170.00615.11
7.2.130.0100.01215.50
7.2.120.0130.00715.49
7.2.110.0110.00915.49
7.2.100.0100.01115.40
7.2.90.0420.01215.29
7.2.80.0420.00715.18
7.2.70.0680.00715.51
7.2.60.0380.01215.59
7.2.50.0460.01115.45
7.2.40.0450.00715.57
7.2.30.0470.00515.35
7.2.20.0710.00815.56
7.2.10.0450.01215.53
7.2.00.0510.01215.51
7.1.330.0030.01213.49
7.1.320.0150.00513.69
7.1.310.0120.00713.66
7.1.300.0100.00913.76
7.1.290.0100.00813.76
7.1.280.0180.00413.65
7.1.270.0470.00813.60
7.1.260.0140.00813.74
7.1.250.0070.01114.39
7.1.240.0170.00713.68
7.1.230.0160.01013.58
7.1.220.0150.01013.69
7.1.210.0790.00813.81
7.1.200.0650.00713.71
7.1.190.0600.00813.71
7.1.180.0600.00813.71
7.1.170.0840.00813.71
7.1.160.0540.00813.68
7.1.150.0690.00913.75
7.1.140.0590.01013.78
7.1.130.0620.00613.62
7.1.120.0700.00813.78
7.1.110.0280.00713.64
7.1.100.0510.00413.82
7.1.90.1170.00713.57
7.1.80.0890.00813.68
7.1.70.0810.00613.46
7.1.60.0860.01019.62
7.1.50.1330.00919.80
7.1.40.1250.00519.72
7.1.30.1290.00819.64
7.1.20.1260.00619.76
7.1.10.0280.00613.73
7.1.00.0700.00613.52
7.0.330.0130.01413.54
5.6.400.0140.01114.19
5.6.390.0170.00714.14
5.6.380.0170.00513.97

preferences:
60.1 ms | 403 KiB | 5 Q