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("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.0100.01018.43
8.3.50.0250.00921.97
8.3.40.0060.01218.78
8.3.30.0100.00618.68
8.3.20.0000.00720.21
8.3.10.0040.00423.59
8.3.00.0030.00523.52
8.2.180.0100.01018.28
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0030.00519.95
8.2.120.0030.00526.35
8.2.110.0090.00021.16
8.2.100.0120.00017.72
8.2.90.0040.00419.19
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0000.00822.38
8.2.30.0000.00719.34
8.2.20.0000.00917.88
8.2.10.0040.00418.05
8.2.00.0090.00018.14
8.1.280.0030.01625.92
8.1.270.0060.00323.97
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0000.00923.77
8.1.230.0060.00620.78
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0080.00017.36
8.1.180.0080.00018.10
8.1.170.0050.00318.55
8.1.160.0030.00520.71
8.1.150.0000.00718.97
8.1.140.0060.00319.61
8.1.130.0040.00417.70
8.1.120.0000.00717.48
8.1.110.0020.00517.46
8.1.100.0000.00717.38
8.1.90.0070.00017.32
8.1.80.0000.00717.38
8.1.70.0070.00017.50
8.1.60.0000.00917.61
8.1.50.0030.00517.60
8.1.40.0030.00517.57
8.1.30.0030.00517.60
8.1.20.0040.00417.58
8.1.10.0040.00417.65
8.1.00.0040.00817.52
8.0.300.0030.00618.77
8.0.290.0020.00516.75
8.0.280.0070.00018.49
8.0.270.0020.00517.21
8.0.260.0030.00317.29
8.0.250.0070.00017.09
8.0.240.0030.00317.14
8.0.230.0000.00716.95
8.0.220.0000.00717.02
8.0.210.0040.00416.88
8.0.200.0070.00017.01
8.0.190.0000.00816.95
8.0.180.0050.00316.97
8.0.170.0000.00717.05
8.0.160.0050.00217.07
8.0.150.0070.00016.89
8.0.140.0000.00716.82
8.0.130.0050.00013.44
8.0.120.0030.00516.96
8.0.110.0080.00017.06
8.0.100.0050.00316.86
8.0.90.0070.00017.06
8.0.80.0000.01417.05
8.0.70.0000.00816.79
8.0.60.0080.00017.10
8.0.50.0000.00817.06
8.0.30.0110.01017.13
8.0.20.0070.01317.42
8.0.10.0030.00517.00
8.0.00.0100.00816.91
7.4.330.0020.00216.79
7.4.320.0060.00016.64
7.4.300.0030.00616.46
7.4.290.0030.00316.64
7.4.280.0090.00016.54
7.4.270.0000.00716.58
7.4.260.0000.00816.48
7.4.250.0060.00316.51
7.4.240.0030.00316.59
7.4.230.0000.00716.45
7.4.220.0160.00716.64
7.4.210.0050.01016.69
7.4.200.0090.00016.47
7.4.160.0100.00616.48
7.4.150.0180.00717.40
7.4.140.0100.00917.86
7.4.130.0140.00916.75
7.4.120.0080.00916.54
7.4.110.0030.01516.72
7.4.100.0060.01616.73
7.4.90.0120.00916.60
7.4.80.0030.01419.39
7.4.70.0140.00316.52
7.4.60.0030.01316.54
7.4.50.0100.00716.65
7.4.40.0070.01016.50
7.4.30.0100.01016.59
7.4.10.0070.00715.07
7.4.00.0070.00914.86
7.3.330.0050.00013.39
7.3.320.0000.00513.24
7.3.310.0070.00016.53
7.3.300.0070.00016.34
7.3.290.0030.00316.20
7.3.280.0100.00916.36
7.3.270.0120.00617.40
7.3.260.0110.00716.52
7.3.250.0080.01416.47
7.3.240.0120.00716.42
7.3.230.0070.01016.47
7.3.210.0090.00716.45
7.3.200.0140.00419.39
7.3.190.0000.02016.41
7.3.180.0070.01016.55
7.3.170.0110.00716.49
7.3.160.0070.01416.44
7.3.130.0070.01015.07
7.3.120.0060.01314.66
7.3.110.0070.01014.89
7.3.100.0060.00614.77
7.3.90.0130.00015.13
7.3.80.0120.00314.73
7.3.70.0070.00714.92
7.3.60.0040.00814.96
7.3.50.0060.00314.92
7.3.40.0110.00414.91
7.3.30.0060.00314.61
7.3.20.0070.00416.60
7.3.10.0070.00316.87
7.3.00.0100.00016.74
7.2.330.0140.00716.69
7.2.320.0100.00616.87
7.2.310.0100.01016.67
7.2.300.0090.00916.47
7.2.290.0170.00016.76
7.2.260.0100.01015.07
7.2.250.0040.01514.82
7.2.240.0000.01515.20
7.2.230.0030.01215.29
7.2.220.0030.00715.10
7.2.210.0060.00715.16
7.2.200.0070.00715.05
7.2.190.0070.00414.89
7.2.180.0000.01314.97
7.2.170.0030.01315.14
7.2.160.0000.01315.12
7.2.150.0100.00316.91
7.2.140.0070.00417.09
7.2.130.0070.00716.98
7.2.120.0110.00717.13
7.2.110.0030.01016.63
7.2.100.0090.00616.61
7.2.90.0040.00717.17
7.2.80.0060.00617.05
7.2.70.0080.00416.92
7.2.60.0060.00916.93
7.2.50.0030.01016.84
7.2.40.0090.00316.75
7.2.30.0000.01716.92
7.2.20.0060.01016.86
7.2.10.0100.00716.98
7.2.00.0040.00918.15
7.1.330.0000.01415.43
7.1.320.0060.00315.59
7.1.310.0000.01715.69
7.1.300.0050.00315.73
7.1.290.0110.00415.89
7.1.280.0070.01015.46
7.1.270.0040.00415.60
7.1.260.0000.01015.71
7.1.250.0030.00915.48
7.1.240.0070.01115.70
7.1.230.0030.00615.71
7.1.220.0070.01015.95
7.1.210.0100.00315.75
7.1.200.0040.00715.80
7.1.190.0040.01115.87
7.1.180.0030.01015.77
7.1.170.0120.00615.77
7.1.160.0040.00415.61
7.1.150.0000.00915.66
7.1.140.0060.00915.77
7.1.130.0090.00615.68
7.1.120.0000.01115.76
7.1.110.0080.00415.75
7.1.100.0030.01116.87
7.1.90.0060.00915.79
7.1.80.0060.00915.77
7.1.70.0030.00616.43
7.1.60.0050.01217.55
7.1.50.0000.01516.34
7.1.40.0030.00815.68
7.1.30.0060.00915.63
7.1.20.0030.00915.75
7.1.10.0080.00415.83
7.1.00.0040.04419.01
7.0.330.0040.00815.38
7.0.320.0040.01215.41
7.0.310.0030.00915.30
7.0.300.0120.00615.44
7.0.290.0030.00815.34
7.0.280.0110.00015.18
7.0.270.0050.01015.53
7.0.260.0090.00315.56
7.0.250.0070.00715.22
7.0.240.0070.01015.61
7.0.230.0030.01515.45
7.0.220.0040.00415.08
7.0.210.0100.00315.54
7.0.200.0070.00416.05
7.0.190.0060.00315.49
7.0.180.0070.00715.33
7.0.170.0120.00015.55
7.0.160.0040.01115.38
7.0.150.0040.00415.10
7.0.140.0040.00715.64
7.0.130.0050.00515.09
7.0.120.0040.00415.60
7.0.110.0070.00315.39
7.0.100.0030.00715.56
7.0.90.0070.00415.35
7.0.80.0060.00615.56
7.0.70.0040.00915.63
7.0.60.0170.02718.43
7.0.50.0020.02616.74
7.0.40.0060.04216.70
7.0.30.0150.03016.85
7.0.20.0170.02216.87
7.0.10.0050.02516.74
7.0.00.0070.03616.73
5.6.400.0080.00314.32
5.6.390.0070.01014.66
5.6.380.0030.01014.05
5.6.370.0060.00614.43
5.6.360.0130.00014.59
5.6.350.0000.01514.63
5.6.340.0090.00914.52
5.6.330.0090.00614.68
5.6.320.0060.00614.13
5.6.310.0070.00414.55
5.6.300.0040.00414.32
5.6.290.0060.00614.05
5.6.280.0030.03217.65
5.6.270.0070.00714.48
5.6.260.0070.00714.59
5.6.250.0000.00914.07
5.6.240.0080.00814.28
5.6.230.0000.01214.59
5.6.220.0000.00814.13
5.6.210.0070.02917.44
5.6.200.0070.02516.37
5.6.190.0070.02517.72
5.6.180.0150.02317.62
5.6.170.0150.04717.45
5.6.160.0100.04217.50
5.6.150.0090.04316.29
5.6.140.0020.04816.30
5.6.130.0030.02516.26
5.6.120.0090.03117.62
5.6.110.0120.03717.84
5.6.100.0080.04017.81
5.6.90.0070.04517.61
5.6.80.0020.03017.35
5.6.70.0030.00714.12
5.6.60.0030.01014.59
5.6.50.0090.00314.43
5.6.40.0030.00714.34
5.6.30.0090.00414.27
5.6.20.0000.01414.21
5.6.10.0040.01414.21
5.6.00.0090.00314.25
5.5.380.0070.00714.39
5.5.370.0040.00814.05
5.5.360.0070.00714.14
5.5.350.0100.02417.36
5.5.340.0100.04216.23
5.5.330.0070.02817.37
5.5.320.0270.04517.32
5.5.310.0150.02217.21
5.5.300.0030.02616.06
5.5.290.0010.03116.21
5.5.280.0100.04017.62
5.5.270.0120.03717.52
5.5.260.0020.04917.72
5.5.250.0070.04617.25
5.5.240.0100.02117.37
5.5.230.0100.00614.07
5.5.220.0030.01014.33
5.5.210.0030.00914.21
5.5.200.0000.01214.52
5.5.190.0070.01113.91
5.5.180.0070.00714.41
5.5.170.0030.00614.09
5.5.160.0030.01213.93
5.5.150.0070.00414.38
5.5.140.0130.00314.13
5.5.130.0070.01014.41
5.5.120.0120.00614.21
5.5.110.0040.00814.39
5.5.100.0120.00614.43
5.5.90.0090.00614.27
5.5.80.0000.01014.25
5.5.70.0070.01014.33
5.5.60.0080.00814.14
5.5.50.0030.01213.80
5.5.40.0070.00314.24
5.5.30.0000.01513.98
5.5.20.0100.00714.38
5.5.10.0030.01114.36
5.5.00.0070.00714.48

preferences:
32.36 ms | 401 KiB | 5 Q