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.0120.00618.31
8.3.50.0120.00916.38
8.3.40.0090.00618.69
8.3.30.0090.00618.84
8.3.20.0060.00320.34
8.3.10.0080.00023.54
8.3.00.0040.00423.36
8.2.180.0110.01118.41
8.2.170.0120.00318.81
8.2.160.0120.00322.96
8.2.150.0000.00825.66
8.2.140.0060.00324.66
8.2.130.0000.00819.82
8.2.120.0000.00726.35
8.2.110.0070.00320.93
8.2.100.0040.00817.93
8.2.90.0030.00519.04
8.2.80.0000.01018.05
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0030.00522.29
8.2.30.0040.00419.44
8.2.20.0060.00317.93
8.2.10.0040.00418.18
8.2.00.0020.00518.11
8.1.280.0080.00625.92
8.1.270.0030.00623.97
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0100.00023.98
8.1.230.0070.00419.04
8.1.220.0030.00517.76
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0070.00020.86
8.1.150.0000.00719.00
8.1.140.0040.00419.62
8.1.130.0080.00017.80
8.1.120.0030.00517.40
8.1.110.0040.00417.43
8.1.100.0000.00717.37
8.1.90.0040.00417.38
8.1.80.0040.00417.45
8.1.70.0000.00817.58
8.1.60.0030.00617.52
8.1.50.0000.00817.63
8.1.40.0040.00417.54
8.1.30.0090.00017.73
8.1.20.0050.00217.57
8.1.10.0070.00017.65
8.1.00.0080.00417.45
8.0.300.0060.00318.77
8.0.290.0040.00417.00
8.0.280.0030.00318.48
8.0.270.0040.00417.18
8.0.260.0030.00317.26
8.0.250.0000.00716.97
8.0.240.0070.00017.13
8.0.230.0040.00417.06
8.0.220.0080.00017.01
8.0.210.0030.00517.01
8.0.200.0060.00017.01
8.0.190.0000.00816.95
8.0.180.0040.00417.05
8.0.170.0080.00017.01
8.0.160.0030.00317.03
8.0.150.0030.00316.84
8.0.140.0040.00416.99
8.0.130.0030.00313.44
8.0.120.0030.00617.00
8.0.110.0040.00416.93
8.0.100.0050.00316.81
8.0.90.0070.00016.88
8.0.80.0090.00617.02
8.0.70.0050.00316.86
8.0.60.0030.00516.83
8.0.50.0030.00516.84
8.0.30.0110.00817.25
8.0.20.0130.00917.40
8.0.10.0040.00417.13
8.0.00.0080.01216.94
7.4.330.0000.00516.71
7.4.320.0060.00016.62
7.4.300.0080.00016.56
7.4.290.0030.00316.46
7.4.280.0060.00316.61
7.4.270.0000.00816.64
7.4.260.0040.00416.63
7.4.250.0000.00816.60
7.4.240.0000.00716.56
7.4.230.0070.00016.53
7.4.220.0120.01516.66
7.4.210.0040.01016.62
7.4.200.0000.00816.39
7.4.160.0150.00016.34
7.4.150.0180.00017.40
7.4.140.0100.00717.86
7.4.130.0080.00816.58
7.4.120.0110.01116.65
7.4.110.0070.01016.66
7.4.100.0160.00616.60
7.4.90.0030.01416.63
7.4.80.0130.00719.39
7.4.70.0030.01316.61
7.4.60.0150.00016.39
7.4.50.0040.01216.66
7.4.40.0100.00716.54
7.4.30.0100.00716.53
7.4.00.0050.01215.00
7.3.330.0030.00313.19
7.3.320.0000.00613.23
7.3.310.0040.00416.40
7.3.300.0040.00416.40
7.3.290.0040.00416.41
7.3.280.0090.00816.41
7.3.270.0120.00317.40
7.3.260.0200.00316.53
7.3.250.0140.00516.46
7.3.240.0060.01216.49
7.3.230.0070.01416.39
7.3.210.0130.00416.43
7.3.200.0100.01319.39
7.3.190.0100.00616.39
7.3.180.0060.01016.33
7.3.170.0060.00916.40
7.3.160.0070.01416.63
7.3.120.0080.00814.64
7.3.110.0030.01514.78
7.3.100.0100.01014.94
7.3.90.0160.00314.80
7.3.80.0050.00814.96
7.3.70.0060.00914.92
7.3.60.0040.00414.65
7.3.50.0030.01214.76
7.3.40.0130.00314.91
7.3.30.0110.00314.72
7.3.20.0060.01016.64
7.3.10.0030.00716.51
7.3.00.0000.01316.70
7.2.330.0060.01316.52
7.2.320.0110.00616.88
7.2.310.0000.02116.64
7.2.300.0100.00716.64
7.2.290.0030.01416.66
7.2.250.0070.00715.13
7.2.240.0100.01014.93
7.2.230.0030.01315.33
7.2.220.0000.01115.05
7.2.210.0070.01115.03
7.2.200.0030.01415.21
7.2.190.0040.00815.08
7.2.180.0030.01415.19
7.2.170.0040.00814.89
7.2.60.0040.01116.88
7.2.00.0060.00619.32
7.1.330.0040.00915.72
7.1.320.0000.01415.89
7.1.310.0040.01115.71
7.1.300.0040.00815.78
7.1.290.0030.01215.88
7.1.280.0100.00315.77
7.1.270.0060.00615.75
7.1.260.0100.00315.55
7.1.200.0040.00815.63
7.1.100.0060.00318.09
7.1.70.0100.00317.03
7.1.60.0090.00619.30
7.1.50.0100.00016.93
7.1.00.0070.07322.37
7.0.200.0000.00716.92
7.0.60.0270.07721.73
7.0.50.0030.04017.74
7.0.40.0100.07320.40
7.0.30.0300.06320.16
7.0.20.0330.08320.06
7.0.10.0070.07020.19
7.0.00.0100.04020.23
5.6.280.0070.07021.02
5.6.210.0030.04020.78
5.6.200.0030.08318.14
5.6.190.0130.07720.63
5.6.180.0300.03720.60
5.6.170.0270.05720.39
5.6.160.0130.05020.54
5.6.150.0100.08018.19
5.6.140.0170.06318.19
5.6.130.0070.03718.16
5.6.120.0000.09321.04
5.6.110.0100.08321.04
5.6.100.0100.08721.02
5.6.90.0100.07321.10
5.6.80.0070.03720.38
5.5.350.0330.07020.40
5.5.340.0100.07718.00
5.5.330.0070.07020.47
5.5.320.0630.07020.24
5.5.310.0200.04320.39
5.5.300.0100.03317.94
5.5.290.0070.06018.05
5.5.280.0030.08320.82
5.5.270.0030.07020.98
5.5.260.0100.08020.81
5.5.250.0170.07720.63
5.5.240.0270.07020.38

preferences:
31.28 ms | 400 KiB | 5 Q