3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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($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.0080.00816.59
8.3.50.0280.00721.16
8.3.40.0110.01118.79
8.3.30.0070.01118.67
8.3.20.0000.00920.21
8.3.10.0050.00321.73
8.3.00.0040.00423.52
8.2.180.0190.00318.66
8.2.170.0070.00722.96
8.2.160.0070.00720.43
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00819.83
8.2.120.0070.00026.35
8.2.110.0000.00921.00
8.2.100.0060.00617.80
8.2.90.0040.00419.22
8.2.80.0050.00318.03
8.2.70.0060.00317.75
8.2.60.0040.00418.03
8.2.50.0030.00518.07
8.2.40.0050.00322.19
8.2.30.0040.00419.51
8.2.20.0040.00417.73
8.2.10.0040.00418.10
8.2.00.0040.00417.95
8.1.280.0070.01025.92
8.1.270.0000.00923.96
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0060.00323.98
8.1.230.0130.00019.03
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0030.00517.23
8.1.180.0030.00618.10
8.1.170.0000.00818.65
8.1.160.0000.00720.82
8.1.150.0040.00418.96
8.1.140.0040.00419.54
8.1.130.0000.00817.75
8.1.120.0040.00417.58
8.1.110.0070.00017.39
8.1.100.0040.00417.41
8.1.90.0070.00017.41
8.1.80.0040.00417.53
8.1.70.0040.00417.52
8.1.60.0030.00517.68
8.1.50.0000.00917.45
8.1.40.0030.00517.53
8.1.30.0050.00317.71
8.1.20.0030.00617.59
8.1.10.0000.00817.47
8.1.00.0100.00317.44
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0030.00318.48
8.0.270.0030.00317.36
8.0.260.0030.00317.23
8.0.250.0030.00317.09
8.0.240.0040.00417.04
8.0.230.0000.00717.09
8.0.220.0030.00516.98
8.0.210.0070.00017.02
8.0.200.0000.00717.07
8.0.190.0060.00317.08
8.0.180.0080.00016.93
8.0.170.0080.00017.05
8.0.160.0050.00217.03
8.0.150.0070.00016.88
8.0.140.0000.00816.88
8.0.130.0030.00313.43
8.0.120.0000.00916.97
8.0.110.0000.00717.00
8.0.100.0050.00216.95
8.0.90.0030.00316.83
8.0.80.0030.01317.00
8.0.70.0040.00417.06
8.0.60.0040.00416.91
8.0.50.0050.00316.86
8.0.30.0070.01317.27
8.0.20.0120.00817.40
8.0.10.0000.00717.00
8.0.00.0090.01016.99
7.4.330.0000.00616.85
7.4.320.0040.00416.63
7.4.300.0040.00716.56
7.4.290.0000.00716.66
7.4.280.0060.00316.53
7.4.270.0030.00316.52
7.4.260.0030.00716.62
7.4.250.0080.00016.54
7.4.240.0030.00416.62
7.4.230.0030.00316.39
7.4.220.0120.00616.66
7.4.210.0080.01316.59
7.4.200.0050.00216.64
7.4.160.0130.00316.58
7.4.150.0120.00617.40
7.4.140.0180.00317.86
7.4.130.0090.00816.57
7.4.120.0130.00516.69
7.4.110.0040.01516.50
7.4.100.0170.00616.75
7.4.90.0110.00716.55
7.4.80.0140.01119.39
7.4.70.0070.01116.69
7.4.60.0100.00716.66
7.4.50.0070.00716.64
7.4.40.0090.00916.36
7.4.30.0070.01516.59
7.4.00.0030.01014.93
7.3.330.0000.00513.39
7.3.320.0030.00313.37
7.3.310.0030.00316.50
7.3.300.0030.00316.27
7.3.290.0030.00316.27
7.3.280.0090.00716.40
7.3.270.0070.01717.40
7.3.260.0110.00616.46
7.3.250.0130.00616.52
7.3.240.0140.00716.57
7.3.230.0030.01316.54
7.3.210.0120.00316.35
7.3.200.0100.00719.39
7.3.190.0060.01016.49
7.3.180.0140.00716.61
7.3.170.0120.00916.37
7.3.160.0090.01216.32
7.2.330.0040.01516.82
7.2.320.0100.00716.85
7.2.310.0140.00316.70
7.2.300.0110.00816.82
7.2.290.0070.01016.72
7.2.60.0160.00016.63
7.2.00.0070.00719.20
7.1.200.0040.00815.70
7.1.100.0070.01017.71
7.1.70.0040.00817.11
7.1.60.0180.00419.30
7.1.50.0030.01216.83
7.1.00.0070.07322.45
7.0.200.0000.00716.72
7.0.60.0200.07721.81
7.0.50.0200.07317.99
7.0.40.0030.08020.10
7.0.30.0230.07020.30
7.0.20.0200.05020.37
7.0.10.0030.05720.04
7.0.00.0070.05720.17
5.6.280.0000.04321.02
5.6.210.0030.04720.57
5.6.200.0100.08318.19
5.6.190.0030.07320.68
5.6.180.0370.03720.49
5.6.170.0230.05720.57
5.6.160.0070.05020.50
5.6.150.0030.08318.25
5.6.140.0070.08018.24
5.6.130.0030.04018.14
5.6.120.0030.07321.16
5.6.110.0030.08021.00
5.6.100.0100.08321.02
5.6.90.0070.06021.12
5.6.80.0170.07020.39
5.5.350.0300.03720.41
5.5.340.0030.04318.00
5.5.330.0170.04020.43
5.5.320.0700.06320.38
5.5.310.0230.03720.19
5.5.300.0130.07717.96
5.5.290.0070.09017.93
5.5.280.0070.05020.89
5.5.270.0070.08720.78
5.5.260.0000.04720.88
5.5.250.0070.08720.50
5.5.240.0270.06720.17

preferences:
51.76 ms | 401 KiB | 5 Q