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.60.0060.01018.30
8.3.50.0110.00621.87
8.3.40.0090.00918.60
8.3.30.0080.00618.84
8.3.20.0030.00520.16
8.3.10.0080.00022.01
8.3.00.0000.00822.18
8.2.180.0090.00616.88
8.2.170.0140.00722.96
8.2.160.0130.00018.96
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0130.00626.16
8.2.120.0070.00317.63
8.2.110.0040.00422.20
8.2.100.0060.00619.39
8.2.90.0090.00019.13
8.2.80.0030.00517.97
8.2.70.0050.00317.38
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0000.00717.83
8.2.20.0040.00417.53
8.2.10.0040.00417.57
8.2.00.0000.00717.44
8.1.280.0070.01325.92
8.1.270.0080.00022.25
8.1.260.0000.00826.35
8.1.250.0070.00428.09
8.1.240.0060.00323.82
8.1.230.0070.00318.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.27
8.1.180.0030.00518.61
8.1.170.0000.00818.59
8.1.160.0030.00322.05
8.1.150.0000.00718.40
8.1.140.0050.00217.25
8.1.130.0030.00517.77
8.1.120.0030.00317.28
8.1.110.0030.00517.39
8.1.100.0030.00517.31
8.1.90.0070.00017.36
8.1.80.0070.00017.25
8.1.70.0040.00417.23
8.1.60.0050.00317.48
8.1.50.0030.00617.32
8.1.40.0040.00417.43
8.1.30.0080.00017.45
8.1.20.0040.00417.40
8.1.10.0040.00417.36
8.1.00.0050.00317.32
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00718.32
8.0.270.0070.00017.05
8.0.260.0030.00316.68
8.0.250.0030.00316.91
8.0.240.0040.00416.84
8.0.230.0000.00716.80
8.0.220.0030.00516.74
8.0.210.0020.00516.81
8.0.200.0030.00316.86
8.0.190.0000.00916.83
8.0.180.0070.00016.89
8.0.170.0040.00416.73
8.0.160.0030.00516.82
8.0.150.0000.00716.76
8.0.140.0050.00216.68
8.0.130.0030.00313.18
8.0.120.0040.00416.86
8.0.110.0000.00816.82
8.0.100.0000.00816.74
8.0.90.0040.00416.88
8.0.80.0120.00916.77
8.0.70.0070.00016.92
8.0.60.0000.00716.75
8.0.50.0020.00516.70
8.0.30.0060.01316.98
8.0.20.0120.00917.40
8.0.10.0000.00716.85
8.0.00.0060.01216.67
7.4.330.0030.00315.48
7.4.320.0000.00716.81
7.4.300.0030.00316.74
7.4.290.0000.00716.77
7.4.280.0070.00016.74
7.4.270.0080.00016.56
7.4.260.0030.00316.70
7.4.250.0000.00816.81
7.4.240.0070.00116.81
7.4.230.0050.00216.73
7.4.220.0090.00916.76
7.4.210.0070.00816.79
7.4.200.0040.00416.86
7.4.190.0080.00017.01
7.4.160.0140.00316.82
7.4.150.0070.01117.40
7.4.140.0160.01017.86
7.4.130.0130.00716.78
7.4.120.0130.00816.78
7.4.110.0070.01116.65
7.4.100.0100.01416.68
7.4.90.0190.00016.70
7.4.80.0110.01419.39
7.4.70.0120.01516.75
7.4.60.0070.01016.88
7.4.50.0060.00316.49
7.4.40.0070.00722.77
7.4.30.0070.01016.74
7.4.00.0070.01015.26
7.3.330.0050.00013.52
7.3.320.0000.00713.57
7.3.310.0040.00416.70
7.3.300.0030.00616.53
7.3.290.0040.01116.52
7.3.280.0130.00716.60
7.3.270.0130.00717.40
7.3.260.0140.00716.75
7.3.250.0120.00816.79
7.3.240.0060.01216.63
7.3.230.0130.01016.78
7.3.210.0140.00416.63
7.3.200.0140.00519.39
7.3.190.0090.00916.53
7.3.180.0130.00316.80
7.3.170.0160.00016.80
7.3.160.0030.01316.69
7.3.120.0060.01215.05
7.3.110.0070.01115.23
7.3.100.0080.00815.00
7.3.90.0070.00715.06
7.3.80.0030.01015.32
7.3.70.0090.00314.87
7.3.60.0130.00015.08
7.3.50.0050.00515.07
7.3.40.0030.00615.20
7.3.30.0030.00614.67
7.3.20.0030.01016.86
7.3.10.0100.00516.86
7.3.00.0070.00517.01
7.2.330.0130.00716.71
7.2.320.0120.01217.00
7.2.310.0030.01717.06
7.2.300.0110.00616.70
7.2.290.0110.01116.91
7.2.250.0100.01015.17
7.2.240.0060.01315.02
7.2.230.0030.01515.17
7.2.220.0090.00615.43
7.2.210.0040.01215.06
7.2.200.0120.00415.06
7.2.190.0030.00715.41
7.2.180.0030.01315.37
7.2.170.0080.00815.18
7.2.160.0040.00715.39
7.2.150.0030.01217.18
7.2.140.0000.01017.21
7.2.130.0060.01017.03
7.2.120.0140.00717.09
7.2.110.0070.00617.09
7.2.100.0100.00617.17
7.2.90.0110.00417.30
7.2.80.0140.00317.20
7.2.70.0060.00817.20
7.2.60.0050.00917.20
7.2.50.0050.01117.33
7.2.40.0030.00817.17
7.2.30.0080.00517.20
7.2.20.0040.00917.22
7.2.10.0050.01017.06
7.2.00.0030.01217.27
7.1.330.0090.00616.25
7.1.320.0030.01015.88
7.1.310.0090.00316.01
7.1.300.0030.00915.66
7.1.290.0110.00415.90
7.1.280.0060.00715.82
7.1.270.0060.00915.94
7.1.260.0090.00615.94
7.1.250.0070.00915.99
7.1.200.0080.00315.73
7.1.70.0000.01117.25
7.1.60.0130.01319.82
7.1.50.0120.01217.41
7.1.00.0070.07322.80
7.0.200.0000.00916.91
7.0.140.0030.06722.34
7.0.100.0370.05320.38
7.0.90.0270.05020.34
7.0.80.0100.04720.20
7.0.70.0030.04020.17
7.0.60.0170.04320.18
7.0.50.0070.04020.61
7.0.40.0070.05320.30
7.0.30.0030.04320.48
7.0.20.0070.04320.41
7.0.10.0000.04720.59
7.0.00.0030.04320.53
5.6.280.0130.06321.25
5.6.250.0070.07020.99
5.6.240.0070.09320.87
5.6.230.0130.04021.15
5.6.220.0000.05321.04
5.6.210.0030.04321.04
5.6.200.0030.06721.39
5.6.190.0030.04021.48
5.6.180.0030.04321.39
5.6.170.0100.03321.49
5.6.160.0100.03721.36
5.6.150.0070.08021.36
5.6.140.0070.03721.56
5.6.130.0100.03721.52
5.6.120.0000.04721.41
5.6.110.0100.07321.47
5.6.100.0070.04321.36
5.6.90.0000.04721.43
5.6.80.0070.04720.87
5.6.70.0030.05720.84
5.6.60.0100.07320.85
5.6.50.0170.07320.81
5.6.40.0130.04720.63
5.6.30.0070.08020.86
5.6.20.0170.05320.78
5.6.10.0130.06720.81
5.6.00.0130.07720.70
5.5.380.0200.07020.68
5.5.370.0230.05320.88
5.5.360.0100.03720.64
5.5.350.0000.04720.67
5.5.340.0030.04321.16
5.5.330.0070.04321.34
5.5.320.0000.05021.13
5.5.310.0070.04021.30
5.5.300.0070.04321.29
5.5.290.0130.04021.00
5.5.280.0030.04721.26
5.5.270.0030.04321.02
5.5.260.0030.04321.25
5.5.250.0070.04020.99
5.5.240.0030.04020.66
5.5.230.0000.04020.67
5.5.220.0070.07720.61
5.5.210.0200.06720.68
5.5.200.0130.07320.66
5.5.190.0130.06320.36
5.5.180.0100.06720.54
5.5.160.0070.06320.50
5.5.150.0130.04720.70
5.5.140.0070.06720.66
5.5.130.0130.07020.53
5.5.120.0170.05320.68
5.5.110.0100.07020.68
5.5.100.0200.05020.54
5.5.90.0070.07320.46
5.5.80.0100.04320.43
5.5.70.0130.05720.35
5.5.60.0170.07320.50
5.5.50.0100.07720.48
5.5.40.0070.05720.50
5.5.30.0130.07320.50
5.5.20.0070.05720.50
5.5.10.0100.06720.50
5.5.00.0130.05720.39
5.4.450.0000.05019.48
5.4.440.0070.03719.69
5.4.430.0030.04019.91
5.4.420.0030.04019.62
5.4.410.0000.04719.68
5.4.400.0000.04319.43
5.4.390.0030.04019.30
5.4.380.0030.07019.37
5.4.370.0170.03319.34
5.4.360.0070.07719.56
5.4.350.0130.07019.37
5.4.340.0130.04319.41
5.4.320.0030.08319.47
5.4.310.0200.07019.34
5.4.300.0070.04719.30
5.4.290.0130.07019.40
5.4.280.0130.07319.38
5.4.270.0100.08319.48
5.4.260.0030.08319.30
5.4.250.0130.07019.15
5.4.240.0030.06019.36
5.4.230.0070.04019.40
5.4.220.0070.08319.47
5.4.210.0100.06719.29
5.4.200.0030.06719.58
5.4.190.0130.07719.48
5.4.180.0030.08319.28
5.4.170.0100.04019.39
5.4.160.0130.04019.16
5.4.150.0100.07319.54
5.4.140.0170.06716.83
5.4.130.0070.07716.84
5.4.120.0100.05716.71
5.4.110.0170.06716.79
5.4.100.0100.06016.77
5.4.90.0030.05316.64
5.4.80.0100.05316.81
5.4.70.0030.05716.75
5.4.60.0030.07016.85
5.4.50.0130.06716.77
5.4.40.0100.04316.75
5.4.30.0070.03716.73
5.4.20.0130.06316.84
5.4.10.0100.05716.75
5.4.00.0100.07016.11
5.3.290.0030.04714.92
5.3.280.0070.04014.75
5.3.270.0070.06714.88
5.3.260.0000.08714.76
5.3.250.0030.05014.87
5.3.240.0100.03714.77
5.3.230.0030.07714.77
5.3.220.0100.07714.83
5.3.210.0070.07014.83
5.3.200.0030.04714.75
5.3.190.0170.07014.71
5.3.180.0130.04014.82
5.3.170.0030.08014.74
5.3.160.0130.06714.80
5.3.150.0100.07014.82
5.3.140.0200.03714.82
5.3.130.0100.07314.81
5.3.120.0130.07714.89
5.3.110.0100.06314.81
5.3.100.0130.06014.29
5.3.90.0100.06314.24
5.3.80.0070.07714.28
5.3.70.0130.07014.18
5.3.60.0100.06714.26
5.3.50.0070.04314.20
5.3.40.0100.06714.29
5.3.30.0070.07714.13
5.3.20.0070.07713.86
5.3.10.0170.04013.95
5.3.00.0070.05313.90
5.2.170.0100.04712.31
5.2.160.0030.05712.31
5.2.150.0070.05312.31
5.2.140.0070.06012.31
5.2.130.0000.06312.31
5.2.120.0030.06312.31
5.2.110.0000.06312.31
5.2.100.0030.03712.31
5.2.90.0130.05312.31
5.2.80.0070.06312.31
5.2.70.0100.02712.31
5.2.60.0000.07012.31
5.2.50.0070.03312.31
5.2.40.0030.05012.31
5.2.30.0100.05312.31
5.2.20.0070.06312.31
5.2.10.0170.03712.31
5.2.00.0030.03712.31
5.1.60.0100.03012.31
5.1.50.0000.03012.31
5.1.40.0030.05312.31
5.1.30.0000.06312.31
5.1.20.0100.04312.31
5.1.10.0030.05312.31
5.1.00.0130.05012.31
5.0.50.0030.02712.31
5.0.40.0070.02312.31
5.0.30.0070.06712.31
5.0.20.0070.04312.31
5.0.10.0030.04012.31
5.0.00.0000.07012.31
4.4.90.0030.01712.31
4.4.80.0030.03312.31
4.4.70.0130.02312.31
4.4.60.0070.03312.31
4.4.50.0030.03312.31
4.4.40.0000.04012.31
4.4.30.0000.03712.31
4.4.20.0000.02312.31
4.4.10.0000.02312.31
4.4.00.0000.05712.31
4.3.110.0070.03312.31
4.3.100.0000.03012.31
4.3.90.0030.03312.31
4.3.80.0000.04012.31
4.3.70.0000.02712.31
4.3.60.0030.02312.31
4.3.50.0030.03312.31
4.3.40.0000.05312.31
4.3.30.0070.03312.31
4.3.20.0030.03012.31
4.3.10.0000.03012.31
4.3.00.0000.03712.31

preferences:
66.16 ms | 400 KiB | 5 Q