3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getDomain() { return 'example.com'; } function getSubDomains() { return array('www.example.com'); } function register($domainKeys, $subdomains) { $domains = (array) getDomain(); if ($subdomains == null) { $domains = array_merge($domains, getSubdomains()); } else { $domains = array_merge($domains, $subdomains); } $san = implode(",", array_map(function ($dns) { return "DNS:" . $dns; }, $domains)); $csr = openssl_csr_new([ "CN" => reset($domains), "ST" => "Germany", "C" => "DE", "O" => "Unknown", "subjectAltName" => $san, "basicConstraints" => "CA:FALSE", "extendedKeyUsage" => "serverAuth", ], $privateKey, [ "digest_alg" => "sha256", "req_extensions" => "v3_req", ]); return $csr; } var_dump(register(null, (array)$nonset));

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.40.0060.00918.82
8.3.30.0070.01118.81
8.3.20.0040.00420.29
8.3.10.0040.00423.67
8.3.00.0050.00323.57
8.2.170.0140.00022.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.76
8.2.120.0040.00426.35
8.2.110.0060.00321.04
8.2.100.0110.00018.03
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0060.00318.04
8.2.50.0030.00618.07
8.2.40.0040.00422.14
8.2.30.0000.00719.52
8.2.20.0040.00417.75
8.2.10.0070.00017.95
8.2.00.0040.00417.95
8.1.270.0030.00623.91
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0000.01023.87
8.1.230.0080.00319.06
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0040.00817.35
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00720.83
8.1.150.0040.00418.96
8.1.140.0050.00319.59
8.1.130.0070.00017.66
8.1.120.0040.00417.38
8.1.110.0000.00817.49
8.1.100.0040.00417.50
8.1.90.0000.00817.37
8.1.80.0080.00017.39
8.1.70.0000.00717.45
8.1.60.0030.00517.50
8.1.50.0030.00617.54
8.1.40.0040.00417.50
8.1.30.0050.00317.64
8.1.20.0040.00417.59
8.1.10.0000.00717.54
8.1.00.0080.00317.54
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0000.00717.35
8.0.260.0000.00817.34
8.0.250.0000.00717.09
8.0.240.0030.00317.06
8.0.230.0040.00417.03
8.0.220.0040.00317.04
8.0.210.0040.00416.94
8.0.200.0040.00417.03
8.0.190.0040.00417.05
8.0.180.0000.00817.00
8.0.170.0000.00817.00
8.0.160.0070.00016.89
8.0.150.0030.00316.94
8.0.140.0000.00716.90
8.0.130.0030.00313.47
8.0.120.0030.00516.99
8.0.110.0020.00516.84
8.0.100.0070.00016.99
8.0.90.0040.00416.81
8.0.80.0060.01216.91
8.0.70.0040.00417.01
8.0.60.0000.00817.02
8.0.50.0000.00816.86
8.0.30.0140.00317.24
8.0.20.0150.00717.40
8.0.10.0040.00417.16
8.0.00.0120.00816.84
7.4.330.0050.00016.69
7.4.320.0000.00616.65
7.4.300.0050.00516.56
7.4.290.0000.00616.42
7.4.280.0030.00616.66
7.4.270.0000.00916.63
7.4.260.0000.00716.41
7.4.250.0040.00416.38
7.4.240.0020.00516.48
7.4.230.0000.00716.51
7.4.220.0070.01316.45
7.4.210.0050.01316.63
7.4.200.0000.00716.71
7.4.160.0030.01316.52
7.4.150.0100.00717.40
7.4.140.0150.00717.86
7.4.130.0070.01116.61
7.4.120.0110.00716.51
7.4.110.0130.00716.72
7.4.100.0140.01116.54
7.4.90.0100.00716.49
7.4.80.0070.01719.39
7.4.70.0150.00616.64
7.4.60.0060.01016.53
7.4.50.0030.01316.30
7.4.40.0050.01116.37
7.4.30.0170.00016.66
7.4.00.0060.00914.92
7.3.330.0000.00513.37
7.3.320.0020.00213.25
7.3.310.0070.00016.36
7.3.300.0040.00416.37
7.3.290.0070.00016.29
7.3.280.0080.00916.40
7.3.270.0060.01217.40
7.3.260.0110.00616.40
7.3.240.0060.01116.48
7.3.230.0100.00716.42
7.3.210.0150.00716.56
7.3.200.0030.01519.39
7.3.190.0140.00316.54
7.3.180.0140.00316.58
7.3.170.0100.00716.42
7.3.160.0090.00916.61
7.3.10.0120.00615.98
7.3.00.0060.01215.77
7.2.330.0030.01516.86
7.2.320.0060.01216.50
7.2.310.0150.00416.91
7.2.300.0060.00916.75
7.2.290.0080.00816.40
7.2.130.0140.00316.92
7.2.120.0090.01616.45
7.2.110.0090.00616.17
7.2.100.0110.00416.15
7.2.90.0000.01216.75
7.2.80.0190.00016.36
7.2.70.0240.00016.81
7.2.60.0080.00416.57
7.2.50.0090.00616.42
7.2.40.0060.00616.34
7.2.30.0090.00616.59
7.2.20.0100.00716.38
7.2.10.0120.00316.26
7.2.00.0120.00318.21
7.1.250.0060.00615.45
7.1.200.0100.00315.53
7.1.100.0090.00318.37
7.1.70.0030.00617.25
7.1.60.0070.01419.30
7.1.50.0090.00416.77
7.1.00.0000.19022.66
7.0.200.0040.00416.46
7.0.60.0200.43321.88
7.0.50.0100.10018.03
7.0.40.0070.29320.49
7.0.30.0300.38320.40
7.0.20.0370.26320.41
7.0.10.0030.20720.45
7.0.00.0070.19320.50
5.6.280.0000.12721.00
5.6.210.0100.32720.75
5.6.200.0100.10318.45
5.6.190.0070.14720.79
5.6.180.0330.07720.75
5.6.170.0200.21020.75
5.6.160.0030.08320.70
5.6.150.0000.08718.46
5.6.140.0070.17018.39
5.6.130.0000.35018.52
5.6.120.0070.31021.18
5.6.110.0100.15021.34
5.6.100.0070.15321.16
5.6.90.0070.16721.24
5.6.80.0070.31720.61
5.5.350.0300.22720.61
5.5.340.0030.12018.32
5.5.330.0100.16020.55
5.5.320.0500.19320.54
5.5.310.0230.07020.56
5.5.300.0100.20018.27
5.5.290.0070.20718.29
5.5.280.0030.16321.05
5.5.270.0230.19721.05
5.5.260.0130.16020.92
5.5.250.0100.06020.87
5.5.240.0130.13020.41

preferences:
38.8 ms | 400 KiB | 5 Q