3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dn = array( "countryName" => "UK", "stateOrProvinceName" => "Somerset", "localityName" => "Glastonbury", "organizationName" => "The Brain Room Limited", "organizationalUnitName" => "PHP Documentation Team", "commonName" => "Wez Furlong", "emailAddress" => "wez@example.com" ); // Generate a new private (and public) key pair $privkey = openssl_pkey_new(); // Generate a certificate signing request $csr = openssl_csr_new($dn, $privkey); // You will usually want to create a self-signed certificate at this // point until your CA fulfills your request. // This creates a self-signed cert that is valid for 365 days $sscert = openssl_csr_sign($csr, null, $privkey, 365); // Now you will want to preserve your private key, CSR and self-signed // cert so that they can be installed into your web server, mail server // or mail client (depending on the intended use of the certificate). // This example shows how to get those things into variables, but you // can also store them directly into files. // Typically, you will send the CSR on to your CA who will then issue // you with the "real" certificate. openssl_csr_export($csr, $csrout) and var_dump($csrout); openssl_x509_export($sscert, $certout) and var_dump($certout); openssl_pkey_export($privkey, $pkeyout, "mypassword") and var_dump($pkeyout); // Show any errors that occurred here while (($e = openssl_error_string()) !== false) { echo $e . "\n"; }

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.70.0140.00016.63
8.3.60.0040.01118.55
8.3.50.0160.00221.21
8.3.40.0070.01118.71
8.3.30.0100.00320.13
8.3.20.0000.00818.76
8.3.10.0080.00021.22
8.3.00.0040.00422.30
8.2.180.0100.00716.63
8.2.170.0120.00622.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0060.00319.39
8.2.100.0000.01117.72
8.2.90.0030.00519.13
8.2.80.0070.00019.38
8.2.70.0050.00317.63
8.2.60.0080.00017.80
8.2.50.0000.01018.07
8.2.40.0030.00519.88
8.2.30.0080.00021.28
8.2.20.0040.00417.64
8.2.10.0040.00417.75
8.2.00.0070.00417.62
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00820.68
8.1.230.0040.00720.97
8.1.220.0080.00018.77
8.1.210.0030.00718.92
8.1.200.0040.00817.35
8.1.190.0070.00017.54
8.1.180.0060.00318.10
8.1.170.0050.00318.41
8.1.160.0030.00518.83
8.1.150.0040.00418.63
8.1.140.0000.00817.38
8.1.130.0000.00717.82
8.1.120.0040.00417.30
8.1.110.0020.00517.30
8.1.100.0000.00717.39
8.1.90.0000.00717.45
8.1.80.0000.00717.38
8.1.70.0000.00917.38
8.1.60.0090.00017.54
8.1.50.0040.00417.30
8.1.40.0050.00317.47
8.1.30.0000.00717.67
8.1.20.0080.00017.65
8.1.10.0040.00417.63
8.1.00.0040.00417.42
8.0.300.0030.00619.73
8.0.290.0040.00417.04
8.0.280.0000.00718.38
8.0.270.0040.00417.27
8.0.260.0060.00016.86
8.0.250.0050.00316.98
8.0.240.0000.00916.93
8.0.230.0070.00016.92
8.0.220.0030.00316.88
8.0.210.0030.00316.90
8.0.200.0030.00316.97
8.0.190.0040.00416.96
8.0.180.0080.00016.95
8.0.170.0030.00516.87
8.0.160.0030.00316.80
8.0.150.0080.00016.73
8.0.140.0040.00416.85
8.0.130.0060.00013.37
8.0.120.0000.00916.86
8.0.110.0070.00016.96
8.0.100.0000.00816.75
8.0.90.0000.00816.84
8.0.80.0100.00516.82
8.0.70.0040.00416.85
8.0.60.0060.00316.80
8.0.50.0040.00416.94
8.0.30.0080.01316.86
8.0.20.0130.00517.40
8.0.10.0000.00817.09
8.0.00.0130.00716.71
7.4.330.0050.00016.79
7.4.320.0000.00716.35
7.4.300.0030.00316.56
7.4.290.0000.00716.60
7.4.280.0040.00416.51
7.4.270.0000.00716.51
7.4.260.0000.00716.53
7.4.250.0040.00416.49
7.4.240.0030.00316.52
7.4.230.0070.00016.60
7.4.220.0110.00516.55
7.4.210.0050.00916.51
7.4.200.0000.00716.31
7.4.190.0070.00016.77
7.4.160.0030.01516.57
7.4.150.0390.01317.40
7.4.140.0130.00717.86
7.4.130.0140.00516.56
7.4.120.0120.01016.63
7.4.110.0100.00716.58
7.4.100.0050.01316.66
7.4.90.0130.00316.53
7.4.80.0040.01519.39
7.4.70.0070.01016.61
7.4.60.0100.01016.67
7.4.50.0040.00416.31
7.4.40.0040.01522.77
7.4.30.0030.02016.59
7.4.00.0040.01115.13
7.3.330.0000.00513.09
7.3.320.0000.00513.13
7.3.310.0070.00016.35
7.3.300.0000.00616.23
7.3.290.0100.01016.21
7.3.280.0060.01116.22
7.3.270.0100.01317.40
7.3.260.0100.00918.24
7.3.250.0060.01416.43
7.3.240.0130.00316.25
7.3.230.0080.00816.41
7.3.210.0120.00516.30
7.3.200.0080.00919.39
7.3.190.0090.01216.20
7.3.180.0130.00716.11
7.3.170.0070.00816.49
7.3.160.0070.01616.15
7.3.120.0130.00014.78
7.3.40.0110.00614.67
7.3.30.0120.00414.49
7.3.20.0080.01016.46
7.3.10.0090.00716.45
7.3.00.0070.00916.38
7.2.330.0130.00616.59
7.2.320.0140.00716.58
7.2.310.0100.01016.59
7.2.300.0030.01216.45
7.2.290.0100.00616.53
7.2.170.0080.00814.89
7.2.160.0040.00814.80
7.2.150.0130.00916.73
7.2.140.0040.01016.81
7.2.130.0130.00516.66
7.2.120.0090.00916.60
7.2.110.0120.01016.53
7.2.100.0080.00916.63
7.2.90.0130.00516.46
7.2.80.0040.01216.27
7.2.70.0110.00916.66
7.2.60.0120.00916.67
7.2.50.0100.01016.62
7.2.40.0140.00716.59
7.2.30.0170.00716.43
7.2.20.0140.00716.62
7.2.10.0150.00916.72
7.2.00.0070.01017.29
7.1.280.0070.00515.55
7.1.270.0080.00315.38
7.1.260.0070.01115.56
7.1.250.0090.00715.51
7.1.240.0200.00915.57
7.1.230.0140.00815.45
7.1.220.0120.00615.63
7.1.210.0190.00915.54
7.1.200.0110.01015.59
7.1.190.0140.00815.55
7.1.180.0140.01015.50
7.1.170.0140.00715.44
7.1.160.0110.00715.43
7.1.150.0170.00815.53
7.1.140.0120.01215.51
7.1.130.0120.00715.44
7.1.120.0170.01015.58
7.1.110.0200.00915.63
7.1.100.0120.00916.36
7.1.90.0150.01115.35
7.1.80.0110.01215.36
7.1.70.0140.00815.98
7.1.60.0120.01216.73
7.1.50.0120.01315.95
7.1.40.0090.01215.34
7.1.30.0110.01315.28
7.1.20.0130.00915.31
7.1.10.0210.00515.40
7.1.00.0090.04617.76
7.0.330.0120.00415.27
7.0.320.0070.00915.22
7.0.310.0140.01115.20
7.0.300.0120.00715.13
7.0.290.0170.00615.24
7.0.280.0090.01315.23
7.0.270.0120.01115.18
7.0.260.0110.00815.12
7.0.250.0160.00715.30
7.0.240.0110.01315.18
7.0.230.0140.00815.23
7.0.220.0100.01215.33
7.0.210.0180.00515.26
7.0.200.0110.00415.60
7.0.190.0160.00815.10
7.0.180.0120.01115.23
7.0.170.0070.01615.18
7.0.160.0120.00915.00
7.0.150.0140.00715.02
7.0.140.0130.06117.64
7.0.130.0140.00515.09
7.0.120.0100.01115.14
7.0.110.0200.00615.12
7.0.100.0160.06016.84
7.0.90.0110.04016.77
7.0.80.0110.03916.69
7.0.70.0130.06916.99
7.0.60.0170.06516.78
7.0.50.0150.09717.00
7.0.40.0130.06617.01
7.0.30.0110.08516.96
7.0.20.0180.05916.95
7.0.10.0120.04317.00
7.0.00.0090.06816.89
5.6.400.0130.00614.21
5.6.390.0140.01314.01
5.6.380.0170.01114.24
5.6.370.0120.01113.93
5.6.360.0090.01214.34
5.6.350.0180.00614.23
5.6.340.0130.00714.23
5.6.330.0180.00814.08
5.6.320.0150.00813.91
5.6.310.0120.01014.18
5.6.300.0050.01213.92
5.6.290.0160.00914.09
5.6.280.0130.08316.46
5.6.270.0180.01314.13
5.6.260.0200.00714.04
5.6.250.0060.10216.40
5.6.240.0090.05216.38
5.6.230.0140.10516.17
5.6.220.0070.06516.37
5.6.210.0170.06416.25
5.6.200.0130.04916.71
5.6.190.0090.05916.56
5.6.180.0150.08216.37
5.6.170.0130.04616.36
5.6.160.0100.07616.57
5.6.150.0140.10416.52
5.6.140.0140.04216.45
5.6.130.0140.05816.50
5.6.120.0160.05416.39
5.6.110.0110.04016.62
5.6.100.0150.08016.61
5.6.90.0130.12016.47
5.6.80.0110.05016.23
5.6.70.0090.06016.26
5.6.60.0150.09116.26
5.6.50.0170.04216.09
5.6.40.0160.09416.38
5.6.30.0120.04816.15
5.6.20.0100.07316.25
5.6.10.0090.07416.29
5.6.00.0140.09316.28
5.5.380.0120.05016.17
5.5.370.0080.04316.09
5.5.360.0170.04616.36
5.5.350.0110.10416.45
5.5.340.0080.04816.48
5.5.330.0140.11316.40
5.5.320.0130.05416.29
5.5.310.0080.05316.43
5.5.300.0120.05216.45
5.5.290.0060.05916.34
5.5.280.0210.10516.32
5.5.270.0120.07316.53
5.5.260.0170.08916.52
5.5.250.0140.09016.18
5.5.240.0120.07516.12
5.5.230.0090.05616.24
5.5.220.0150.08816.22
5.5.210.0110.09616.04
5.5.200.0110.03916.12
5.5.190.0130.05316.29
5.5.180.0120.07516.14
5.5.170.0120.01014.17
5.5.160.0170.03816.11
5.5.150.0170.03916.17
5.5.140.0110.05816.19
5.5.130.0180.05716.07
5.5.120.0130.10816.15
5.5.110.0120.07216.15
5.5.100.0090.08416.02
5.5.90.0100.09915.99
5.5.80.0130.07816.22
5.5.70.0110.09316.07
5.5.60.0140.05715.88
5.5.50.0100.06716.12
5.5.40.0230.06416.18
5.5.30.0110.04216.20
5.5.20.0150.05016.17
5.5.10.0150.05815.98
5.5.00.0130.10115.93
5.4.450.0120.06113.48
5.4.440.0110.03913.55
5.4.430.0050.09313.69
5.4.420.0100.08113.72
5.4.410.0040.05913.45
5.4.400.0100.09513.45
5.4.390.0080.08713.43
5.4.380.0090.06213.41
5.4.370.0100.07113.40
5.4.360.0110.08013.46
5.4.350.0050.07613.58
5.4.340.0080.04613.41
5.4.330.0150.00010.57
5.4.320.0080.06713.47
5.4.310.0080.10113.51
5.4.300.0050.04713.47
5.4.290.0120.08313.41
5.4.280.0050.07713.62
5.4.270.0050.06313.51
5.4.260.0080.06913.33
5.4.250.0050.06513.53
5.4.240.0090.06013.42
5.4.230.0060.07613.55
5.4.220.0120.03713.50
5.4.210.0080.08513.32
5.4.200.0070.05613.47
5.4.190.0070.11613.48
5.4.180.0110.06213.46
5.4.170.0060.04213.31
5.4.160.0050.04013.54
5.4.150.0030.09013.44
5.4.140.0100.02812.56
5.4.130.0090.01612.43
5.4.120.0090.02412.69
5.4.110.0050.01912.49
5.4.100.0050.02112.47
5.4.90.0060.02712.41
5.4.80.0090.01812.58
5.4.70.0080.01112.60
5.4.60.0080.01612.52
5.4.50.0090.02812.49
5.4.40.0060.03012.64
5.4.30.0040.02112.38
5.4.20.0080.02712.45
5.4.10.0060.02612.64
5.4.00.0070.02312.26
5.3.290.0100.02611.82
5.3.280.0120.01711.67
5.3.270.0120.01311.70
5.3.260.0030.02211.63
5.3.250.0070.01811.68
5.3.240.0040.01811.59
5.3.230.0050.02111.63
5.3.220.0060.02811.70
5.3.210.0060.01511.65
5.3.200.0080.01511.57
5.3.190.0070.02611.70
5.3.180.0040.02811.83
5.3.170.0060.02511.79
5.3.160.0110.02411.78
5.3.150.0050.01911.84
5.3.140.0050.02211.77
5.3.130.0090.02611.68
5.3.120.0040.03111.68
5.3.110.0050.02511.78
5.3.100.0170.02211.53
5.3.90.0080.03111.55
5.3.80.0110.02111.51
5.3.70.0050.01811.50
5.3.60.0070.02711.48
5.3.50.0140.02311.52
5.3.40.0070.03511.45
5.3.30.0080.02611.48
5.3.20.0050.02311.36
5.3.10.0090.03211.25
5.3.00.0120.01711.17

preferences:
53.74 ms | 401 KiB | 5 Q