3v4l.org

run code in 300+ PHP versions simultaneously
<?php use \Exception; class SomeException extends \Exception { } 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)); throw new SomeException("yo"); return $domains; } function register2($domainKeys, $subdomains) { try { register($domainKeys, $subdomains); } catch(Exception $e) { throw new \Exception("exception gevangen: " . $e->getMessage(), $e->getCode(), $e); } } var_dump(register2(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.60.0140.00618.30
8.3.50.0140.00820.99
8.3.40.0120.00618.97
8.3.30.0120.00618.70
8.3.20.0080.00020.07
8.3.10.0040.00423.61
8.3.00.0040.00423.61
8.2.180.0110.01118.29
8.2.170.0040.01122.96
8.2.160.0070.00720.17
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00419.82
8.2.120.0070.00026.35
8.2.110.0110.00021.13
8.2.100.0040.00717.72
8.2.90.0050.00319.05
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0070.00022.32
8.2.30.0040.00419.47
8.2.20.0080.00017.88
8.2.10.0070.00017.97
8.2.00.0040.00418.12
8.1.280.0070.01425.92
8.1.270.0030.00623.97
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00823.81
8.1.230.0080.00319.06
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0080.00018.69
8.1.160.0070.00020.87
8.1.150.0000.00718.81
8.1.140.0040.00419.61
8.1.130.0000.00817.87
8.1.120.0000.00817.54
8.1.110.0000.00717.40
8.1.100.0000.00717.40
8.1.90.0040.00417.39
8.1.80.0000.00717.40
8.1.70.0000.00717.46
8.1.60.0000.00917.61
8.1.50.0030.00617.58
8.1.40.0040.00417.59
8.1.30.0030.00517.69
8.1.20.0000.00917.66
8.1.10.0000.00717.61
8.1.00.0060.00317.42
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.56
8.0.270.0000.00717.41
8.0.260.0000.00617.29
8.0.250.0000.00717.13
8.0.240.0030.00317.05
8.0.230.0040.00416.99
8.0.220.0070.00017.04
8.0.210.0000.00817.06
8.0.200.0030.00316.93
8.0.190.0080.00017.05
8.0.180.0040.00417.07
8.0.170.0040.00417.08
8.0.160.0000.00717.09
8.0.150.0030.00517.01
8.0.140.0070.00016.84
8.0.130.0050.00013.42
8.0.120.0000.00816.83
8.0.110.0030.00516.91
8.0.100.0000.00716.89
8.0.90.0000.00716.95
8.0.80.0060.00916.97
8.0.70.0000.00816.96
8.0.60.0000.00716.87
8.0.50.0040.00417.07
8.0.30.0120.01017.23
8.0.20.0090.01017.40
8.0.10.0040.00417.10
8.0.00.0070.01416.97
7.4.330.0050.00016.69
7.4.320.0030.00316.41
7.4.300.0030.00516.70
7.4.290.0030.00316.54
7.4.280.0030.00616.65
7.4.270.0000.00716.63
7.4.260.0000.01016.67
7.4.250.0000.00716.65
7.4.240.0040.00416.67
7.4.230.0070.00016.36
7.4.220.0130.01316.60
7.4.210.0070.00816.59
7.4.200.0050.00216.38
7.4.160.0080.00816.45
7.4.150.0140.00417.40
7.4.140.0070.01017.86
7.4.130.0060.01016.58
7.4.120.0140.00416.66
7.4.110.0090.00916.55
7.4.100.0150.00916.56
7.4.90.0060.01216.61
7.4.80.0140.00419.39
7.4.70.0040.01316.65
7.4.60.0100.00716.30
7.4.50.0040.01116.57
7.4.40.0000.01716.52
7.4.30.0090.00916.52
7.4.00.0140.00014.82
7.3.330.0050.00013.32
7.3.320.0050.00013.23
7.3.310.0060.00316.42
7.3.300.0070.00016.39
7.3.290.0080.00016.39
7.3.280.0090.00816.38
7.3.270.0110.00717.40
7.3.260.0130.00316.55
7.3.250.0070.01316.58
7.3.240.0080.00916.51
7.3.230.0100.00716.45
7.3.210.0180.00016.38
7.3.200.0070.01119.39
7.3.190.0070.01416.43
7.3.180.0090.01216.43
7.3.170.0050.01116.47
7.3.160.0130.00616.47
7.3.120.0030.01015.06
7.3.110.0060.00914.79
7.3.100.0000.01614.99
7.3.90.0060.00914.58
7.3.80.0080.00815.18
7.3.70.0070.01015.02
7.3.60.0030.01314.70
7.3.50.0090.00614.90
7.3.40.0040.01114.93
7.3.30.0040.00714.79
7.3.20.0100.00716.56
7.3.10.0130.00016.49
7.3.00.0030.01416.54
7.2.330.0120.00916.71
7.2.320.0070.01016.81
7.2.310.0160.00416.79
7.2.300.0130.01016.51
7.2.290.0090.00916.70
7.2.240.0030.00914.79
7.2.230.0070.01015.19
7.2.220.0030.01014.94
7.2.210.0060.00615.31
7.2.200.0100.00714.93
7.2.190.0040.01115.21
7.2.180.0030.00915.11
7.2.170.0070.00415.14
7.2.160.0140.00415.23
7.2.150.0080.00316.86
7.2.140.0060.00917.00
7.2.130.0050.00516.92
7.2.120.0000.01416.86
7.2.110.0070.00716.97
7.2.100.0100.00317.16
7.2.90.0110.00616.75
7.2.80.0000.01617.10
7.2.70.0050.00617.04
7.2.60.0050.01017.02
7.2.50.0090.00617.03
7.2.40.0040.00816.83
7.2.30.0040.01417.00
7.2.20.0000.01017.00
7.2.10.0130.00317.16
7.2.00.0080.00818.22
7.1.330.0090.00615.76
7.1.320.0140.00715.63
7.1.310.0040.01115.80
7.1.300.0060.00915.92
7.1.290.0110.00315.79
7.1.280.0070.00715.51
7.1.270.0030.01015.66
7.1.260.0060.00915.80
7.1.250.0060.00315.69
7.1.200.0000.00815.88
7.1.100.0030.00617.77
7.1.70.0030.00617.21
7.1.60.0030.01019.30
7.1.50.0040.00817.04
7.1.00.0030.07722.43
7.0.200.0000.00816.86
7.0.60.0170.08321.87
7.0.50.0000.04717.72
7.0.40.0130.07720.04
7.0.30.0230.06720.14
7.0.20.0370.07020.21
7.0.10.0000.05020.35
7.0.00.0070.04720.06
5.6.280.0070.06321.02
5.6.210.0030.07720.52
5.6.200.0070.04018.20
5.6.190.0030.09320.64
5.6.180.0230.04320.58
5.6.170.0230.05320.54
5.6.160.0170.07320.44
5.6.150.0030.08318.25
5.6.140.0000.07718.27
5.6.130.0030.04018.19
5.6.120.0030.05721.05
5.6.110.0070.09321.06
5.6.100.0130.07721.02
5.6.90.0170.08021.02
5.6.80.0030.04020.38
5.5.350.0270.07020.54
5.5.340.0130.07718.01
5.5.330.0070.06020.27
5.5.320.0470.05720.31
5.5.310.0130.05720.19
5.5.300.0130.04017.96
5.5.290.0030.07718.05
5.5.280.0000.06720.70
5.5.270.0000.04720.89
5.5.260.0070.08320.81
5.5.250.0100.08020.78
5.5.240.0100.08020.21

preferences:
31.95 ms | 401 KiB | 5 Q