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); // 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.0070.00716.63
8.3.50.0120.00721.13
8.3.40.0040.01118.76
8.3.30.0090.00618.71
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0060.00319.55
8.2.180.0160.00918.31
8.2.170.0150.00022.96
8.2.160.0140.00020.47
8.2.150.0040.00424.18
8.2.140.0100.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00417.38
8.2.110.0090.00019.25
8.2.100.0060.00617.78
8.2.90.0050.00319.02
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00417.91
8.2.50.0060.00318.10
8.2.40.0060.00321.01
8.2.30.0000.00719.66
8.2.20.0050.00217.69
8.2.10.0030.00618.06
8.2.00.0030.00618.00
8.1.280.0040.01425.92
8.1.270.0030.01220.33
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00920.79
8.1.230.0090.00317.56
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0070.00022.04
8.1.150.0030.00618.68
8.1.140.0040.00417.29
8.1.130.0070.00017.59
8.1.120.0000.00717.36
8.1.110.0070.00017.35
8.1.100.0000.00717.25
8.1.90.0030.00517.23
8.1.80.0000.00717.22
8.1.70.0070.00017.32
8.1.60.0040.00417.47
8.1.50.0040.00417.44
8.1.40.0060.00317.35
8.1.30.0100.00017.60
8.1.20.0040.00417.64
8.1.10.0000.00717.37
8.1.00.0080.00317.45
8.0.300.0060.00318.77
8.0.290.0080.00016.71
8.0.280.0000.00718.30
8.0.270.0000.00817.11
8.0.260.0000.00817.07
8.0.250.0040.00416.93
8.0.240.0070.00016.95
8.0.230.0030.00316.95
8.0.220.0000.00716.92
8.0.210.0030.00316.91
8.0.200.0030.00316.85
8.0.190.0070.00017.01
8.0.180.0000.00816.84
8.0.170.0040.00416.83
8.0.160.0040.00416.88
8.0.150.0000.00716.75
8.0.140.0050.00316.89
8.0.130.0000.00513.29
8.0.120.0040.00416.89
8.0.110.0000.00816.95
8.0.100.0000.00716.89
8.0.90.0080.00016.86
8.0.80.0060.01516.88
8.0.70.0000.00716.73
8.0.60.0000.00816.79
8.0.50.0000.00716.85
8.0.30.0100.00617.17
8.0.20.0150.00717.40
8.0.10.0000.00816.74
8.0.00.0070.01216.79
7.4.330.0020.00215.08
7.4.320.0030.00316.50
7.4.300.0030.00316.58
7.4.290.0070.00016.35
7.4.280.0040.00416.43
7.4.270.0030.00316.49
7.4.260.0000.00816.51
7.4.250.0040.00416.34
7.4.240.0030.00316.45
7.4.230.0070.00016.35
7.4.220.0090.01616.49
7.4.210.0000.01716.51
7.4.200.0030.00316.36
7.4.160.0030.01216.47
7.4.150.0130.00417.40
7.4.140.0090.00917.86
7.4.130.0160.00616.54
7.4.120.0090.00816.42
7.4.110.0090.00916.46
7.4.100.0130.00616.50
7.4.90.0080.00816.54
7.4.80.0110.00719.39
7.4.70.0070.01016.61
7.4.60.0080.00816.50
7.4.50.0040.00416.54
7.4.40.0090.00916.47
7.4.30.0180.00616.59
7.4.00.0090.00314.70
7.3.330.0000.00513.10
7.3.320.0000.00513.09
7.3.310.0030.00516.22
7.3.300.0000.00716.22
7.3.290.0040.00416.28
7.3.280.0080.01216.27
7.3.270.0170.00717.40
7.3.260.0120.00916.20
7.3.250.0120.00816.29
7.3.240.0080.00816.44
7.3.230.0140.00716.39
7.3.210.0090.00616.30
7.3.200.0080.01216.34
7.3.190.0100.00716.47
7.3.180.0040.01216.34
7.3.170.0110.00916.27
7.3.160.0080.01116.26
7.2.330.0140.00316.69
7.2.320.0180.00316.56
7.2.310.0090.01316.56
7.2.300.0060.00916.39
7.2.290.0100.00716.20
7.2.60.0090.00316.88
7.2.00.0040.01119.51
7.1.200.0060.00615.63
7.1.100.0040.01118.04
7.1.70.0070.00416.94
7.1.60.0140.01020.03
7.1.50.0000.02216.98
7.1.00.0000.16722.80
7.0.200.0840.00314.79
7.0.60.0130.11320.16
7.0.50.0070.12018.00
7.0.40.0130.18720.45
7.0.30.0200.12320.37
7.0.20.0270.29320.32
7.0.10.0100.08720.25
7.0.00.0030.05320.36
5.6.210.0200.39720.86
5.6.200.0030.14018.39
5.6.190.0030.22320.75
5.6.180.3970.16720.69
5.6.170.0200.10720.84
5.6.160.0070.20720.55
5.6.150.0300.08318.39
5.6.140.0030.14718.44
5.6.130.0070.12318.41
5.6.120.0030.11021.17
5.6.110.0070.17021.24
5.6.100.0070.12021.25
5.6.90.0070.18021.16
5.6.80.0070.11020.55
5.5.350.0230.12720.57
5.5.340.0070.18318.15
5.5.330.0000.14020.41
5.5.320.3370.12020.48
5.5.310.0170.14720.68
5.5.300.0000.09018.21
5.5.290.0030.12318.19
5.5.280.0070.09321.12
5.5.270.0030.20021.12
5.5.260.0030.20021.08
5.5.250.0100.18020.99
5.5.240.4030.10020.47
5.4.450.0900.15719.33
5.4.440.0830.14019.63
5.4.430.0700.15319.62
5.4.420.0670.32019.84
5.4.410.0630.18019.35
5.4.400.0730.10719.14
5.4.390.0570.19319.45
5.4.380.0630.11719.42
5.4.370.0600.10719.00
5.4.360.0470.14319.52
5.4.350.0470.13719.30
5.4.340.0700.16319.17
5.4.320.0630.06019.26
5.4.310.0570.12019.52
5.4.300.0630.17019.38
5.4.290.0530.16319.33
5.4.280.0500.18019.30
5.4.270.0730.16019.15
5.4.260.0630.14719.33
5.4.250.0700.20319.46
5.4.240.0670.31019.54
5.4.230.0800.21319.51
5.4.220.0530.17719.33
5.4.210.0600.15019.51
5.4.200.0630.17319.48
5.4.190.0670.26019.32
5.4.180.0670.13319.29
5.4.170.0600.10319.01
5.4.160.0570.32019.36
5.4.150.0870.16319.34
5.4.140.0500.05016.23
5.4.130.0600.06016.48
5.4.120.0700.07716.34
5.4.110.0470.05716.39
5.4.100.0600.05016.38
5.4.90.0730.06016.12
5.4.80.0570.04716.21
5.4.70.0030.04016.37
5.4.60.0230.06716.36
5.4.50.0100.06316.31
5.4.40.0230.07016.31
5.4.30.0370.06016.38
5.4.20.0330.07316.15

preferences:
55.81 ms | 401 KiB | 5 Q