3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getwhois($domain, $tld) { require_once("whois.class.php"); $whois = new Whois(); if( !$whois->ValidDomain($domain.'.'.$tld) ){ return 'Sorry, the domain is not valid or not supported.'; } if( $whois->Lookup($domain.'.'.$tld) ) { return $whois->GetData(1); }else{ return 'Sorry, an error occurred.'; } } $domain = trim($_REQUEST['domain']); $dot = strpos($domain, '.'); $sld = substr($domain, 0, $dot); $tld = substr($domain, $dot+1); $whois = getwhois($sld, $tld); echo " "; echo $whois; echo " "; getwhois("summoner","io"); ?>

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.0130.00918.68
8.3.50.0130.00721.08
8.3.40.0060.00918.91
8.3.30.0070.00718.88
8.3.20.0080.00018.98
8.3.10.0040.00420.82
8.3.00.0050.00221.82
8.2.180.0110.00716.75
8.2.170.0110.00322.96
8.2.160.0090.00620.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00321.13
8.2.110.0090.00020.22
8.2.100.0090.00317.91
8.2.90.0070.00319.34
8.2.80.0030.00517.97
8.2.70.0030.00717.75
8.2.60.0040.00417.79
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00421.30
8.2.20.0000.00817.81
8.2.10.0000.00817.78
8.2.00.0070.00317.94
8.1.280.0070.01125.92
8.1.270.0060.00323.99
8.1.260.0070.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.50
8.1.230.0090.00320.96
8.1.220.0050.00318.77
8.1.210.0040.00418.94
8.1.200.0060.00317.35
8.1.190.0000.00919.42
8.1.180.0050.00318.10
8.1.170.0060.00318.57
8.1.160.0000.00718.78
8.1.150.0030.00918.58
8.1.140.0040.00417.39
8.1.130.0050.00317.77
8.1.120.0040.00417.41
8.1.110.0070.00017.37
8.1.100.0040.00417.47
8.1.90.0000.00717.48
8.1.80.0000.00817.44
8.1.70.0040.00417.49
8.1.60.0050.00517.53
8.1.50.0040.00417.55
8.1.40.0050.00317.64
8.1.30.0040.00417.64
8.1.20.0050.00317.75
8.1.10.0000.00817.69
8.1.00.0060.00317.47
8.0.300.0080.00020.05
8.0.290.0040.00417.18
8.0.280.0040.00418.57
8.0.270.0030.00317.21
8.0.260.0030.00316.97
8.0.250.0040.00416.98
8.0.240.0040.00717.01
8.0.230.0050.00217.12
8.0.220.0000.00816.94
8.0.210.0050.00216.93
8.0.200.0070.00017.05
8.0.190.0040.00416.97
8.0.180.0000.00816.96
8.0.170.0050.00317.05
8.0.160.0040.00417.03
8.0.150.0040.00416.97
8.0.140.0000.00816.85
8.0.130.0030.00313.53
8.0.120.0000.00817.05
8.0.110.0030.00516.84
8.0.100.0070.00017.05
8.0.90.0000.00717.05
8.0.80.0060.01516.98
8.0.70.0000.00716.91
8.0.60.0040.00416.88
8.0.50.0040.00417.09
8.0.30.0120.00717.08
8.0.20.0070.01517.40
8.0.10.0040.00416.98
8.0.00.0040.01316.86
7.4.330.0050.00016.90
7.4.320.0030.00316.54
7.4.300.0000.00616.67
7.4.290.0030.00316.52
7.4.280.0030.00316.55
7.4.270.0030.00316.52
7.4.260.0000.00613.21
7.4.250.0040.00416.51
7.4.240.0000.00716.56
7.4.230.0050.00316.69
7.4.220.0160.00416.57
7.4.210.0070.01116.58
7.4.200.0040.00416.55
7.4.190.0000.00716.67
7.4.160.0040.01416.35
7.4.150.0060.01117.40
7.4.140.0110.01017.86
7.4.130.0080.00916.54
7.4.120.0090.00816.58
7.4.110.0140.00316.74
7.4.100.0090.01216.62
7.4.90.0090.00916.53
7.4.80.0120.00619.39
7.4.70.0090.00816.70
7.4.60.0100.00716.56
7.4.50.0030.00616.47
7.4.40.0060.01022.77
7.4.30.0060.01616.51
7.4.00.0080.01015.09
7.3.330.0000.00513.37
7.3.320.0000.00613.52
7.3.310.0030.00316.55
7.3.300.0000.00716.53
7.3.290.0060.01516.61
7.3.280.0130.00516.50
7.3.270.0070.01417.40
7.3.260.0100.00918.24
7.3.250.0090.00816.58
7.3.240.0120.00416.36
7.3.230.0070.01716.60
7.3.210.0090.00616.68
7.3.200.0180.00619.39
7.3.190.0090.01016.57
7.3.180.0130.00316.71
7.3.170.0030.01316.52
7.3.160.0100.00716.43
7.3.120.0090.00715.02
7.3.110.0110.00715.01
7.3.100.0060.00914.99
7.3.90.0060.00314.63
7.3.80.0040.01415.00
7.3.70.0070.00314.73
7.3.60.0120.00314.94
7.3.50.0060.00914.81
7.3.40.0040.00815.05
7.3.30.0100.00614.67
7.3.20.0030.00616.80
7.3.10.0030.01016.42
7.3.00.0080.00816.67
7.2.330.0060.01216.54
7.2.320.0120.00616.66
7.2.310.0090.00916.70
7.2.300.0140.00416.50
7.2.290.0090.00916.43
7.2.250.0110.00714.85
7.2.240.0070.01115.04
7.2.230.0040.01115.30
7.2.220.0000.01414.84
7.2.210.0100.00615.05
7.2.200.0040.00814.75
7.2.190.0100.00615.05
7.2.180.0080.00414.73
7.2.170.0070.00414.77
7.2.00.0070.01119.55
7.1.330.0070.00415.99
7.1.320.0070.01015.73
7.1.310.0070.00715.55
7.1.300.0030.01015.91
7.1.290.0030.00615.99
7.1.280.0040.01115.83
7.1.270.0000.01515.57
7.1.260.0000.00915.89
7.1.100.0050.00518.07
7.1.70.0000.01017.35
7.1.60.0070.01819.17
7.1.50.0070.01517.00
7.1.00.0030.04322.56
7.0.200.0060.00616.74
7.0.140.0030.06722.18
7.0.60.0000.06019.95
7.0.50.0100.08017.97
7.0.40.0070.04020.04
7.0.30.0370.04320.18
7.0.20.0230.08320.24
7.0.10.0030.06720.26
7.0.00.0130.06720.28
5.6.280.0000.07321.11
5.6.210.0070.06020.67
5.6.200.0000.04318.29
5.6.190.0070.08020.58
5.6.180.0200.07720.61
5.6.170.0270.05320.55
5.6.160.0100.05020.54
5.6.150.0070.06718.13
5.6.140.0130.07318.19
5.6.130.0070.04318.22
5.6.120.0130.08020.99
5.6.110.0100.05021.03
5.6.100.0000.05021.14
5.6.90.0070.08021.04
5.6.80.0030.04320.41
5.5.350.0300.08020.30
5.5.340.0100.08017.98
5.5.330.0070.06320.22
5.5.320.0200.04720.24
5.5.310.0300.07020.20
5.5.300.0100.04317.99
5.5.290.0100.08017.99
5.5.280.0070.06320.69
5.5.270.0100.08320.80
5.5.260.0030.08720.95
5.5.250.0070.04020.62
5.5.240.0200.08320.29
5.4.450.4330.03319.28
5.4.440.3700.03719.55
5.4.430.4300.04019.49
5.4.420.3770.03319.41
5.4.410.3400.04019.35
5.4.400.3630.03319.23
5.4.390.4330.03319.14
5.4.380.4200.04019.14
5.4.370.3400.03719.16
5.4.360.3470.03019.25
5.4.350.4200.03718.99
5.4.340.3670.04019.35
5.4.320.3670.03719.07
5.4.310.3300.03719.00
5.4.300.3500.04019.09
5.4.290.4000.03719.00
5.4.280.3900.03719.15
5.4.270.2430.04019.25
5.4.260.3070.03319.27
5.4.250.3500.03019.08
5.4.240.3430.03719.13
5.4.230.2630.04019.15
5.4.220.3270.04019.08
5.4.210.3430.03318.85
5.4.200.3030.03718.87
5.4.190.3570.03319.21
5.4.180.3770.03018.94
5.4.170.3700.03318.95
5.4.160.3470.02718.93
5.4.150.3400.03719.21
5.4.140.3970.04316.34
5.4.130.3430.03716.51
5.4.120.3400.02316.35
5.4.110.2930.03716.52
5.4.100.3530.04316.51
5.4.90.3670.03716.42
5.4.80.3500.03316.52
5.4.70.3570.03716.55
5.4.60.3630.02716.25
5.4.50.4000.04016.56
5.4.40.4300.03716.38
5.4.30.3970.03316.51
5.4.20.3530.03016.23
5.4.10.3770.04016.25
5.4.00.3700.04015.78
5.3.290.3900.04014.72
5.3.280.3300.03314.50
5.3.270.3900.04714.84
5.3.260.3530.03014.58
5.3.250.3330.03714.62
5.3.240.3870.04014.77
5.3.230.3700.04014.77
5.3.220.3670.04014.59
5.3.210.2830.04314.57
5.3.200.3600.03714.55
5.3.190.3800.04014.50
5.3.180.3330.03714.57
5.3.170.3400.03714.79
5.3.160.3600.03314.54
5.3.150.4170.03714.79
5.3.140.4000.04014.78
5.3.130.3630.03714.61
5.3.120.3370.03714.52
5.3.110.4530.03714.64
5.3.100.3370.03714.20
5.3.90.3630.04313.94
5.3.80.3700.03013.95
5.3.70.3470.04013.94
5.3.60.3700.03013.91
5.3.50.3670.03714.07
5.3.40.4470.03314.18
5.3.30.4400.03314.07
5.3.20.3300.04013.78
5.3.10.3570.04713.57
5.3.00.3600.03313.63
5.2.170.3330.02711.01
5.2.160.3600.02711.08
5.2.150.3630.03311.23
5.2.140.3570.03011.05
5.2.130.3570.03011.06
5.2.120.3670.02311.18
5.2.110.3000.03311.01
5.2.100.3130.02711.03
5.2.90.3130.02711.02
5.2.80.2930.03010.96
5.2.70.3170.02311.01
5.2.60.3000.03010.98
5.2.50.3230.02311.03
5.2.40.2330.02310.92
5.2.30.2570.03011.03
5.2.20.2600.02310.95
5.2.10.2500.02310.80
5.2.00.2230.03010.68
5.1.60.2500.02710.01
5.1.50.2630.0239.89
5.1.40.2630.0179.90
5.1.30.2570.02710.27
5.1.20.2530.02710.37
5.1.10.2400.02710.01
5.1.00.2630.02710.16
5.0.50.1600.0208.70
5.0.40.1670.0238.57
5.0.30.1400.0308.38
5.0.20.1370.0208.43
5.0.10.1430.0178.26
5.0.00.0770.0338.17
4.4.90.1270.0137.25
4.4.80.1200.0137.25
4.4.70.1330.0177.25
4.4.60.1500.0137.25
4.4.50.1370.0177.25
4.4.40.1500.0307.25
4.4.30.1400.0207.25
4.4.20.1130.0207.25
4.4.10.1400.0177.25
4.4.00.1430.0177.25
4.3.110.1670.0177.25
4.3.100.1630.0177.25
4.3.90.1430.0177.25
4.3.80.1330.0277.25
4.3.70.1570.0177.25
4.3.60.1700.0177.25
4.3.50.1830.0177.25
4.3.40.1470.0237.25
4.3.30.0700.0137.25
4.3.20.0930.0277.25
4.3.10.0800.0137.25
4.3.00.0870.0207.25

preferences:
44.58 ms | 401 KiB | 5 Q