3v4l.org

run code in 300+ PHP versions simultaneously
<?php // //echo password_hash("key", PASSWORD_DEFAULT); // $hash = '$2y$10$kjbEIdPANKI/MwQrdIH8.OI1K.WKrjk4.mW7OzOuCUNcddTYWNgfu'; // if(password_verify("key", $hash)=== TRUE){ // ECHO "FOUND"; // }else { // echo "NOT FOUND";} $bobKeypair = sodium_crypto_box_keypair(); $bobPublicKey = sodium_crypto_box_publickey($bobKeypair); $key = base64_encode($bobPublicKey); echo $key; // Then share $bobPublicKey with Node A # Transmission: /* Sending from Node A to Node B */ $message = "Thư mật nè Hi there"; $ciphertext = sodium_crypto_box_seal($message, base64_decode($key)); //echo base64_decode($ciphertext); /* On Node B, receiving an encrypted message from Node A */ echo $decrypted = sodium_crypto_box_seal_open($ciphertext, $bobKeypair);

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.5.10.0100.00816.41
8.5.00.0150.00920.15
8.4.150.0020.00014.05
8.4.140.0120.01017.66
8.4.130.0120.00617.91
8.4.120.0100.00820.63
8.4.110.0100.00822.67
8.4.100.0110.00917.88
8.4.90.0140.00722.64
8.4.80.0060.00317.91
8.4.70.0040.00417.73
8.4.60.0120.00920.46
8.4.50.0070.01222.54
8.4.40.0050.00517.59
8.4.30.0120.00319.53
8.4.20.0100.00719.67
8.4.10.0080.01217.62
8.3.280.0120.00918.29
8.3.270.0100.01016.42
8.3.260.0090.01016.79
8.3.250.0080.00819.29
8.3.240.0130.00516.82
8.3.230.0090.01116.97
8.3.220.0080.00817.25
8.3.210.0120.00718.16
8.3.200.0070.00216.73
8.3.190.0100.00917.33
8.3.180.0180.00216.52
8.3.170.0070.01117.12
8.3.160.0070.00720.00
8.3.150.0150.00018.61
8.3.140.0040.00417.03
8.3.130.0080.00018.45
8.3.120.0040.00418.57
8.3.110.0080.00016.50
8.3.100.0040.01516.75
8.3.90.0040.00418.43
8.3.80.0050.00518.56
8.3.70.0100.00716.38
8.3.60.0110.00718.30
8.3.50.0240.00817.86
8.3.40.0100.00618.68
8.3.30.0000.01518.78
8.3.20.0080.00319.23
8.3.10.0040.00419.32
8.3.00.0000.00821.75
8.2.290.0120.00720.33
8.2.280.0030.00518.41
8.2.270.0090.00617.46
8.2.260.0060.01216.84
8.2.250.0030.00618.39
8.2.240.0100.00018.81
8.2.230.0050.00520.94
8.2.220.0110.00724.06
8.2.210.0190.00026.77
8.2.200.0060.00618.41
8.2.190.0080.00816.63
8.2.180.0130.00618.42
8.2.170.0070.01422.96
8.2.160.0090.00621.32
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00319.76
8.2.120.0040.00426.35
8.2.110.0060.00319.58
8.2.100.0040.00819.76
8.2.90.0000.00817.50
8.2.80.0030.00518.92
8.2.70.0050.00318.16
8.2.60.0030.00618.18
8.2.50.0040.00418.10
8.2.40.0040.00419.56
8.2.30.0000.00719.61
8.2.20.0040.00418.11
8.2.10.0000.00818.13
8.2.00.0000.00819.56
8.1.330.0090.00422.16
8.1.320.0110.00816.13
8.1.310.0080.00018.56
8.1.300.0040.01219.75
8.1.290.0040.00818.88
8.1.280.0090.00925.92
8.1.270.0080.00024.00
8.1.260.0030.00626.35
8.1.250.0090.00328.09
8.1.240.0080.00617.23
8.1.230.0080.00422.85
8.1.220.0090.00018.81
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0090.00017.35
8.1.180.0000.00818.10
8.1.170.0060.00318.75
8.1.160.0040.00418.95
8.1.150.0040.00418.80
8.1.140.0090.00017.75
8.1.130.0080.00019.18
8.1.120.0000.00717.48
8.1.110.0070.00017.43
8.1.100.0070.00017.53
8.1.90.0040.00417.56
8.1.80.0000.00817.49
8.1.70.0030.00317.42
8.1.60.0040.00417.63
8.1.50.0050.00317.57
8.1.40.0040.00417.56
8.1.30.0040.00417.59
8.1.20.0110.00017.48
8.1.10.0030.00517.54
8.1.00.0030.00617.52
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0070.00018.58
8.0.270.0030.00317.43
8.0.260.0000.00819.19
8.0.250.0000.00717.08
8.0.240.0040.00416.95
8.0.230.0000.00716.83
8.0.220.0030.00516.86
8.0.210.0000.00716.95
8.0.200.0030.00316.95
8.0.190.0000.00816.91
8.0.180.0030.00616.80
8.0.170.0060.00316.96
8.0.160.0030.00416.88
8.0.150.0050.00616.99
8.0.140.0070.00016.87
8.0.130.0060.00013.32
8.0.120.0000.00716.96
8.0.110.0000.00816.76
8.0.100.0050.00216.95
8.0.90.0070.00016.83
8.0.80.0110.00816.81
8.0.70.0030.00516.83
8.0.60.0040.00416.87
8.0.50.0040.00416.85
8.0.30.0120.00516.94
8.0.20.0100.01017.40
8.0.10.0000.00716.94
8.0.00.0130.01116.76
7.4.330.0020.00215.55
7.4.320.0000.00716.48
7.4.300.0000.00716.51
7.4.290.0040.00416.47
7.4.280.0070.00016.47
7.4.270.0000.00816.36
7.4.260.0040.00416.45
7.4.250.0040.00416.41
7.4.240.0040.00416.45
7.4.230.0000.00716.58
7.4.220.0050.00316.50
7.4.210.0110.00616.69
7.4.200.0000.00716.48
7.4.160.0110.00816.57
7.4.140.0120.01317.86
7.4.130.0120.00616.49
7.4.120.0120.00816.54
7.4.110.0070.01116.50
7.4.100.0070.01016.51
7.4.90.0070.01016.66
7.4.80.0130.01019.39
7.4.70.0030.01416.60
7.4.60.0100.00616.57
7.4.50.0050.00816.70
7.4.40.0090.00916.61
7.4.00.0060.00915.00
7.3.330.0000.00612.97
7.3.320.0050.00013.14
7.3.310.0030.00316.08
7.3.300.0030.00316.18
7.3.290.0000.00716.25
7.3.280.0090.00616.24
7.3.260.0090.00816.28
7.3.240.0070.01116.49
7.3.230.0140.00316.18
7.3.210.0090.00816.52
7.3.200.0100.00716.53
7.3.190.0100.00716.25
7.3.180.0100.00616.28
7.3.170.0110.00516.52
7.3.160.0030.01316.55
7.3.10.0090.00616.44
7.3.00.0040.01116.48
7.2.330.0040.01416.74
7.2.320.0120.00616.39
7.2.310.0080.01116.46
7.2.300.0150.00916.75
7.2.290.0060.01816.42
7.2.130.0130.00016.60
7.2.120.0070.01116.68
7.2.110.0100.00716.45
7.2.100.0060.00916.68
7.2.90.0130.00316.82
7.2.80.0100.00316.76
7.2.70.0030.00616.57
7.2.60.5400.00615.56
7.2.50.4860.00815.59
7.2.40.5070.01115.88
7.2.30.4790.00815.66
7.2.20.4260.00815.89
7.2.10.4470.00715.80
7.2.00.4930.00815.86
7.1.250.0120.00315.43
7.1.200.0080.00315.73
7.1.170.7290.00613.68
7.1.160.8610.01116.61
7.1.150.7090.00916.52
7.1.140.6530.00916.50
7.1.130.7700.01016.42
7.1.120.6960.00716.71
7.1.110.7340.01016.11
7.1.100.7340.01115.64
7.1.91.1640.01015.94
7.1.81.0830.00816.08
7.1.70.9610.00815.18
7.1.60.9350.01633.17
7.1.51.3650.01332.74
7.1.41.2780.01632.55
7.1.30.8420.01032.38
7.1.21.0600.01232.79
7.1.10.9110.01014.56
7.1.00.5400.01214.58

preferences:
40.33 ms | 403 KiB | 5 Q