3v4l.org

run code in 300+ PHP versions simultaneously
<?php $whoisserver = "whois.verisign-grs.co"; $domain = "=stackoverflow.com"; $port = 43; $timeout = 10; $fp = @fsockopen($whoisserver, $port, $errno, $errstr, $timeout) or die("Socket Error " . $errno . " - " . $errstr); fputs($fp, $domain . "\r\n"); $out = ""; while(!feof($fp)){ $out .= fgets($fp); } fclose($fp); $res = ""; if((strpos(strtolower($out), "error") === FALSE) && (strpos(strtolower($out), "not allocated") === FALSE)) { $rows = explode("\n", $out); foreach($rows as $row) { $row = trim($row); if(($row != '') && ($row{0} != '#') && ($row{0} != '%')) { $res .= $row."\n"; } } } print $res;

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.40.0070.00718.60
8.3.30.0140.00018.93
8.3.20.0040.00420.33
8.3.10.0080.00022.01
8.3.00.0040.00422.34
8.2.170.0140.00322.96
8.2.160.0070.00718.88
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.01526.16
8.2.120.0100.00017.47
8.2.110.0060.00319.27
8.2.100.0120.00017.72
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0050.00317.68
8.2.50.0000.00818.10
8.2.40.0080.00020.22
8.2.30.0000.00718.05
8.2.20.0000.00817.42
8.2.10.0040.00417.50
8.2.00.0040.00417.61
8.1.270.0050.00222.05
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00622.00
8.1.230.0060.00620.88
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0030.00518.10
8.1.170.0060.00318.52
8.1.160.0040.00422.09
8.1.150.0030.00518.48
8.1.140.0000.00717.29
8.1.130.0000.00817.82
8.1.120.0000.00717.34
8.1.110.0080.00017.33
8.1.100.0000.00717.30
8.1.90.0040.00317.25
8.1.80.0000.00717.40
8.1.70.0000.00717.34
8.1.60.0040.00417.45
8.1.50.0000.00817.29
8.1.40.0000.00717.43
8.1.30.0070.00017.54
8.1.20.0000.00817.50
8.1.10.0040.00417.41
8.1.00.0000.00817.24
8.0.300.0080.00018.77
8.0.290.0050.00216.61
8.0.280.0000.00718.25
8.0.270.0000.00717.20
8.0.260.0030.00316.77
8.0.250.0030.00316.94
8.0.240.0000.00816.84
8.0.230.0040.00416.96
8.0.220.0000.00616.80
8.0.210.0040.00416.80
8.0.200.0000.00716.88
8.0.190.0060.00316.89
8.0.180.0030.00316.77
8.0.170.0030.00516.77
8.0.160.0040.00416.76
8.0.150.0070.00116.86
8.0.140.0000.00716.81
8.0.130.0050.00013.30
8.0.120.0060.00316.83
8.0.110.0080.00016.72
8.0.100.0000.00716.79
8.0.90.0040.00416.73
8.0.80.0070.01316.86
8.0.70.0000.00716.88
8.0.60.0000.00716.70
8.0.50.0000.00716.66
8.0.30.0060.01216.85
8.0.20.0100.01017.40
8.0.10.0030.00316.83
8.0.00.0080.01016.65
7.4.330.0000.00515.53
7.4.320.0060.00016.66
7.4.300.0030.00316.73
7.4.290.0030.00316.74
7.4.280.0030.00316.77
7.4.270.0030.00316.71
7.4.260.0000.00816.63
7.4.250.0080.00016.85
7.4.240.0070.00116.78
7.4.230.0030.00516.81
7.4.220.0030.01516.83
7.4.210.0110.00716.81
7.4.200.0000.00716.61
7.4.190.0040.00416.67
7.4.160.0100.00716.81
7.4.150.0150.00317.40
7.4.140.0100.01317.86
7.4.130.0140.00716.73
7.4.120.0070.01116.83
7.4.110.0180.00016.75
7.4.100.0130.01016.70
7.4.90.0220.00016.75
7.4.80.0110.01719.39
7.4.70.0120.00616.51
7.4.60.0100.00616.82
7.4.50.0040.00416.52
7.4.40.0090.00922.77
7.4.30.0100.01416.80
7.4.00.0080.01014.88
7.3.330.0000.00513.52
7.3.320.0000.00513.55
7.3.310.0040.00416.39
7.3.300.0040.00416.63
7.3.290.0090.01216.61
7.3.280.0090.01016.59
7.3.270.0080.01217.40
7.3.260.0070.01316.68
7.3.250.0130.00716.73
7.3.240.0090.00916.72
7.3.230.0100.00716.65
7.3.210.0060.01216.69
7.3.200.0120.01219.39
7.3.190.0060.01216.54
7.3.180.0160.00516.72
7.3.170.0160.00016.60
7.3.160.0070.01016.44
7.3.120.0110.00515.04
7.3.110.0070.00715.11
7.3.100.0110.00314.84
7.3.90.0070.01015.32
7.3.80.0080.00815.12
7.3.70.0090.00614.83
7.3.60.0160.00015.15
7.3.50.0040.01114.84
7.3.40.0070.01014.92
7.3.30.0150.00015.00
7.3.20.0060.00916.96
7.3.10.0080.00417.04
7.3.00.0030.01216.80
7.2.330.0100.00717.02
7.2.320.0030.01717.04
7.2.310.0030.01316.85
7.2.300.0100.01416.68
7.2.290.0120.00617.08
7.2.250.0100.01015.40
7.2.240.0180.00415.44
7.2.230.0090.01215.51
7.2.220.0070.00315.20
7.2.210.0040.01215.32
7.2.200.0080.00815.33
7.2.190.0030.01315.32
7.2.180.0110.00414.96
7.2.170.0120.00015.09
7.2.60.0040.01417.09
7.1.330.0040.01115.64
7.1.320.0030.01015.77
7.1.310.0070.01116.30
7.1.300.0040.00915.96
7.1.290.0040.01115.95
7.1.280.0000.01815.93
7.1.270.0140.00015.90
7.1.260.0030.00916.00
7.1.200.0000.01416.16
7.1.70.0000.00917.47
7.1.60.0040.02219.82
7.1.50.0060.01817.47
7.1.00.0100.07022.70
7.0.200.0050.00517.17
7.0.140.0100.07022.34
7.0.70.0100.07321.91
7.0.60.0070.07322.14
7.0.50.0100.05322.43
7.0.40.0030.07720.55
7.0.30.0100.03720.39
7.0.20.0000.04320.54
7.0.10.0000.04320.47
7.0.00.0030.04720.52
5.6.280.0000.07321.36
5.6.220.0030.07321.05
5.6.210.0000.07721.12
5.6.200.0100.08321.38
5.6.190.0070.08321.38
5.6.180.0070.07021.49
5.6.170.0070.03721.22
5.6.160.0070.03721.35
5.6.150.0030.03321.24
5.6.140.0000.04321.57
5.6.130.0000.04321.48
5.6.120.0030.03321.34
5.6.110.0070.03721.20
5.6.100.0030.03321.35
5.6.90.0000.03721.41
5.6.80.0000.03320.73
5.6.70.0030.03020.85
5.6.60.0000.03320.77
5.6.50.0000.03320.86
5.6.40.0030.03320.94
5.6.30.0070.03320.60
5.6.20.0030.03020.55
5.6.10.0000.03320.71
5.6.00.0030.03320.86
5.5.360.0000.08320.65
5.5.350.0000.08020.77
5.5.340.0070.06021.29
5.5.330.0030.06721.18
5.5.320.0030.04321.23
5.5.310.0070.03721.13
5.5.300.0000.04021.04
5.5.290.0070.03721.17
5.5.280.0030.03721.21
5.5.270.0000.04721.31
5.5.260.0070.03021.23
5.5.250.0070.04320.99
5.5.240.0030.03020.59
5.5.230.0030.03320.36
5.5.220.0070.05020.66
5.5.210.0000.04320.41
5.5.200.0030.03020.55
5.5.190.0070.02720.63
5.5.180.0100.02720.58
5.5.160.0030.03020.39
5.5.150.0000.03320.34
5.5.140.0000.03720.43
5.5.130.0000.03320.59
5.5.120.0000.03320.52
5.5.110.0000.03720.57
5.5.100.0030.03020.35
5.5.90.0000.04020.49
5.5.80.0030.07020.45
5.5.70.0100.03020.50
5.5.60.0000.07720.43
5.5.50.0070.08020.31
5.5.40.0030.07020.43
5.5.30.0070.08320.39
5.5.20.0030.08020.42
5.5.10.0030.08020.26
5.5.00.0070.07720.24
5.4.450.0070.02719.66
5.4.440.0000.03319.58
5.4.430.0000.03319.65
5.4.420.0000.03319.61
5.4.410.0030.03019.54
5.4.400.0030.03019.55
5.4.390.0070.03019.36
5.4.380.0030.02719.40
5.4.370.0000.03719.46
5.4.360.0000.03319.46
5.4.350.0030.03019.46
5.4.340.0070.02719.39
5.4.320.0070.02719.38
5.4.310.0030.03019.15
5.4.300.0030.03319.27
5.4.290.0000.03019.46
5.4.280.0000.03319.46
5.4.270.0030.03319.28
5.4.260.0030.03719.24
5.4.250.0030.03019.32
5.4.240.0070.07319.57
5.4.230.0000.07019.37
5.4.220.0030.07319.42
5.4.210.0030.07719.27
5.4.200.0100.06719.54
5.4.190.0030.06019.23
5.4.180.0070.07019.45
5.4.170.0100.07719.30
5.4.160.0100.06319.36
5.4.150.0030.08019.34
5.4.140.0070.07316.50
5.4.130.0070.06716.56
5.4.120.0000.05316.73
5.4.110.0000.05016.76
5.4.100.0030.07016.75
5.4.90.0070.07016.79
5.4.80.0000.06316.83
5.4.70.0070.05016.76
5.4.60.0070.06016.62
5.4.50.0070.06316.75
5.4.40.0030.07316.61
5.4.30.0030.06716.74
5.4.20.0000.06716.82
5.4.10.0070.06016.65
5.4.00.0000.06016.18
5.3.290.0030.03714.79
5.3.280.0030.03714.76
5.3.270.0030.07714.85
5.3.260.0030.07314.87
5.3.250.0000.07314.73
5.3.240.0000.07314.83
5.3.230.0070.07014.89
5.3.220.0000.06314.74
5.3.210.0030.05714.82
5.3.200.0000.08014.83
5.3.190.0000.06314.86
5.3.180.0070.08014.91
5.3.170.0130.06714.83
5.3.160.0030.05714.71
5.3.150.0070.04714.70
5.3.140.0070.07714.71
5.3.130.0030.07714.89
5.3.120.0000.06314.71
5.3.110.0000.06714.77
5.3.100.0030.07714.22
5.3.90.0130.06314.28
5.3.80.0000.07714.19
5.3.70.0030.07014.32
5.3.60.0000.05714.17
5.3.50.0030.06714.13
5.3.40.0000.08314.20
5.3.30.0000.06014.16
5.3.20.0000.07013.96
5.3.10.0030.06713.82
5.3.00.0000.07013.77
5.2.170.0070.06011.21
5.2.160.0070.06011.30
5.2.150.0000.05011.41
5.2.140.0130.04711.29
5.2.130.0070.05711.36
5.2.120.0030.06311.45
5.2.110.0000.05711.40
5.2.100.0030.06311.37
5.2.90.0030.06011.38
5.2.80.0030.05711.36
5.2.70.0000.06711.37
5.2.60.0000.05711.20
5.2.50.0000.06311.29
5.2.40.0070.05011.27
5.2.30.0070.06011.20
5.2.20.0100.05311.13
5.2.10.0030.06311.13
5.2.00.0030.06011.08
5.1.60.0000.04711.08
5.1.50.0030.05311.08
5.1.40.0000.05711.08
5.1.30.0070.05011.08
5.1.20.0070.05011.08
5.1.10.0100.04311.08
5.1.00.0030.04311.08
5.0.50.0000.05011.08
5.0.40.0030.04311.08
5.0.30.0030.06311.08
5.0.20.0030.04311.08
5.0.10.0000.04711.08
5.0.00.0070.05711.08
4.4.90.0000.03711.08
4.4.80.0000.03311.08
4.4.70.0000.03711.08
4.4.60.0000.03311.08
4.4.50.0000.03011.08
4.4.40.0000.05711.08
4.4.30.0000.03711.08
4.4.20.0000.03711.08
4.4.10.0030.02711.08
4.4.00.0030.05011.08
4.3.110.0070.03011.08
4.3.100.0030.03311.08
4.3.90.0000.03711.08
4.3.80.0030.05311.08
4.3.70.0030.03011.08
4.3.60.0030.03311.08
4.3.50.0000.04011.08
4.3.40.0000.05711.08
4.3.30.0030.03311.08
4.3.20.0000.04011.08
4.3.10.0000.03311.08
4.3.00.0000.02711.08

preferences:
53.88 ms | 400 KiB | 5 Q