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)
5.4.260.0000.06018.73
5.4.250.0100.05718.71
5.4.240.0070.05318.84
5.4.230.0070.08718.62
5.4.220.0100.05718.94
5.4.210.0070.05719.05
5.4.200.0100.05018.99
5.4.190.0130.06718.62
5.4.180.0130.07718.95
5.4.170.0130.04718.73
5.4.160.0170.04318.89
5.4.150.0130.07318.87
5.4.140.0030.05716.53
5.4.130.0100.06716.30
5.4.120.0070.05316.33
5.4.110.0070.05016.61
5.4.100.0070.07016.27
5.4.90.0070.05016.61
5.4.80.0130.04716.25
5.4.70.0100.05016.52
5.4.60.0100.06716.30
5.4.50.0100.04716.40
5.4.40.0130.04716.33
5.4.30.0100.05016.23
5.4.20.0070.04716.45
5.4.10.0100.04716.39
5.4.00.0030.07015.74
5.3.280.0130.06714.37
5.3.270.0170.06014.63
5.3.260.0130.05014.60
5.3.250.0200.06314.44
5.3.240.0070.06314.75
5.3.230.0030.05314.44
5.3.220.0030.05714.41
5.3.210.0170.06714.44
5.3.200.0030.05314.56
5.3.190.0030.07014.45
5.3.180.0100.05014.45
5.3.170.0130.05714.26
5.3.160.0100.06014.45
5.3.150.0100.05014.56
5.3.140.0030.05314.44
5.3.130.0030.06014.57
5.3.120.0070.05714.39
5.3.110.0130.06014.49
5.3.100.0070.05013.91
5.3.90.0130.06013.87
5.3.80.0170.04014.17
5.3.70.0030.05313.95
5.3.60.0130.04013.87
5.3.50.0100.05713.96
5.3.40.0070.05013.84
5.3.30.0070.04713.63
5.3.20.0100.04713.70
5.3.10.0270.04713.42
5.3.00.0000.05313.73
5.2.170.0000.06011.29
5.2.160.0100.03711.13
5.2.150.0100.04711.14
5.2.140.0100.03711.05
5.2.130.0030.04311.12
5.2.120.0030.05710.98
5.2.110.0000.04311.25
5.2.100.0000.04311.00
5.2.90.0070.04311.00
5.2.80.0030.04310.85
5.2.70.0100.03711.24
5.2.60.0000.05011.17
5.2.50.0030.04310.94
5.2.40.0000.04310.76
5.2.30.0030.04010.86
5.2.20.0100.03311.07
5.2.10.0130.04711.03
5.2.00.0130.03710.63
5.1.60.0030.03310.14
5.1.50.0070.0309.95
5.1.40.0030.0409.91
5.1.30.0000.03710.34
5.1.20.0000.04010.18
5.1.10.0030.03310.25
5.1.00.0070.03310.30
5.0.50.0030.0378.49
5.0.40.0070.0238.44
5.0.30.0030.0438.41
5.0.20.0100.0308.25
5.0.10.0070.0408.15
5.0.00.0000.0508.14
4.4.90.0130.0206.05
4.4.80.0030.0206.05
4.4.70.0000.0236.05
4.4.60.0000.0336.05
4.4.50.0000.0236.05
4.4.40.0000.0336.05
4.4.30.0070.0176.05
4.4.20.0070.0276.05
4.4.10.0030.0276.05
4.4.00.0100.0376.05
4.3.110.0030.0306.05
4.3.100.0000.0236.05
4.3.90.0030.0306.05
4.3.80.0070.0306.05
4.3.70.0030.0476.05
4.3.60.0100.0136.05
4.3.50.0030.0236.05
4.3.40.0100.0336.05
4.3.30.0030.0236.05
4.3.20.0030.0236.05
4.3.10.0000.0236.05
4.3.00.0030.0207.37

preferences:
138.96 ms | 1394 KiB | 7 Q