3v4l.org

run code in 300+ PHP versions simultaneously
<?php $whoisserver = "whois.denic.de"; //.de whois server $domain = "google.de"; $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.00818.30
8.3.50.0160.00821.90
8.3.40.0070.00718.80
8.3.30.0060.00818.95
8.3.20.0040.00420.16
8.3.10.0080.00022.05
8.3.00.0000.00722.44
8.2.180.0120.00316.50
8.2.170.0110.00422.96
8.2.160.0070.00719.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0100.00017.50
8.2.110.0040.00422.30
8.2.100.0080.00319.57
8.2.90.0000.00719.10
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0000.00817.65
8.2.50.0000.00818.07
8.2.40.0000.00817.97
8.2.30.0070.00018.04
8.2.20.0030.00617.61
8.2.10.0040.00417.63
8.2.00.0000.00717.44
8.1.280.0070.01025.92
8.1.270.0070.00021.95
8.1.260.0070.00026.35
8.1.250.0100.00028.09
8.1.240.0000.00823.76
8.1.230.0090.00319.21
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0060.00317.27
8.1.180.0000.00818.53
8.1.170.0030.00618.53
8.1.160.0070.00022.05
8.1.150.0070.00018.48
8.1.140.0040.00417.28
8.1.130.0000.00717.79
8.1.120.0000.00717.36
8.1.110.0080.00017.33
8.1.100.0040.00317.33
8.1.90.0030.00317.25
8.1.80.0040.00417.24
8.1.70.0040.00417.32
8.1.60.0000.00817.50
8.1.50.0040.00417.30
8.1.40.0040.00417.42
8.1.30.0040.00417.41
8.1.20.0040.00417.55
8.1.10.0000.00717.43
8.1.00.0030.00617.35
8.0.300.0040.00418.77
8.0.290.0050.00216.91
8.0.280.0030.00518.32
8.0.270.0030.00317.13
8.0.260.0000.00716.67
8.0.250.0030.00316.91
8.0.240.0040.00416.77
8.0.230.0030.00316.80
8.0.220.0000.00816.73
8.0.210.0030.00316.86
8.0.200.0060.00016.82
8.0.190.0000.00716.95
8.0.180.0040.00316.86
8.0.170.0040.00416.88
8.0.160.0040.00416.87
8.0.150.0030.00516.72
8.0.140.0040.00416.70
8.0.130.0030.00313.20
8.0.120.0030.00516.77
8.0.110.0050.00216.84
8.0.100.0040.00416.84
8.0.90.0040.00416.88
8.0.80.0090.00616.80
8.0.70.0000.00816.73
8.0.60.0000.00916.89
8.0.50.0070.00016.79
8.0.30.0200.00216.97
8.0.20.0150.00417.40
8.0.10.0000.00716.85
8.0.00.0070.01216.59
7.4.330.0000.00515.40
7.4.320.0000.00616.86
7.4.300.0060.00016.77
7.4.290.0080.00016.69
7.4.280.0070.00016.63
7.4.270.0030.00516.73
7.4.260.0030.00316.67
7.4.250.0040.00416.80
7.4.240.0050.00316.83
7.4.230.0000.00816.65
7.4.220.0070.01116.68
7.4.210.0060.01116.84
7.4.200.0030.00516.56
7.4.190.0000.00816.68
7.4.160.0060.01216.68
7.4.150.0060.01117.40
7.4.140.0210.00717.86
7.4.130.0130.00616.77
7.4.120.0110.00816.83
7.4.110.0180.00016.72
7.4.100.0030.02116.71
7.4.90.0070.01116.76
7.4.80.0120.00619.39
7.4.70.0130.00716.57
7.4.60.0110.00716.81
7.4.50.0060.00316.45
7.4.40.0000.01422.77
7.4.30.0090.01016.70
7.4.00.0060.00915.22
7.3.330.0000.00513.29
7.3.320.0050.00013.30
7.3.310.0000.00716.69
7.3.300.0000.00816.52
7.3.290.0060.00916.54
7.3.280.0090.00716.62
7.3.270.0090.00917.40
7.3.260.0140.00616.78
7.3.250.0130.00716.77
7.3.240.0100.00716.80
7.3.230.0140.00316.63
7.3.210.0120.00616.74
7.3.200.0060.01119.39
7.3.190.0100.01316.66
7.3.180.0100.00616.52
7.3.170.0070.01116.75
7.3.160.0080.00816.71
7.3.120.0030.01315.19
7.3.110.0030.01515.20
7.3.100.0100.00715.15
7.3.90.0070.00714.82
7.3.80.0000.01215.13
7.3.70.0090.00614.89
7.3.60.0090.00915.10
7.3.50.0090.00615.06
7.3.40.0100.00315.12
7.3.30.0080.00814.73
7.3.20.0110.00716.77
7.3.10.0100.00916.42
7.3.00.0100.00816.65
7.2.330.0100.00716.59
7.2.320.0120.01216.85
7.2.310.0030.01816.95
7.2.300.0120.00617.06
7.2.290.0120.00616.99
7.2.240.0080.00815.61
7.2.230.0040.01415.51
7.2.220.0060.01014.90
7.2.210.0000.01615.36
7.2.200.0040.01115.28
7.2.190.0060.00915.20
7.2.180.0120.00615.34
7.2.170.0000.01715.14
7.2.160.0070.00715.01
7.2.150.0080.00716.91
7.2.140.0090.00317.20
7.2.130.0070.00917.00
7.2.120.0110.00417.03
7.2.110.0080.00817.21
7.2.100.0030.01216.90
7.2.90.0060.01316.85
7.2.80.0090.00617.02
7.2.70.0120.00916.89
7.2.60.0120.00716.91
7.2.50.0120.00516.93
7.2.40.0090.01016.92
7.2.30.0090.01216.91
7.2.20.0120.00516.76
7.2.10.0120.00916.77
7.2.00.0100.00917.21
7.1.330.0030.01215.81
7.1.320.0030.00916.07
7.1.310.0120.00615.59
7.1.300.0070.00715.88
7.1.290.0070.00716.12
7.1.280.0040.01115.97
7.1.270.0110.00315.96
7.1.260.0000.01415.89
7.1.250.0050.01115.65
7.1.200.0030.00315.92
7.1.70.0070.00717.44
7.1.60.0070.01819.82
7.1.50.0100.01417.43
7.1.00.0070.08722.79
7.0.200.0000.00916.74
7.0.140.0030.07722.51
7.0.60.0000.08020.33
7.0.50.0100.04318.24
7.0.40.0070.04720.59
7.0.30.0330.07720.46
7.0.20.0300.08020.42
7.0.10.0330.08720.46
7.0.00.0070.09020.45
5.6.280.0070.07021.33
5.6.210.0100.07721.10
5.6.200.0170.07318.49
5.6.190.0000.06721.11
5.6.180.4170.04021.07
5.6.170.0400.06020.85
5.6.160.0070.08720.84
5.6.150.0100.08318.56
5.6.140.0100.07018.51
5.6.130.0130.05718.46
5.6.120.0130.08321.50
5.6.110.0070.06321.49
5.6.100.0100.08321.34
5.6.90.0070.08021.24
5.6.80.0100.07020.81
5.5.350.0070.08020.86
5.5.340.0100.07718.31
5.5.330.0070.08320.86
5.5.320.0230.03720.76
5.5.310.0300.03320.62
5.5.300.0070.06018.37
5.5.290.0030.04018.45
5.5.280.0130.03021.30
5.5.270.0070.04321.16
5.5.260.0170.08321.25
5.5.250.0100.04021.07
5.5.240.0170.07020.70
5.4.450.0470.05019.76
5.4.440.0400.06019.86
5.4.430.0470.06019.76
5.4.420.0130.05719.79
5.4.410.0430.05019.39
5.4.400.0970.00019.01
5.4.390.0830.00018.95
5.4.380.0270.05319.15
5.4.370.0370.04019.08
5.4.360.0270.05018.86
5.4.350.0300.05018.93
5.4.340.0270.06018.79
5.4.320.0040.03912.68
5.4.310.0070.03812.68
5.4.300.0040.04512.68
5.4.290.0070.04112.68
5.4.280.0070.03412.58
5.4.270.0040.03812.58
5.4.260.0130.05019.00
5.4.250.0130.05018.77
5.4.240.0200.06318.78
5.4.230.0000.06019.07
5.4.220.0170.05019.11
5.4.210.0070.08019.10
5.4.200.0100.05719.27
5.4.190.0100.06019.10
5.4.180.0070.08018.79
5.4.170.0170.06719.02
5.4.160.0200.07019.16
5.4.150.0100.07318.77
5.4.140.0130.07016.64
5.4.130.0130.04316.63
5.4.120.0100.05316.64
5.4.110.0130.06716.81
5.4.100.0130.06016.82
5.4.90.0070.05016.65
5.4.80.0100.04716.64
5.4.70.0000.05316.67
5.4.60.0030.05716.56
5.4.50.0100.05316.72
5.4.40.0130.04316.64
5.4.30.0030.06316.79
5.4.20.0070.05316.66
5.4.10.0130.05016.69
5.4.00.0130.06016.08
5.3.290.0080.04212.89
5.3.280.0200.06014.70
5.3.270.0170.05014.77
5.3.260.0130.07714.89
5.3.250.0070.05714.73
5.3.240.0230.05714.95
5.3.230.0130.05314.71
5.3.220.0130.05014.87
5.3.210.0170.07014.70
5.3.200.0170.05014.59
5.3.190.0100.05314.91
5.3.180.0070.07714.91
5.3.170.0170.06714.86
5.3.160.0170.04714.51
5.3.150.0070.05314.71
5.3.140.0200.05014.89
5.3.130.0130.06314.80
5.3.120.0130.06314.80
5.3.110.0170.05314.75
5.3.100.0070.05714.17
5.3.90.0070.07714.14
5.3.80.0100.06714.17
5.3.70.0000.06013.96
5.3.60.0200.06014.10
5.3.50.0170.05014.06
5.3.40.0100.05314.15
5.3.30.0070.05314.02
5.3.20.0030.05013.64
5.3.10.0130.06313.93
5.3.00.0100.05013.75
5.2.170.0130.04011.48
5.2.160.0070.04311.21
5.2.150.0070.05311.26
5.2.140.0030.04711.48
5.2.130.0230.02711.44
5.2.120.0030.04011.23
5.2.110.0100.05311.14
5.2.100.0130.04311.23
5.2.90.0000.05311.05
5.2.80.0070.04711.04
5.2.70.0030.06711.27
5.2.60.0030.04010.99
5.2.50.0170.03711.15
5.2.40.0000.04710.94
5.2.30.0070.05711.25
5.2.20.0070.03711.24
5.2.10.0070.04011.00
5.2.00.0100.05310.66
5.1.60.0070.03310.10
5.1.50.0100.02710.01
5.1.40.0170.03310.09
5.1.30.0100.03710.54
5.1.20.0030.05310.49
5.1.10.0100.03010.42
5.1.00.0030.03710.08
5.0.50.0070.0278.76
5.0.40.0000.0308.52
5.0.30.0000.0638.26
5.0.20.0000.0308.34
5.0.10.0070.0238.29
5.0.00.0030.0438.28
4.4.90.0030.0305.93
4.4.80.0000.0235.92
4.4.70.0030.0205.88
4.4.60.0000.0305.91
4.4.50.0100.0275.92
4.4.40.0000.0375.93
4.4.30.0000.0235.88
4.4.20.0030.0235.97
4.4.10.0070.0176.09
4.4.00.0000.0376.02
4.3.110.0030.0205.82
4.3.100.0030.0205.81
4.3.90.0000.0235.79
4.3.80.0070.0405.82
4.3.70.0000.0335.80
4.3.60.0000.0235.83
4.3.50.0030.0205.82
4.3.40.0000.0335.96
4.3.30.0030.0235.50
4.3.20.0000.0235.50
4.3.10.0030.0205.50
4.3.00.0030.0207.29

preferences:
48.13 ms | 401 KiB | 5 Q