3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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 Exception("yo"); } var_dump(register(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.00918.43
8.3.50.0330.01022.05
8.3.40.0100.01018.66
8.3.30.0070.01118.67
8.3.20.0040.00420.19
8.3.10.0040.00421.79
8.3.00.0000.00823.66
8.2.180.0180.00416.75
8.2.170.0070.00722.96
8.2.160.0140.00020.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00019.77
8.2.120.0040.00426.35
8.2.110.0060.00320.79
8.2.100.0090.00317.78
8.2.90.0000.00918.22
8.2.80.0060.00318.03
8.2.70.0050.00317.63
8.2.60.0080.00317.63
8.2.50.0000.00817.63
8.2.40.0030.00617.75
8.2.30.0080.00017.81
8.2.20.0000.00717.77
8.2.10.0070.00017.95
8.2.00.0000.00718.11
8.1.280.0060.00925.92
8.1.270.0060.00323.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0040.00720.88
8.1.220.0040.00417.78
8.1.210.0040.00419.02
8.1.200.0000.00817.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0030.00517.62
8.1.160.0040.00418.80
8.1.150.0030.00618.91
8.1.140.0060.00319.57
8.1.130.0030.00317.71
8.1.120.0000.00717.48
8.1.110.0050.00317.38
8.1.100.0070.00017.38
8.1.90.0040.00417.38
8.1.80.0000.00717.43
8.1.70.0040.00417.38
8.1.60.0000.00817.48
8.1.50.0080.00017.43
8.1.40.0040.00417.43
8.1.30.0000.00817.52
8.1.20.0050.00317.61
8.1.10.0040.00417.50
8.1.00.0060.00617.41
8.0.300.0050.00220.03
8.0.290.0030.00516.75
8.0.280.0000.00717.96
8.0.270.0000.00718.00
8.0.260.0000.00617.18
8.0.250.0000.00617.07
8.0.240.0000.00817.08
8.0.230.0040.00416.98
8.0.220.0000.00816.93
8.0.210.0000.00717.01
8.0.200.0030.00317.04
8.0.190.0040.00417.04
8.0.180.0040.00416.89
8.0.170.0050.00316.89
8.0.160.0080.00017.01
8.0.150.0030.00316.95
8.0.140.0070.00016.81
8.0.130.0030.00313.38
8.0.120.0080.00016.95
8.0.110.0040.00416.98
8.0.100.0040.00416.97
8.0.90.0000.00717.04
8.0.80.0060.00916.98
8.0.70.0060.00317.02
8.0.60.0040.00416.94
8.0.50.0040.00416.93
8.0.30.0140.00517.23
8.0.20.0110.00817.40
8.0.10.0000.00816.98
8.0.00.0150.00416.82
7.4.330.0060.00016.67
7.4.320.0000.00616.53
7.4.300.0110.00016.44
7.4.290.0070.00016.63
7.4.280.0030.00616.52
7.4.270.0070.00016.54
7.4.260.0000.00716.58
7.4.250.0000.00816.34
7.4.240.0020.00516.59
7.4.230.0030.00316.53
7.4.220.0140.01116.72
7.4.210.0100.00816.65
7.4.200.0000.00716.72
7.4.160.0110.00616.38
7.4.150.0100.01017.40
7.4.140.0140.00617.86
7.4.130.0100.00716.46
7.4.120.0100.00716.53
7.4.110.0100.01416.80
7.4.100.0150.00616.61
7.4.90.0070.01016.61
7.4.80.0070.01719.39
7.4.70.0040.01416.55
7.4.60.0060.00916.52
7.4.50.0070.00716.52
7.4.40.0030.01316.58
7.4.30.0030.01416.55
7.4.00.0030.01415.22
7.3.330.0020.00213.33
7.3.320.0000.00513.45
7.3.310.0030.00316.35
7.3.300.0000.00616.29
7.3.290.0030.00316.23
7.3.280.0040.01516.38
7.3.270.0030.01517.40
7.3.260.0070.01016.65
7.3.250.0150.00516.35
7.3.240.0120.00616.58
7.3.230.0050.01116.39
7.3.210.0090.00916.23
7.3.200.0040.01419.39
7.3.190.0060.01116.54
7.3.180.0070.01016.40
7.3.170.0080.00716.44
7.3.160.0100.00716.48
7.3.10.0110.01216.42
7.3.00.0110.01116.32
7.2.330.0090.00816.75
7.2.320.0100.00716.50
7.2.310.0120.00916.75
7.2.300.0180.00316.84
7.2.290.0110.00816.46
7.2.130.0110.01116.56
7.2.120.0150.00816.74
7.2.110.0160.00816.87
7.2.100.0150.00516.61
7.2.90.0230.00316.74
7.2.80.0080.01916.80
7.2.70.0160.00516.98
7.2.60.0140.00616.77
7.2.50.0220.00016.86
7.2.40.0140.01416.82
7.2.30.0130.00716.73
7.2.20.0100.01016.82
7.2.10.0120.00816.70
7.2.00.0080.00818.22
7.1.250.0100.01015.68
7.1.200.0030.01015.67
7.1.100.0000.01217.92
7.1.70.0090.00617.19
7.1.60.0100.01019.30
7.1.50.0030.00717.03
7.1.00.0030.08022.44
7.0.200.0000.00816.62
7.0.60.0270.07321.69
7.0.50.0070.08017.87
7.0.40.0030.04320.13
7.0.30.0200.04320.26
7.0.20.0300.08020.23
7.0.10.0200.06020.15
7.0.00.0070.04020.18
5.6.280.0030.04721.04
5.6.210.0030.04720.64
5.6.200.0200.07718.19
5.6.190.0100.08320.39
5.6.180.0470.07320.61
5.6.170.0270.08020.47
5.6.160.0170.07720.55
5.6.150.0030.07318.17
5.6.140.0030.08318.14
5.6.130.0000.06018.19
5.6.120.0070.04720.99
5.6.110.0130.07321.12
5.6.100.0200.07021.01
5.6.90.0070.04021.01
5.6.80.0100.06320.37
5.5.350.0300.04320.44
5.5.340.0100.07718.07
5.5.330.0000.06320.13
5.5.320.0470.04720.33
5.5.310.0270.03320.23
5.5.300.0100.07318.08
5.5.290.0230.05717.95
5.5.280.0170.07720.97
5.5.270.0170.07020.75
5.5.260.0170.06020.96
5.5.250.0030.04320.76
5.5.240.0230.06720.07

preferences:
48.42 ms | 401 KiB | 5 Q