3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create the keypair $res=openssl_pkey_new(); // Get private key openssl_pkey_export($res, $privkey); // Get public key $pubkey=openssl_pkey_get_details($res); $pubkey=$pubkey["key"]; print_r($pubkey); print_r("\n<br>\n"); print_r($privkey);

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.0160.00318.43
8.3.50.0080.01021.25
8.3.40.0040.01118.84
8.3.30.0120.00618.89
8.3.20.0020.00520.25
8.3.10.0000.00821.73
8.3.00.0050.00317.93
8.2.180.0120.00316.50
8.2.170.0110.00422.96
8.2.160.0090.00620.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00717.50
8.2.110.0070.00322.20
8.2.100.0040.00817.84
8.2.90.0000.00919.09
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.90
8.2.50.0060.00318.10
8.2.40.0040.00420.62
8.2.30.0040.00420.63
8.2.20.0040.00417.70
8.2.10.0070.00018.05
8.2.00.0040.00417.92
8.1.280.0110.00425.92
8.1.270.0050.00322.15
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00320.39
8.1.230.0090.00317.45
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0000.01117.22
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0060.00318.34
8.1.160.0040.00421.95
8.1.150.0050.00318.80
8.1.140.0040.00417.37
8.1.130.0000.00717.62
8.1.120.0050.00217.38
8.1.110.0040.00417.38
8.1.100.0000.00817.20
8.1.90.0050.00317.35
8.1.80.0060.00317.39
8.1.70.0030.00317.29
8.1.60.0060.00317.35
8.1.50.0050.00317.36
8.1.40.0090.00417.51
8.1.30.0060.00317.54
8.1.20.0000.00817.63
8.1.10.0060.00317.55
8.1.00.0050.00317.44
8.0.300.0060.00318.77
8.0.290.0050.00316.75
8.0.280.0030.00318.37
8.0.270.0000.00717.15
8.0.260.0030.00317.07
8.0.250.0070.00016.93
8.0.240.0030.00316.95
8.0.230.0000.00716.94
8.0.220.0000.00716.95
8.0.210.0040.00416.89
8.0.200.0030.00316.96
8.0.190.0040.00416.99
8.0.180.0080.00016.80
8.0.170.0040.00416.90
8.0.160.0050.00216.96
8.0.150.0000.00716.92
8.0.140.0000.00716.88
8.0.130.0030.00513.38
8.0.120.0000.00916.90
8.0.110.0000.00716.90
8.0.100.0030.00516.95
8.0.90.0000.00716.71
8.0.80.0060.01016.92
8.0.70.0000.00716.71
8.0.60.0040.00416.80
8.0.50.0080.00016.95
8.0.30.0100.00716.97
8.0.20.0120.00717.40
8.0.10.0080.00017.00
8.0.00.0110.00816.57
7.4.330.0050.00015.08
7.4.320.0000.00716.39
7.4.300.0060.00016.46
7.4.290.0050.00316.58
7.4.280.0040.00716.41
7.4.270.0060.00316.58
7.4.260.0040.00416.49
7.4.250.0050.00216.41
7.4.240.0030.00416.42
7.4.230.0030.00316.49
7.4.220.0030.01316.60
7.4.210.0100.00916.35
7.4.200.0000.00716.36
7.4.160.0120.00416.27
7.4.150.0090.00917.40
7.4.140.0090.01317.86
7.4.130.0050.01216.52
7.4.120.0090.00916.48
7.4.110.0070.01016.70
7.4.100.0070.01016.42
7.4.90.0140.00316.44
7.4.80.0090.01119.39
7.4.70.0100.01016.49
7.4.60.0070.01116.63
7.4.50.0020.00216.34
7.4.40.0100.00616.47
7.4.30.0140.00316.33
7.4.00.0080.00814.89
7.3.330.0050.00013.18
7.3.320.0000.00613.10
7.3.310.0000.00716.10
7.3.300.0050.00216.32
7.3.290.0070.01116.23
7.3.280.0080.00716.21
7.3.270.0150.00417.40
7.3.260.0110.00716.54
7.3.250.0090.00816.48
7.3.240.0060.01016.57
7.3.230.0130.01016.54
7.3.210.0100.01316.43
7.3.200.0070.01016.18
7.3.190.0110.01116.22
7.3.180.0080.00816.30
7.3.170.0030.01716.27
7.3.160.0170.00416.21
7.3.120.0100.00714.71
7.3.110.0110.00614.91
7.3.100.0080.00614.69
7.3.90.0050.00714.78
7.3.80.0070.00814.73
7.3.70.0090.00714.75
7.3.60.0060.00814.65
7.3.50.0050.01014.83
7.3.40.0080.00414.72
7.3.30.0040.00914.79
7.3.20.0060.00416.54
7.3.10.0050.00716.65
7.3.00.0040.00816.60
7.2.330.0120.00916.66
7.2.320.0110.00616.52
7.2.310.0140.00316.49
7.2.300.0100.00716.47
7.2.290.0110.01116.37
7.2.250.0090.00814.99
7.2.240.0030.01514.91
7.2.230.0050.01114.82
7.2.220.0050.00814.66
7.2.210.0080.01014.84
7.2.200.0090.00614.86
7.2.190.0050.00814.87
7.2.180.0040.00914.96
7.2.170.0080.00714.97
7.2.60.0030.00916.41
7.2.00.0030.01019.08
7.1.330.0040.01115.60
7.1.320.0070.00215.72
7.1.310.0030.01115.67
7.1.300.0060.00715.66
7.1.290.0050.00715.68
7.1.280.0040.00915.39
7.1.270.0020.01115.60
7.1.260.0050.00715.75
7.1.200.0030.00615.59
7.1.100.0060.00618.30
7.1.70.0060.00917.25
7.1.60.0120.00319.20
7.1.50.0060.01017.02
7.1.00.0030.11722.59
7.0.200.0000.00716.82
7.0.60.0100.18720.12
7.0.50.0000.09318.03
7.0.40.0130.20720.41
7.0.30.0300.13320.41
7.0.20.0370.12020.36
7.0.10.0070.31720.25
7.0.00.0070.19720.38
5.6.280.0130.13721.20
5.6.210.0030.12020.84
5.6.200.0070.12718.29
5.6.190.0100.08320.65
5.6.180.0500.19320.95
5.6.170.0230.16320.79
5.6.160.0130.13320.70
5.6.150.0000.22718.41
5.6.140.0170.09018.40
5.6.130.0130.29318.37
5.6.120.0170.12721.20
5.6.110.0070.21721.36
5.6.100.0070.09021.11
5.6.90.0070.09021.34
5.6.80.0130.13720.57
5.5.350.0430.17720.54
5.5.340.0000.19718.23
5.5.330.0030.28320.58
5.5.320.0030.18320.36
5.5.310.0330.13320.52
5.5.300.0100.29018.22
5.5.290.0000.23018.12
5.5.280.0070.11321.12
5.5.270.0070.22321.14
5.5.260.0070.14020.91
5.5.250.0330.14320.78
5.5.240.0170.13320.46
5.4.450.0670.13719.33
5.4.440.0600.34319.30
5.4.430.0630.11019.47
5.4.420.0770.30019.54
5.4.410.0600.20319.50
5.4.400.0630.09019.13
5.4.390.0600.18718.98
5.4.380.0670.11019.29
5.4.370.0670.21019.15
5.4.360.0600.10019.43
5.4.350.0730.14718.98
5.4.340.0670.17319.30
5.4.320.0600.39319.26
5.4.310.0570.37719.13
5.4.300.0670.11019.34
5.4.290.0770.16319.09
5.4.280.0800.16719.34
5.4.270.0730.10019.45
5.4.260.0570.37719.45
5.4.250.0730.15319.30
5.4.240.0830.46018.96
5.4.230.0630.07018.98
5.4.220.0670.27719.12
5.4.210.0530.13019.33
5.4.200.0500.23319.33
5.4.190.0770.20318.97
5.4.180.0830.26018.96
5.4.170.0700.11319.23
5.4.160.0670.28319.32
5.4.150.0700.12319.21
5.4.140.0670.06016.21
5.4.130.0570.07016.13
5.4.120.0570.05016.20
5.4.110.0630.05716.49
5.4.100.0800.05316.43
5.4.90.0800.05016.29
5.4.80.0600.05316.49
5.4.70.0200.05316.39
5.4.60.0230.07716.36
5.4.50.0370.05316.31
5.4.40.0270.06316.45
5.4.30.0200.04016.43
5.4.20.0230.06716.27
5.4.10.0270.05016.43

preferences:
41.01 ms | 401 KiB | 5 Q