3v4l.org

run code in 300+ PHP versions simultaneously
<?php function QueryWhoisServer($whoisserver, $domain) { $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"; } } } return $res; } print QueryWhoisServer("whois.verisign-grs.co", "com");

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.00318.43
8.3.50.0130.01221.90
8.3.40.0140.00018.65
8.3.30.0110.00418.96
8.3.20.0030.00620.33
8.3.10.0000.00822.09
8.3.00.0080.00022.43
8.2.180.0120.00316.75
8.2.170.0170.00322.96
8.2.160.0100.01019.16
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00719.23
8.2.110.0060.00322.20
8.2.100.0090.00319.45
8.2.90.0000.00719.00
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0040.00418.03
8.2.30.0050.00217.90
8.2.20.0040.00417.52
8.2.10.0000.00717.62
8.2.00.0040.00417.48
8.1.280.0070.01325.92
8.1.270.0040.00421.96
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0040.00423.70
8.1.230.0000.01219.02
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.10
8.1.190.0040.00417.39
8.1.180.0050.00218.43
8.1.170.0000.00718.50
8.1.160.0040.00422.02
8.1.150.0000.00718.51
8.1.140.0040.00417.35
8.1.130.0000.00717.68
8.1.120.0000.00717.25
8.1.110.0040.00417.36
8.1.100.0000.00717.37
8.1.90.0040.00417.23
8.1.80.0040.00417.25
8.1.70.0070.00017.30
8.1.60.0000.00817.48
8.1.50.0040.00417.45
8.1.40.0050.00317.35
8.1.30.0060.00317.52
8.1.20.0040.00417.53
8.1.10.0000.00717.37
8.1.00.0000.00717.39
8.0.300.0000.00918.77
8.0.290.0020.00517.03
8.0.280.0070.00018.20
8.0.270.0080.00017.02
8.0.260.0040.00416.81
8.0.250.0050.00316.97
8.0.240.0070.00016.93
8.0.230.0030.00316.94
8.0.220.0030.00316.84
8.0.210.0000.00816.79
8.0.200.0030.00316.80
8.0.190.0060.00316.91
8.0.180.0000.00716.75
8.0.170.0070.00016.83
8.0.160.0030.00316.82
8.0.150.0040.00416.68
8.0.140.0000.00816.80
8.0.130.0030.00313.28
8.0.120.0000.00716.80
8.0.110.0040.00416.68
8.0.100.0040.00416.70
8.0.90.0070.00016.84
8.0.80.0110.00416.84
8.0.70.0040.00416.71
8.0.60.0040.00416.67
8.0.50.0040.00416.72
8.0.30.0060.01316.95
8.0.20.0110.00817.40
8.0.10.0080.00017.03
8.0.00.0070.01016.50
7.4.330.0000.00515.47
7.4.320.0030.00316.62
7.4.300.0000.00716.64
7.4.290.0030.00316.73
7.4.280.0070.00016.63
7.4.270.0070.00016.73
7.4.260.0040.00416.71
7.4.250.0080.00016.75
7.4.240.0030.00516.79
7.4.230.0070.00016.94
7.4.220.0100.01716.68
7.4.210.0020.01516.78
7.4.200.0070.00016.87
7.4.190.0000.00716.96
7.4.160.0120.00316.67
7.4.150.0080.01217.40
7.4.140.0140.00817.86
7.4.130.0080.01116.70
7.4.120.0060.01216.86
7.4.110.0150.00316.69
7.4.100.0070.01116.81
7.4.90.0130.00616.66
7.4.80.0130.00919.39
7.4.70.0130.01016.73
7.4.60.0140.00316.86
7.4.50.0050.00216.95
7.4.40.0030.01322.77
7.4.30.0100.00716.74
7.4.10.0060.01215.48
7.4.00.0090.00815.20
7.3.330.0000.00613.57
7.3.320.0030.00313.54
7.3.310.0040.00416.70
7.3.300.0000.00716.57
7.3.290.0030.01516.56
7.3.280.0120.01016.59
7.3.270.0090.01217.40
7.3.260.0110.00816.77
7.3.250.0070.01216.71
7.3.240.0080.01216.53
7.3.230.0100.01016.62
7.3.210.0120.00616.91
7.3.200.0060.01219.39
7.3.190.0100.01316.64
7.3.180.0100.00716.77
7.3.170.0080.00816.59
7.3.160.0100.00616.84
7.3.130.0060.01315.18
7.3.120.0100.00815.10
7.3.110.0100.01015.09
7.3.100.0070.00915.09
7.3.90.0050.01115.12
7.3.80.0040.00715.18
7.3.70.0070.00815.21
7.3.60.0110.00314.85
7.3.50.0010.01114.95
7.3.40.0080.00714.76
7.3.30.0040.01115.09
7.3.20.0040.00916.77
7.3.10.0060.00616.77
7.3.00.0040.01117.01
7.2.330.0130.00716.88
7.2.320.0130.01316.79
7.2.310.0120.01316.76
7.2.300.0180.00317.08
7.2.290.0070.01016.88
7.2.260.0130.00615.29
7.2.250.0050.01415.14
7.2.240.0030.01315.11
7.2.230.0080.00815.33
7.2.220.0050.01115.27
7.2.210.0080.00615.06
7.2.200.0030.01415.35
7.2.190.0070.00915.08
7.2.180.0030.00815.37
7.2.170.0050.00915.24
7.2.160.0060.00315.01
7.2.150.0070.00417.09
7.2.140.0070.00717.16
7.2.130.0060.00317.14
7.2.120.0090.00617.22
7.2.110.0060.01017.23
7.2.100.0000.01516.95
7.2.90.0060.00916.91
7.2.80.0030.00617.33
7.2.70.0130.00317.05
7.2.60.0050.01017.08
7.2.50.0000.01117.27
7.2.40.0060.00917.24
7.2.30.0070.01116.95
7.2.20.0110.00616.90
7.2.10.0000.01217.20
7.2.00.0070.00918.40
7.1.330.0090.00415.92
7.1.320.0090.00616.04
7.1.310.0010.01116.12
7.1.300.0080.00516.05
7.1.290.0080.00316.06
7.1.280.0100.00416.02
7.1.270.0050.00816.04
7.1.260.0010.01115.79
7.1.250.0060.01216.03
7.1.240.0080.00415.92
7.1.230.0080.00815.77
7.1.220.0070.00416.09
7.1.210.0090.00616.07
7.1.200.0030.01015.99
7.1.190.0030.00715.96
7.1.180.0000.01215.94
7.1.170.0070.00715.98
7.1.160.0060.00615.83
7.1.150.0000.01315.85
7.1.140.0070.00715.92
7.1.130.0070.00715.98
7.1.120.0080.00416.04
7.1.110.0070.00716.05
7.1.100.0050.00515.84
7.1.90.0110.00015.81
7.1.80.0070.00716.14
7.1.70.0040.00616.65
7.1.60.0080.00516.76
7.1.50.0070.01016.66
7.1.40.0070.00415.96
7.1.30.0000.01115.78
7.1.20.0040.01115.68
7.1.10.0030.00615.98
7.1.00.0020.04519.29
7.0.330.0040.00415.66
7.0.320.0050.00515.79
7.0.310.0000.01215.73
7.0.300.0070.00715.40
7.0.290.0000.01515.68
7.0.280.0080.00015.58
7.0.270.0040.00715.59
7.0.260.0090.00315.80
7.0.250.0030.00915.55
7.0.240.0070.00715.65
7.0.230.0000.01115.52
7.0.220.0030.00715.79
7.0.210.0050.00515.80
7.0.200.0070.00816.16
7.0.190.0070.00715.69
7.0.180.0000.01115.35
7.0.170.0070.00715.79
7.0.160.0030.01515.48
7.0.150.0060.00615.54
7.0.140.0000.04119.15
7.0.130.0060.00915.52
7.0.120.0030.00715.63
7.0.110.0080.00615.54
7.0.100.0030.00915.75
7.0.90.0080.00415.77
7.0.80.0000.01115.72
7.0.70.0070.00815.86
7.0.60.0050.03318.11
7.0.50.0070.02716.81
7.0.40.0050.05117.04
7.0.30.0230.02317.07
7.0.20.0200.03617.14
7.0.10.0070.03017.02
7.0.00.0080.03017.15
5.6.400.0060.00914.77
5.6.390.0060.00914.25
5.6.380.0000.01214.71
5.6.370.0070.00714.84
5.6.360.0030.01014.85
5.6.350.0070.00714.46
5.6.340.0080.00814.56
5.6.330.0040.01114.53
5.6.320.0060.00614.58
5.6.310.0040.00714.71
5.6.300.0060.00314.82
5.6.290.0070.00314.85
5.6.280.0040.04018.05
5.6.270.0030.00714.40
5.6.260.0130.00014.60
5.6.250.0080.00814.37
5.6.240.0090.00614.69
5.6.230.0100.00714.42
5.6.220.0070.00714.58
5.6.210.0050.04517.83
5.6.200.0060.04116.62
5.6.190.0040.02717.82
5.6.180.0150.04217.85
5.6.170.0120.02817.71
5.6.160.0070.04717.57
5.6.150.0080.02516.40
5.6.140.0080.02916.52
5.6.130.0060.02816.45
5.6.120.0030.04618.01
5.6.110.0070.04517.99
5.6.100.0130.03917.95
5.6.90.0130.04318.03
5.6.80.0120.03717.74
5.6.70.0030.00914.51
5.6.60.0110.00314.58
5.6.50.0000.01814.22
5.6.40.0000.00914.58
5.6.30.0040.00414.22
5.6.20.0030.01314.48
5.6.10.0030.00614.26
5.6.00.0090.00314.31
5.5.380.0100.00314.63
5.5.370.0110.00414.50
5.5.360.0070.01014.13
5.5.350.0150.04017.68
5.5.340.0080.02816.73
5.5.330.0100.04517.75
5.5.320.0120.03017.64
5.5.310.0160.03117.55
5.5.300.0030.04716.39
5.5.290.0000.03116.53
5.5.280.0080.03517.92
5.5.270.0080.02818.05
5.5.260.0060.04617.84
5.5.250.0050.03217.59
5.5.240.0050.03817.54
5.5.230.0070.01114.22
5.5.220.0030.01214.57
5.5.210.0030.01314.44
5.5.200.0150.00014.16
5.5.190.0090.00314.44
5.5.180.0090.00614.28
5.5.170.0090.00014.55
5.5.160.0150.00014.13
5.5.150.0070.00714.45
5.5.140.0110.00414.55
5.5.130.0030.00614.51
5.5.120.0090.00614.31
5.5.110.0090.00914.50
5.5.100.0080.00614.32
5.5.90.0060.00914.47
5.5.80.0040.01414.33
5.5.70.0090.00614.30
5.5.60.0060.01014.55
5.5.50.0040.00814.27
5.5.40.0060.01014.39
5.5.30.0030.01314.48
5.5.20.0060.00614.69
5.5.10.0060.00614.26
5.5.00.0040.00814.39
5.4.450.0130.03715.63
5.4.440.0440.02315.47
5.4.430.0320.03415.58
5.4.420.0170.03515.65
5.4.410.0100.02915.36
5.4.400.0230.03315.16
5.4.390.0170.04615.09
5.4.380.0050.03215.04
5.4.370.0050.02515.05
5.4.360.0100.02615.14
5.4.350.0100.02111.71
5.4.340.0040.02311.80
5.4.330.0070.00411.20
5.4.320.0020.03011.83
5.4.310.0020.02811.95
5.4.300.0080.02211.84
5.4.290.0050.02212.05
5.4.280.0050.02511.85
5.4.270.0050.02411.95
5.4.260.0050.03115.05
5.4.250.0080.02815.08
5.4.240.0000.03714.97
5.4.230.0030.03315.27
5.4.220.0030.03615.25
5.4.210.0070.03115.19
5.4.200.0050.02915.30
5.4.190.0060.03315.29
5.4.180.0050.02915.15
5.4.170.0060.02815.29
5.4.160.0060.02915.19
5.4.150.0030.03615.09
5.4.140.0100.02414.15
5.4.130.0030.03014.13
5.4.120.0120.02213.87
5.4.110.0030.03313.84
5.4.100.0070.02614.10
5.4.90.0070.02714.04
5.4.80.0100.02313.99
5.4.70.0100.03014.01
5.4.60.0080.02313.87
5.4.50.0070.02813.99
5.4.40.0110.02414.03
5.4.30.0060.02714.03
5.4.20.0020.03113.83
5.4.10.0050.02814.06
5.4.00.0050.04013.71
5.3.290.0040.02611.85
5.3.280.0060.03812.68
5.3.270.0070.02712.59
5.3.260.0060.02512.61
5.3.250.0090.02512.74
5.3.240.0050.03012.78
5.3.230.0060.02612.53
5.3.220.0070.02612.52
5.3.210.0070.03912.52
5.3.200.0080.02412.64
5.3.190.0030.03212.65
5.3.180.0000.03312.73
5.3.170.0120.02212.71
5.3.160.0080.02312.59
5.3.150.0070.02512.72
5.3.140.0120.03212.54
5.3.130.0050.03212.79
5.3.120.0050.03012.61
5.3.110.0030.03312.68
5.3.100.0050.03212.43
5.3.90.0100.02512.45
5.3.80.0030.03012.37
5.3.70.0030.02812.33
5.3.60.0130.02812.32
5.3.50.0110.03212.42
5.3.40.0120.02912.37
5.3.30.0070.02712.43
5.3.20.0020.02812.15
5.3.10.0070.02512.15
5.3.00.0080.02311.99
5.2.170.0030.04011.10
5.2.160.0030.04311.09
5.2.150.0030.04311.22
5.2.140.0070.04011.35
5.2.130.0130.04711.22
5.2.120.0030.04011.24
5.2.110.0130.03711.31
5.2.100.0030.04011.13
5.2.90.0030.04711.39
5.2.80.0030.04311.12
5.2.70.0070.04011.30
5.2.60.0070.06011.10
5.2.50.0070.04011.36
5.2.40.0030.05011.04
5.2.30.0100.04711.26
5.2.20.0030.05311.04
5.2.10.0070.04010.98
5.2.00.0100.04010.77
5.1.60.0030.03310.03
5.1.50.0000.04010.30
5.1.40.0030.03310.10
5.1.30.0100.03310.48
5.1.20.0030.05710.56
5.1.10.0030.03710.16
5.1.00.0030.04310.34
5.0.50.0000.0338.91
5.0.40.0070.0238.46
5.0.30.0000.0438.26
5.0.20.0000.0308.41
5.0.10.0030.0278.48
5.0.00.0100.0508.28
4.4.90.0030.0206.05
4.4.80.0030.0206.05
4.4.70.0000.0236.05
4.4.60.0000.0236.10
4.4.50.0030.0206.05
4.4.40.0000.0376.05
4.4.30.0000.0236.05
4.4.20.0000.0276.05
4.4.10.0030.0206.05
4.4.00.0030.0306.05
4.3.110.0100.0136.05
4.3.100.0100.0136.05
4.3.90.0070.0176.05
4.3.80.0070.0306.05
4.3.70.0000.0236.05
4.3.60.0070.0236.05
4.3.50.0030.0276.05
4.3.40.0070.0376.05
4.3.30.0000.0236.05
4.3.20.0000.0236.05
4.3.10.0000.0206.05
4.3.00.0030.0207.12

preferences:
48.21 ms | 401 KiB | 5 Q