3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create the keypair $res=openssl_pkey_new(); // Get private key openssl_pkey_export($res, $privatekey); $privatekey=base64_encode($privatekey); // Get public key $publickey=openssl_pkey_get_details($res); $publickey=base64_encode($publickey["key"]); echo "Private Key:<BR>$privatekey<br><br>Public Key:<BR>$publickey<BR><BR>";

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.0080.00616.50
8.3.50.0130.00521.09
8.3.40.0070.00718.59
8.3.30.0120.00418.85
8.3.20.0050.00320.34
8.3.10.0070.00021.77
8.3.00.0090.00019.81
8.2.180.0090.01218.38
8.2.170.0070.01022.96
8.2.160.0130.00320.47
8.2.150.0040.00424.18
8.2.140.0100.01024.66
8.2.130.0050.00326.16
8.2.120.0040.00417.63
8.2.110.0100.00020.17
8.2.100.0120.00017.63
8.2.90.0040.00418.96
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00421.10
8.2.30.0000.00719.83
8.2.20.0030.00517.74
8.2.10.0040.00418.06
8.2.00.0040.00418.04
8.1.280.0140.00325.92
8.1.270.0080.00020.34
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.15
8.1.230.0030.00917.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0050.00318.59
8.1.160.0070.00021.92
8.1.150.0000.01018.80
8.1.140.0050.00317.28
8.1.130.0050.00217.58
8.1.120.0000.00717.35
8.1.110.0050.00217.30
8.1.100.0040.00417.20
8.1.90.0040.00417.37
8.1.80.0050.00317.30
8.1.70.0030.00317.36
8.1.60.0070.00017.41
8.1.50.0060.00317.36
8.1.40.0000.00817.43
8.1.30.0130.00017.60
8.1.20.0040.00417.42
8.1.10.0000.00817.53
8.1.00.0040.00417.38
8.0.300.0140.00018.77
8.0.290.0080.00016.75
8.0.280.0050.00318.34
8.0.270.0040.00417.21
8.0.260.0040.00417.16
8.0.250.0050.00316.88
8.0.240.0000.00716.98
8.0.230.0030.00316.96
8.0.220.0040.00416.83
8.0.210.0040.00416.80
8.0.200.0060.00016.96
8.0.190.0000.00716.86
8.0.180.0040.00416.98
8.0.170.0040.00416.83
8.0.160.0070.00016.86
8.0.150.0070.00016.87
8.0.140.0040.00416.79
8.0.130.0030.00313.38
8.0.120.0040.00416.80
8.0.110.0000.00816.78
8.0.100.0040.00416.92
8.0.90.0000.00716.80
8.0.80.0160.00616.81
8.0.70.0040.00416.90
8.0.60.0030.00316.78
8.0.50.0000.00716.74
8.0.30.0140.00317.06
8.0.20.0050.01317.40
8.0.10.0000.00816.89
8.0.00.0060.01016.54
7.4.330.0050.00015.08
7.4.320.0000.00716.38
7.4.300.0060.00016.43
7.4.290.0030.00516.55
7.4.280.0040.00416.44
7.4.270.0040.00416.40
7.4.260.0040.00416.42
7.4.250.0040.00416.32
7.4.240.0030.00316.54
7.4.230.0050.00316.36
7.4.220.0090.01616.40
7.4.210.0080.00716.51
7.4.200.0070.00016.25
7.4.160.0110.00416.43
7.4.150.0140.00317.40
7.4.140.0080.01217.86
7.4.130.0130.00816.60
7.4.120.0100.01016.51
7.4.110.0130.00616.53
7.4.100.0120.00916.42
7.4.90.0140.00316.40
7.4.80.0060.01219.39
7.4.70.0070.01016.41
7.4.60.0130.00316.25
7.4.50.0040.00416.48
7.4.40.0140.00416.37
7.4.30.0160.00616.45
7.4.00.0070.01114.83
7.3.330.0000.00513.01
7.3.320.0030.00313.09
7.3.310.0030.00316.17
7.3.300.0040.00416.36
7.3.290.0000.00716.27
7.3.280.0080.01016.25
7.3.270.0040.01317.40
7.3.260.0100.00616.31
7.3.250.0090.00816.43
7.3.240.0070.01116.21
7.3.230.0070.01116.39
7.3.210.0100.00716.21
7.3.200.0100.00716.27
7.3.190.0100.00616.25
7.3.180.0080.00816.51
7.3.170.0060.01116.50
7.3.160.0030.01216.24
7.3.120.0070.01014.71
7.3.110.0080.00614.85
7.3.100.0090.00514.67
7.3.90.0090.00914.64
7.3.80.0030.01314.53
7.3.70.0050.00914.79
7.3.60.0050.01214.79
7.3.50.0060.00614.55
7.3.40.0030.00914.58
7.3.30.0020.01214.88
7.3.20.0040.01116.66
7.3.10.0030.01116.47
7.3.00.0100.00216.64
7.2.330.0100.01016.16
7.2.320.0130.00616.33
7.2.310.0140.00816.52
7.2.300.0070.01016.43
7.2.290.0070.01016.32
7.2.250.0080.01115.07
7.2.240.0050.01114.92
7.2.230.0060.00514.90
7.2.220.0020.01115.04
7.2.210.0050.00814.86
7.2.200.0060.01214.92
7.2.190.0080.01014.89
7.2.180.0050.00814.96
7.2.170.0040.01214.90
7.2.160.0000.01414.87
7.2.150.0070.00716.46
7.2.140.0070.00716.91
7.2.130.0100.00616.73
7.2.120.0030.01316.84
7.2.110.0040.01116.65
7.2.100.0070.00716.71
7.2.90.0090.00616.86
7.2.80.0040.01216.83
7.2.70.0080.00816.67
7.2.60.0060.00616.80
7.2.50.0070.00716.89
7.2.40.0080.00016.46
7.2.30.0100.00316.84
7.2.20.0060.00916.73
7.2.10.0080.00816.74
7.2.00.0000.00916.79
7.1.330.0070.00815.64
7.1.320.0030.00915.54
7.1.310.0060.00815.64
7.1.300.0060.00615.49
7.1.290.0100.00315.56
7.1.280.0060.00715.55
7.1.270.0020.01115.60
7.1.260.0080.00515.75
7.1.250.0100.00315.77
7.1.200.0000.01115.49
7.1.100.0030.00918.18
7.1.70.0080.00017.05
7.1.60.0100.01020.03
7.1.50.0100.01316.80
7.1.00.0130.12022.75
7.0.200.0660.00314.86
7.0.60.0130.22720.25
7.0.50.0070.21318.05
7.0.40.0070.20020.14
7.0.30.0300.10320.37
7.0.20.0330.16320.25
7.0.10.0070.13020.50
7.0.00.0100.20720.24
5.6.280.0000.13321.22
5.6.210.0100.04320.83
5.6.200.0100.42018.39
5.6.190.0130.18720.69
5.6.180.3630.15020.79
5.6.170.0230.11720.57
5.6.160.0070.11020.73
5.6.150.0100.11318.43
5.6.140.0130.17018.45
5.6.130.0070.08718.38
5.6.120.0070.07721.13
5.6.110.0070.07021.26
5.6.100.0070.21021.28
5.6.90.0170.25721.16
5.6.80.0100.14720.76
5.6.70.3530.18320.64
5.5.350.0230.23020.56
5.5.340.0030.20718.13
5.5.330.0070.13020.38
5.5.320.3700.12720.31
5.5.310.0300.12720.38
5.5.300.0000.20018.18
5.5.290.0100.19018.07
5.5.280.0000.17020.91
5.5.270.0100.13021.16
5.5.260.0100.15021.07
5.5.250.0130.09320.98
5.5.240.0330.19320.36
5.4.450.0730.13319.69
5.4.440.0400.09719.86
5.4.430.0600.23019.68
5.4.420.0530.11319.68
5.4.410.0630.11319.53
5.4.400.0530.06319.36
5.4.390.0570.16719.45
5.4.380.0430.20719.35
5.4.370.0770.30019.31
5.4.360.0670.10719.19
5.4.350.0500.17319.18
5.4.340.0800.23719.30
5.4.320.0930.34019.03
5.4.310.0700.21319.36
5.4.300.0770.27019.17
5.4.290.0700.14319.32
5.4.280.0670.12319.33
5.4.270.0670.17319.35
5.4.260.0670.08319.52
5.4.250.0630.25319.32
5.4.240.0870.23019.44
5.4.230.0830.13319.45
5.4.220.0670.17019.44
5.4.210.0770.60718.99
5.4.200.0600.18719.45
5.4.190.0670.32319.16
5.4.180.0670.18018.99
5.4.170.0630.13719.32
5.4.160.0600.06319.31
5.4.150.0700.19019.36
5.4.140.0570.05716.44
5.4.130.0670.05016.38
5.4.120.0530.05716.23
5.4.110.0730.04716.45
5.4.100.0670.04316.50
5.4.90.0530.05716.45
5.4.80.0670.04716.44
5.4.70.0000.04316.20
5.4.60.0230.05016.21
5.4.50.0030.06316.31
5.4.40.0230.05016.38
5.4.30.0270.04316.44
5.4.20.0300.07016.46

preferences:
35.75 ms | 401 KiB | 5 Q