3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace AcmeSomething; 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.70.0090.01216.88
8.3.60.0040.01116.50
8.3.50.0280.00821.27
8.3.40.0090.00618.82
8.3.30.0090.00618.84
8.3.20.0040.00420.34
8.3.10.0090.00023.39
8.3.00.0050.00223.64
8.2.180.0040.01516.50
8.2.170.0110.00419.02
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0030.00524.66
8.2.130.0050.00319.94
8.2.120.0080.00026.35
8.2.110.0060.00321.00
8.2.100.0120.00017.93
8.2.90.0040.00419.23
8.2.80.0050.00318.16
8.2.70.0060.00317.75
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00422.19
8.2.30.0070.00019.37
8.2.20.0000.00717.86
8.2.10.0000.00818.10
8.2.00.0030.00518.24
8.1.280.0070.01125.92
8.1.270.0030.00623.85
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0090.00023.80
8.1.230.0070.00419.25
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0030.00617.48
8.1.180.0080.00018.10
8.1.170.0040.00418.76
8.1.160.0000.00720.79
8.1.150.0070.00018.82
8.1.140.0080.00019.68
8.1.130.0030.00517.77
8.1.120.0050.00217.60
8.1.110.0000.00717.57
8.1.100.0040.00417.40
8.1.90.0000.00717.37
8.1.80.0020.00517.49
8.1.70.0050.00217.43
8.1.60.0040.00417.68
8.1.50.0030.00617.55
8.1.40.0040.00417.63
8.1.30.0050.00317.72
8.1.20.0040.00417.61
8.1.10.0000.00817.54
8.1.00.0040.00817.56
8.0.300.0050.00318.77
8.0.290.0070.00016.88
8.0.280.0000.00718.48
8.0.270.0000.00717.25
8.0.260.0000.00617.31
8.0.250.0030.00316.97
8.0.240.0000.00717.12
8.0.230.0050.00317.13
8.0.220.0030.00517.04
8.0.210.0070.00016.98
8.0.200.0030.00317.07
8.0.190.0040.00417.04
8.0.180.0050.00317.00
8.0.170.0050.00317.04
8.0.160.0030.00417.04
8.0.150.0050.00216.96
8.0.140.0050.00316.95
8.0.130.0000.00513.48
8.0.120.0000.00817.00
8.0.110.0040.00417.00
8.0.100.0040.00416.81
8.0.90.0000.00717.07
8.0.80.0060.00916.97
8.0.70.0070.00017.00
8.0.60.0040.00416.84
8.0.50.0050.00216.90
8.0.30.0110.00817.23
8.0.20.0120.00817.40
8.0.10.0040.00417.16
8.0.00.0080.01016.78
7.4.330.0000.00516.77
7.4.320.0060.00016.54
7.4.300.0000.01016.42
7.4.290.0030.00316.54
7.4.280.0000.01016.70
7.4.270.0070.00016.62
7.4.260.0060.00316.59
7.4.250.0050.00216.63
7.4.240.0060.00216.61
7.4.230.0040.00416.46
7.4.220.0030.01616.52
7.4.210.0060.00916.69
7.4.200.0070.00016.77
7.4.160.0100.00616.48
7.4.150.0070.01617.40
7.4.140.0090.01417.86
7.4.130.0110.00916.58
7.4.120.0080.01116.61
7.4.110.0060.01216.78
7.4.100.0070.01416.76
7.4.90.0070.01016.58
7.4.80.0060.01319.39
7.4.70.0080.00816.52
7.4.60.0130.00316.61
7.4.50.0040.01416.70
7.4.40.0080.00816.46
7.4.30.0140.00316.68
7.4.10.0090.00915.21
7.4.00.0080.00915.06
7.3.330.0030.00313.48
7.3.320.0030.00313.48
7.3.310.0030.00316.45
7.3.300.0060.00016.28
7.3.290.0000.00616.41
7.3.280.0090.01016.43
7.3.270.0000.01717.40
7.3.260.0100.00716.53
7.3.250.0060.01416.52
7.3.240.0140.00616.53
7.3.230.0130.00716.44
7.3.210.0060.01616.46
7.3.200.0030.01619.39
7.3.190.0090.00916.49
7.3.180.0040.01116.57
7.3.170.0080.00816.57
7.3.160.0140.00716.75
7.3.130.0130.00314.68
7.3.120.0060.01114.81
7.3.110.0080.00814.98
7.3.100.0010.01414.75
7.3.90.0090.00614.96
7.3.80.0070.00815.02
7.3.70.0040.00814.84
7.3.60.0060.00714.83
7.3.50.0030.00914.90
7.3.40.0090.00414.76
7.3.30.0090.00514.92
7.3.20.0080.00516.72
7.3.10.0020.01316.70
7.3.00.0050.00816.71
7.2.330.0090.01016.83
7.2.320.0100.00616.43
7.2.310.0100.00616.74
7.2.300.0160.00316.61
7.2.290.0070.01016.63
7.2.260.0030.01614.96
7.2.250.0050.01414.96
7.2.240.0050.01115.22
7.2.230.0060.01015.16
7.2.220.0030.00915.10
7.2.210.0050.01115.25
7.2.200.0080.00415.04
7.2.190.0020.01215.05
7.2.180.0100.00515.20
7.2.170.0080.00515.04
7.2.160.0090.00615.27
7.2.150.0070.00316.66
7.2.140.0090.00316.93
7.2.130.0030.00717.14
7.2.120.0030.01016.65
7.2.110.0000.01017.03
7.2.100.0070.00716.83
7.2.90.0030.01117.11
7.2.80.0000.01517.02
7.2.70.0090.00616.82
7.2.60.0040.01116.80
7.2.50.0060.00616.82
7.2.40.0080.00417.12
7.2.30.0100.00316.89
7.2.20.0030.01617.04
7.2.10.0030.01217.16
7.2.00.0030.01018.28
7.1.330.0070.00815.57
7.1.320.0070.00815.70
7.1.310.0060.00715.58
7.1.300.0030.01115.73
7.1.290.0050.00915.81
7.1.280.0070.00515.73
7.1.270.0090.00515.76
7.1.260.0030.01215.55
7.1.250.0000.01415.93
7.1.240.0000.00915.77
7.1.230.0040.00815.72
7.1.220.0080.00415.65
7.1.210.0030.00715.80
7.1.200.0070.00815.47
7.1.190.0000.01015.87
7.1.180.0070.00315.86
7.1.170.0060.00615.43
7.1.160.0040.00715.65
7.1.150.0000.01115.81
7.1.140.0060.01215.68
7.1.130.0050.00515.37
7.1.120.0030.01015.77
7.1.110.0030.00915.76
7.1.100.0040.00716.90
7.1.90.0030.01015.77
7.1.80.0030.00715.56
7.1.70.0030.01216.52
7.1.60.0030.01317.47
7.1.50.0080.00616.46
7.1.40.0040.01115.62
7.1.30.0030.00715.77
7.1.20.0040.00715.72
7.1.10.0060.01115.89
7.1.00.0080.04019.08
7.0.330.0040.00815.36
7.0.320.0050.00315.49
7.0.310.0050.00215.45
7.0.300.0060.00315.55
7.0.290.0080.00015.26
7.0.280.0040.00415.55
7.0.270.0040.00815.33
7.0.260.0070.00315.43
7.0.250.0060.00615.70
7.0.240.0040.00715.53
7.0.230.0040.01115.43
7.0.220.0070.00715.49
7.0.210.0000.01515.52
7.0.200.0020.00816.11
7.0.190.0080.00415.43
7.0.180.0030.01015.15
7.0.170.0030.01015.43
7.0.160.0040.01115.36
7.0.150.0040.00815.16
7.0.140.0040.00715.12
7.0.130.0090.00315.07
7.0.120.0030.00915.38
7.0.110.0040.00415.09
7.0.100.0040.00415.38
7.0.90.0040.00715.59
7.0.80.0090.00915.50
7.0.70.0000.01015.41
7.0.60.0160.04118.55
7.0.50.0000.02916.70
7.0.40.0070.02516.73
7.0.30.0200.03816.85
7.0.20.0170.03016.63
7.0.10.0120.04316.88
7.0.00.0050.04916.88
5.6.400.0030.01014.30
5.6.390.0050.00314.66
5.6.380.0000.00814.30
5.6.370.0000.01214.37
5.6.360.0100.00314.41
5.6.350.0030.00614.43
5.6.340.0000.01414.39
5.6.330.0030.01014.56
5.6.320.0050.00514.45
5.6.310.0030.01014.59
5.6.300.0030.01014.48
5.6.290.0090.00614.14
5.6.280.0030.01014.03
5.6.270.0060.00614.31
5.6.260.0110.00314.36
5.6.250.0040.00414.27
5.6.240.0070.00714.42
5.6.230.0000.01314.71
5.6.220.0000.01614.48
5.6.210.0020.02517.63
5.6.200.0050.05016.32
5.6.190.0050.02717.44
5.6.180.0120.02817.50
5.6.170.0130.02417.32
5.6.160.0010.04917.38
5.6.150.0020.02716.37
5.6.140.0050.03216.22
5.6.130.0030.02316.24
5.6.120.0100.04317.77
5.6.110.0020.05217.69
5.6.100.0050.03617.76
5.6.90.0080.04317.80
5.6.80.0030.02817.42
5.6.70.0030.00614.34
5.6.60.0070.00714.29
5.6.50.0030.01014.09
5.6.40.0000.00914.14
5.6.30.0060.00314.23
5.6.20.0120.00314.48
5.6.10.0080.00314.21
5.6.00.0100.00314.38
5.5.380.0060.01013.99
5.5.370.0060.01314.29
5.5.360.0030.01014.30
5.5.350.0170.04617.31
5.5.340.0070.03716.07
5.5.330.0050.03017.10
5.5.320.0410.03317.43
5.5.310.0150.04617.34
5.5.300.0080.02516.22
5.5.290.0050.04916.11
5.5.280.0060.03017.55
5.5.270.0080.04517.58
5.5.260.0100.04117.49
5.5.250.0050.04717.41
5.5.240.0120.03917.17
5.5.230.0080.00614.15
5.5.220.0030.01114.34
5.5.210.0090.00013.87
5.5.200.0030.00714.02
5.5.190.0060.00914.21
5.5.180.0000.01814.02
5.5.170.0090.00614.23
5.5.160.0040.00914.03
5.5.150.0000.01614.41
5.5.140.0090.01313.90
5.5.130.0090.00913.98
5.5.120.0150.01014.24
5.5.110.0080.00414.36
5.5.100.0090.00914.17
5.5.90.0000.01114.32
5.5.80.0100.00714.39
5.5.70.0100.00713.82
5.5.60.0030.00613.89
5.5.50.0030.01014.39
5.5.40.0070.00314.25
5.5.30.0060.00914.35
5.5.20.0040.01214.20
5.5.10.0070.01014.24
5.5.00.0070.00713.94

preferences:
59.78 ms | 401 KiB | 5 Q