3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace AcmeSomething; 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.0000.01518.52
8.3.50.0150.00920.97
8.3.40.0120.00318.92
8.3.30.0150.00018.78
8.3.20.0040.00420.13
8.3.10.0080.00023.66
8.3.00.0040.00423.52
8.2.180.0110.01118.41
8.2.170.0070.00718.97
8.2.160.0090.00622.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00019.70
8.2.120.0050.00226.35
8.2.110.0070.00320.82
8.2.100.0080.00417.80
8.2.90.0030.00519.09
8.2.80.0030.00518.05
8.2.70.0090.00017.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0040.00422.00
8.2.30.0040.00419.56
8.2.20.0000.00817.84
8.2.10.0060.00318.07
8.2.00.0050.00218.17
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0040.00719.30
8.1.220.0040.00417.89
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0040.00417.48
8.1.180.0080.00018.10
8.1.170.0040.00418.57
8.1.160.0040.00420.74
8.1.150.0050.00218.93
8.1.140.0050.00319.71
8.1.130.0000.00817.81
8.1.120.0040.00417.51
8.1.110.0040.00417.54
8.1.100.0000.00717.48
8.1.90.0050.00217.58
8.1.80.0030.00517.54
8.1.70.0000.00717.46
8.1.60.0090.00017.54
8.1.50.0040.00417.49
8.1.40.0040.00417.56
8.1.30.0080.00017.71
8.1.20.0040.00417.73
8.1.10.0040.00417.54
8.1.00.0060.00617.60
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0000.00717.36
8.0.260.0000.00617.21
8.0.250.0070.00016.95
8.0.240.0040.00417.05
8.0.230.0000.00717.05
8.0.220.0040.00416.93
8.0.210.0040.00416.90
8.0.200.0030.00316.94
8.0.190.0000.00817.10
8.0.180.0040.00417.00
8.0.170.0030.00517.08
8.0.160.0000.00717.06
8.0.150.0000.00716.97
8.0.140.0030.00616.92
8.0.130.0030.00313.38
8.0.120.0030.00616.86
8.0.110.0070.00017.03
8.0.100.0000.00817.10
8.0.90.0050.00316.98
8.0.80.0000.01517.06
8.0.70.0000.00716.84
8.0.60.0000.00816.87
8.0.50.0040.00416.96
8.0.30.0130.00517.13
8.0.20.0090.01117.40
8.0.10.0000.00816.91
8.0.00.0090.00916.91
7.4.330.0000.00516.84
7.4.320.0000.00616.57
7.4.300.0100.00016.66
7.4.290.0030.00316.68
7.4.280.0030.00616.64
7.4.270.0000.00816.60
7.4.260.0000.00716.56
7.4.250.0050.00316.51
7.4.240.0030.00416.63
7.4.230.0040.00416.65
7.4.220.0130.00616.61
7.4.210.0090.00516.55
7.4.200.0070.00016.77
7.4.160.0040.01116.68
7.4.150.0220.00017.40
7.4.140.0060.01217.86
7.4.130.0060.01016.53
7.4.120.0090.00816.68
7.4.110.0090.00916.56
7.4.100.0060.01016.56
7.4.90.0070.01416.71
7.4.80.0120.01019.39
7.4.70.0090.00616.73
7.4.60.0110.00516.53
7.4.50.0060.01016.49
7.4.40.0130.00316.33
7.4.30.0130.00316.61
7.4.00.0070.00714.66
7.3.330.0000.00513.40
7.3.320.0000.00613.23
7.3.310.0070.00016.51
7.3.300.0020.00516.25
7.3.290.0040.00416.42
7.3.280.0070.01016.44
7.3.270.0110.00817.40
7.3.260.0030.01316.78
7.3.250.0100.00916.48
7.3.240.0110.00516.39
7.3.230.0130.00416.61
7.3.210.0110.00816.62
7.3.200.0110.00719.39
7.3.190.0040.01516.68
7.3.180.0100.01016.48
7.3.170.0070.01016.50
7.3.160.0110.00816.48
7.3.10.0230.00015.95
7.3.00.0200.00316.08
7.2.330.0060.01216.56
7.2.320.0100.00716.78
7.2.310.0040.01316.48
7.2.300.0000.01716.74
7.2.290.0130.00516.85
7.2.130.0150.00616.59
7.2.120.0160.00616.82
7.2.110.0070.01116.89
7.2.100.0100.00316.36
7.2.90.0100.01016.55
7.2.80.0130.00316.55
7.2.70.0040.01816.30
7.2.60.0100.00816.88
7.2.50.0090.01216.57
7.2.40.0170.01016.29
7.2.30.0190.00616.39
7.2.20.0180.01116.15
7.2.10.0100.00716.32
7.2.00.0130.01316.59
7.1.250.0120.00615.28
7.1.200.0070.00715.46
7.1.70.0100.00717.19
7.1.60.0110.01419.30
7.1.50.0070.01017.04
7.1.00.0070.07322.31
7.0.200.0030.00616.46
7.0.60.0270.07321.75
7.0.50.0030.04717.89
7.0.40.0030.09320.24
7.0.30.0230.05720.23
7.0.20.0270.05720.29
7.0.10.0070.05320.12
7.0.00.0070.09020.14
5.6.280.0000.06720.94
5.6.210.0070.03720.52
5.6.200.0170.04018.16
5.6.190.0070.04320.43
5.6.180.0270.04320.77
5.6.170.0200.03720.71
5.6.160.0070.06320.54
5.6.150.0070.05318.16
5.6.140.0230.06318.18
5.6.130.0030.04018.16
5.6.120.0030.09021.03
5.6.110.0130.07721.05
5.6.100.0130.08020.99
5.6.90.0000.09020.98
5.6.80.0070.04020.40
5.5.350.0330.07320.51
5.5.340.0130.07317.99
5.5.330.0070.08720.25
5.5.320.0630.07020.27
5.5.310.0200.07320.37
5.5.300.0070.08318.05
5.5.290.0030.06017.98
5.5.280.0030.04320.66
5.5.270.0130.08320.88
5.5.260.0100.05720.88
5.5.250.0100.08020.81
5.5.240.0200.07320.28

preferences:
57.38 ms | 401 KiB | 5 Q