3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret_key = 'denemesmdnoandowinadanw'; echo $secret_key . PHP_EOL; $message = 'Sensitive information'; $nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES); $encrypted_message = sodium_crypto_secretbox($message, $nonce, $secret_key); $encrypted_message = sodium_bin2hex($encrypted_message); echo $encrypted_message . PHP_EOL; $encrypted_message = sodium_hex2bin($encrypted_message); $decrypted_message = sodium_crypto_secretbox_open($encrypted_message, $nonce, $secret_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.3.110.0180.00416.45
8.3.100.0230.00916.49
8.3.90.0260.01016.46
8.3.80.0330.00816.13
8.3.70.0250.00416.25
8.3.60.0320.00816.50
8.3.50.0290.00616.36
8.3.40.0260.00617.48
8.3.30.0320.00817.50
8.3.20.0330.00317.38
8.3.10.0300.01217.38
8.3.00.0190.00417.25
8.2.230.0360.00416.38
8.2.220.0350.00716.68
8.2.210.0240.01016.72
8.2.200.0240.01416.34
8.2.190.0200.01216.61
8.2.180.0300.00716.44
8.2.170.0330.01217.88
8.2.160.0530.00017.75
8.2.150.0320.01317.34
8.2.140.0270.01717.50
8.2.130.0320.01317.25
8.2.120.0520.00317.25
8.2.110.0410.00617.25
8.2.100.0290.01317.60
8.2.90.0400.00717.13
8.2.80.0170.00417.38
8.2.70.0380.00617.38
8.2.60.0360.00317.25
8.2.50.0220.00617.63
8.2.40.0270.00417.38
8.2.30.0130.00617.47
8.2.20.0160.00317.50
8.2.10.0050.01417.61
8.2.00.0150.00417.61
8.1.290.0250.00316.12
8.1.280.0250.01116.00
8.1.270.0210.01217.23
8.1.260.0310.00617.24
8.1.250.0260.00017.13
8.1.240.0310.00816.75
8.1.230.0390.00417.22
8.1.220.0330.00717.13
8.1.210.0260.00917.25
8.1.200.0290.01017.22
8.1.190.0240.01416.86
8.1.180.0310.00417.00
8.1.170.0280.00617.13
8.1.160.0310.00916.84
8.1.150.0260.01317.13
8.1.140.0270.01217.10
8.1.130.0300.01016.99
8.1.120.0300.01017.13
8.1.110.0330.00716.98
8.1.100.0310.00917.09
8.1.90.0240.00917.00
8.1.80.0210.00017.13
8.1.70.0120.00816.98
8.1.60.0230.00317.25
8.1.50.0350.01017.25
8.1.40.0200.00017.24
8.1.30.0330.00817.47
8.1.20.0250.01917.11
8.1.10.0380.00617.37
8.1.00.0310.00917.35
8.0.300.0340.00516.63
8.0.290.0250.01316.75
8.0.280.0190.01516.50
8.0.270.0280.00416.35
8.0.260.0240.00416.63
8.0.250.0300.00316.71
8.0.240.0310.00416.63
8.0.230.0230.01516.25
8.0.220.0330.00416.63
8.0.210.0340.01116.38
8.0.200.0260.00016.23
8.0.190.0260.00316.50
8.0.180.0450.00416.25
8.0.170.0270.00016.50
8.0.160.0320.00616.35
8.0.150.0330.00016.63
8.0.140.0280.01216.63
8.0.130.0340.00716.50
8.0.120.0340.00616.50
8.0.110.0280.01116.38
8.0.100.0320.00616.35
8.0.90.0320.00716.63
8.0.80.0220.00816.50
8.0.70.0280.00416.23
8.0.60.0320.00516.50
8.0.50.0200.01716.63
8.0.30.0220.01616.25
8.0.20.0350.00416.62
8.0.10.0350.00616.50
8.0.00.0270.01216.60
7.4.330.0240.00916.38
7.4.320.0280.00316.25
7.4.300.0180.01116.10
7.4.290.0240.00616.25
7.4.280.0170.00616.25
7.4.270.0190.00716.25
7.4.260.0220.01516.22
7.4.250.0330.00016.00
7.4.240.0310.00016.13
7.4.230.0350.00016.23
7.4.220.0210.01416.25
7.4.210.0260.01016.25
7.4.200.0370.01415.88
7.4.190.0440.00916.13
7.4.180.0330.00316.13
7.4.160.0320.00316.25
7.4.150.0250.00616.25
7.4.140.0160.00016.00
7.4.130.0250.00616.13
7.4.120.0140.00316.25
7.4.110.0140.00416.13
7.4.100.0170.00016.25
7.4.90.0160.00016.25
7.4.80.0130.00316.13
7.4.70.0140.00216.25
7.4.60.0080.00916.29
7.4.50.0110.00716.26
7.4.40.0120.00716.24
7.4.30.0150.00516.24
7.4.20.0160.00816.25
7.4.10.0110.00915.93
7.4.00.0140.00816.04
7.3.330.0190.01016.13
7.3.320.0290.00615.75
7.3.310.0280.00616.13
7.3.300.0290.00615.75
7.3.290.0270.00816.00
7.3.280.0320.00315.88
7.3.270.0260.01015.97
7.3.260.0310.00315.96
7.3.250.0210.01415.85
7.3.240.0320.00616.13
7.3.230.0370.00015.75
7.3.220.0290.00616.00
7.3.210.0290.00716.00
7.3.200.0360.00616.00
7.3.190.0360.00715.75
7.3.180.0170.00516.23
7.3.170.0170.00616.05
7.3.160.0160.00316.03
7.3.150.0150.00716.10
7.3.140.0160.00716.30
7.3.130.0150.00415.71
7.3.120.0080.00715.58
7.3.110.0090.01015.64
7.3.100.0130.00415.51
7.3.90.0090.00915.59
7.3.80.0090.00915.35
7.3.70.0080.00915.30
7.3.60.0080.00915.34
7.3.50.0100.00915.36
7.3.40.0090.00915.40
7.3.30.0130.00715.27
7.3.20.0140.00916.45
7.3.10.0110.00916.36
7.3.00.0130.00716.39
7.2.340.0120.00415.88
7.2.330.0240.01215.88
7.2.320.0290.00615.86
7.2.310.0160.00516.39
7.2.300.0110.00916.32
7.2.290.0130.00916.22
7.2.280.0120.00916.28
7.2.270.0190.00616.25
7.2.260.0140.00715.85
7.2.250.0120.01015.97
7.2.240.0120.00816.01
7.2.230.0120.01115.66
7.2.220.0120.00815.74
7.2.210.0070.01115.58
7.2.200.0140.00515.57
7.2.190.0100.01015.60
7.2.180.0110.00915.61
7.2.170.0110.00815.63
7.2.160.0120.01015.61
7.2.150.0130.00716.64
7.2.140.0110.00916.65
7.2.130.0110.01016.67
7.2.120.0090.01216.76
7.2.110.0130.00816.73
7.2.100.0130.00816.70
7.2.90.0150.01016.77
7.2.80.0130.00916.67
7.2.70.0140.00716.74
7.2.60.0100.01016.68
7.2.50.0100.00916.74
7.2.40.0090.00916.71
7.2.30.0130.00916.75
7.2.20.0130.00916.63
7.2.10.0110.00816.63
7.2.00.0150.00717.04
7.1.330.0170.00815.92
7.1.320.0180.00515.86
7.1.310.0140.00615.56
7.1.300.0150.01115.51
7.1.290.0150.00815.51
7.1.280.0150.00815.41
7.1.270.0130.01115.54
7.1.260.0150.00615.48
7.1.250.0120.00815.43
7.1.240.0160.00615.32
7.1.230.0170.00515.43
7.1.220.0200.00715.41
7.1.210.0180.00715.41
7.1.200.0220.01015.43
7.1.190.0160.00915.46
7.1.180.0200.00815.48
7.1.170.0150.00815.41
7.1.160.0170.00715.45
7.1.150.0170.00515.45
7.1.140.0170.00615.43
7.1.130.0150.00615.54
7.1.120.0140.01015.95
7.1.110.0120.01015.91
7.1.100.0170.00615.90
7.1.90.0190.00615.84
7.1.80.0150.00815.89
7.1.70.0150.00815.69
7.1.60.0160.00918.33
7.1.50.0210.00918.21
7.1.40.0210.00718.22
7.1.30.0190.00818.25
7.1.20.0190.00718.17
7.1.10.0180.00815.61
7.1.00.0190.00715.69
7.0.330.0160.01015.16
7.0.320.0190.00615.15
7.0.310.0170.00815.20
7.0.300.0160.01115.11
7.0.290.0190.00715.14
7.0.280.0220.00615.13
7.0.270.0200.00715.14
7.0.260.0170.00715.65
7.0.250.0210.00415.55
7.0.240.0190.00615.69
7.0.230.0150.00915.62
7.0.220.0140.01115.57
7.0.210.0230.00715.43
7.0.200.0170.00715.43
7.0.190.0150.00915.17
7.0.180.0170.00815.38
7.0.170.0170.00815.45
7.0.160.0190.00615.41
7.0.150.0170.00715.40
7.0.140.0230.00415.36
7.0.130.0190.00915.42
7.0.120.0210.00815.39
7.0.110.0170.00915.29
7.0.100.0160.00915.39
7.0.90.0170.00715.41
7.0.80.0190.00515.35
7.0.70.0180.00615.31
7.0.60.0170.00815.27
7.0.50.0190.00815.35
7.0.40.0160.00915.40
7.0.30.0160.00815.37
7.0.20.0230.01015.33
7.0.10.0180.00715.29
7.0.00.0160.00915.31
5.6.400.0180.00915.16
5.6.390.0180.00815.16
5.6.380.0140.01015.06
5.6.370.0210.00615.08
5.6.360.0200.00715.26
5.6.350.0210.00815.18
5.6.340.0180.01115.10
5.6.330.0150.00915.24
5.6.320.0170.00815.26
5.6.310.0150.00815.20
5.6.300.0140.01716.08
5.6.290.0150.02016.16
5.6.280.0160.01816.08
5.6.270.0140.01816.04
5.6.260.0150.01716.13
5.6.250.0150.01716.14
5.6.240.0170.01516.09
5.6.230.0160.01516.11
5.6.220.0150.01616.01
5.6.210.0140.01816.00
5.6.200.0150.01716.13
5.6.190.0160.01616.11
5.6.180.0190.01616.15
5.6.170.0140.01916.06
5.6.160.0170.02016.01
5.6.150.0150.01816.05
5.6.140.0160.01916.10
5.6.130.0170.01816.07
5.6.120.0200.01416.14
5.6.110.0160.02116.00
5.6.100.0180.01716.06
5.6.90.0160.01916.10
5.6.80.0120.02115.96
5.6.70.0190.01615.94
5.6.60.0200.01615.99
5.6.50.0170.01615.90
5.6.40.0160.01716.00
5.6.30.0140.01915.92
5.6.20.0190.01415.93
5.6.10.0190.01415.93
5.6.00.0160.01615.94
5.5.380.0220.00815.08
5.5.370.0170.01015.11
5.5.360.0210.00815.12
5.5.350.0220.00515.10
5.5.340.0170.01015.02
5.5.330.0170.01015.08
5.5.320.0170.01115.27
5.5.310.0210.00715.06
5.5.300.0200.00815.08
5.5.290.0180.00915.19
5.5.280.0240.00315.09
5.5.270.0160.01115.03
5.5.260.0190.00715.16
5.5.250.0170.00915.03
5.5.240.0180.00815.08
5.5.230.0190.01014.89
5.5.220.0170.01014.99
5.5.210.0170.01115.05
5.5.200.0140.01115.05
5.5.190.0160.01015.02
5.5.180.0180.00414.99
5.5.170.0140.01015.00
5.5.160.0090.01314.99
5.5.150.0110.00915.00
5.5.140.0140.00714.98
5.5.130.0140.00814.99
5.5.120.0110.01015.04
5.5.110.0120.01015.03
5.5.100.0120.00914.84
5.5.90.0140.00714.96
5.5.80.0180.00714.99
5.5.70.0150.00915.01
5.5.60.0100.01215.00
5.5.50.0150.01014.94
5.5.40.0150.00914.96
5.5.30.0140.01014.99
5.5.20.0150.00915.04
5.5.10.0140.01214.98
5.5.00.0120.01214.99
5.4.450.0160.00513.53
5.4.440.0140.00613.53
5.4.430.0120.00713.53
5.4.420.0120.00713.53
5.4.410.0150.00513.53
5.4.400.0130.00713.53
5.4.390.0150.00413.53
5.4.380.0140.00513.53
5.4.370.0160.00413.53
5.4.360.0150.00513.53
5.4.350.0120.00713.53
5.4.340.0120.00713.53
5.4.330.0140.00713.53
5.4.320.0120.00613.53
5.4.310.0140.00513.53
5.4.300.0130.00713.53
5.4.290.0100.01013.53
5.4.280.0150.00313.53
5.4.270.0120.00513.53
5.4.260.0140.00413.53
5.4.250.0090.00713.53
5.4.240.0130.00413.53
5.4.230.0100.00813.53
5.4.220.0110.00613.53
5.4.210.0150.00613.53
5.4.200.0130.00713.53
5.4.190.0120.00513.53
5.4.180.0160.00313.53
5.4.170.0150.00713.53
5.4.160.0140.00813.53
5.4.150.0120.00713.53
5.4.140.0120.00713.53
5.4.130.0100.00713.53
5.4.120.0110.00813.53
5.4.110.0110.00713.53
5.4.100.0120.00813.53
5.4.90.0120.00813.53
5.4.80.0110.00713.53
5.4.70.0110.00713.53
5.4.60.0120.00513.53
5.4.50.0110.00613.53
5.4.40.0090.00813.53
5.4.30.0130.00313.53
5.4.20.0100.00813.53
5.4.10.0090.00713.53
5.4.00.0130.00513.53
5.3.290.0110.00613.53
5.3.280.0110.00713.53
5.3.270.0100.00713.53
5.3.260.0120.00613.53
5.3.250.0070.01013.53
5.3.240.0150.00413.53
5.3.230.0120.00713.53
5.3.220.0130.00813.53
5.3.210.0130.00713.53
5.3.200.0120.00713.53
5.3.190.0160.00413.53
5.3.180.0090.00913.53
5.3.170.0120.00513.53
5.3.160.0130.00613.53
5.3.150.0130.00813.53
5.3.140.0140.00413.53
5.3.130.0130.00613.53
5.3.120.0140.00613.53
5.3.110.0120.00713.53
5.3.100.0130.00613.53
5.3.90.0110.00813.53
5.3.80.0100.00913.53
5.3.70.0150.00413.53
5.3.60.0130.00713.53
5.3.50.0140.00613.53
5.3.40.0150.00713.53
5.3.30.0120.00813.53
5.3.20.0130.00813.53
5.3.10.0110.00913.53
5.3.00.0100.01013.53
5.2.170.0130.00313.53
5.2.160.0100.00613.53
5.2.150.0110.00613.53
5.2.140.0130.00413.53
5.2.130.0130.00413.53
5.2.120.0140.00313.53
5.2.110.0110.00513.53
5.2.100.0080.00813.53
5.2.90.0080.00813.53
5.2.80.0140.00413.53
5.2.70.0120.00413.53
5.2.60.0100.00613.53
5.2.50.0100.00713.53
5.2.40.0140.00413.53
5.2.30.0090.00813.53
5.2.20.0120.00513.53
5.2.10.0090.00613.53
5.2.00.0090.00713.53
5.1.60.0110.00313.53
5.1.50.0100.00613.53
5.1.40.0110.00313.53
5.1.30.0100.00513.53
5.1.20.0110.00313.53
5.1.10.0060.00813.53
5.1.00.0100.00613.53
5.0.50.0090.00313.53
5.0.40.0060.00613.53
5.0.30.0070.00513.53
5.0.20.0080.00413.53
5.0.10.0050.00713.53
5.0.00.0070.00513.53
4.4.90.0070.00313.53
4.4.80.0030.00713.53
4.4.70.0050.00313.53
4.4.60.0050.00413.53
4.4.50.0060.00313.53
4.4.40.0050.00313.53
4.4.30.0040.00413.53
4.4.20.0070.00113.53
4.4.10.0050.00313.53
4.4.00.0060.00213.53
4.3.110.0060.00213.53
4.3.100.0070.00213.53
4.3.90.0040.00313.53
4.3.80.0040.00413.53
4.3.70.0040.00313.53
4.3.60.0030.00513.53
4.3.50.0090.00113.53
4.3.40.0060.00313.53
4.3.30.0040.00313.53
4.3.20.0040.00413.53
4.3.10.0050.00213.53
4.3.00.0060.00113.53

preferences:
86.38 ms | 403 KiB | 5 Q