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.0040.01118.31
8.3.50.0090.00822.03
8.3.40.0090.00618.59
8.3.30.0070.00718.93
8.3.20.0080.00020.39
8.3.10.0050.00322.09
8.3.00.0030.00522.52
8.2.180.0070.00716.50
8.2.170.0110.00422.96
8.2.160.0070.00719.08
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0140.00426.16
8.2.120.0070.00319.13
8.2.110.0030.00622.08
8.2.100.0080.00419.52
8.2.90.0000.00819.18
8.2.80.0040.00417.97
8.2.70.0030.00517.13
8.2.60.0050.00317.68
8.2.50.0000.00818.07
8.2.40.0060.00318.09
8.2.30.0050.00317.83
8.2.20.0000.00817.40
8.2.10.0050.00317.44
8.2.00.0000.00717.48
8.1.280.0170.00325.92
8.1.270.0050.00322.02
8.1.260.0060.00326.35
8.1.250.0100.00028.09
8.1.240.0080.00023.68
8.1.230.0030.00719.11
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.41
8.1.180.0040.00418.64
8.1.170.0040.00418.50
8.1.160.0030.00322.15
8.1.150.0040.00418.49
8.1.140.0000.00717.38
8.1.130.0030.00317.65
8.1.120.0000.00817.31
8.1.110.0040.00417.39
8.1.100.0030.00617.36
8.1.90.0000.00717.41
8.1.80.0050.00217.31
8.1.70.0030.00317.26
8.1.60.0000.00817.47
8.1.50.0070.00017.36
8.1.40.0070.00017.43
8.1.30.0030.00617.53
8.1.20.0060.00317.60
8.1.10.0040.00417.30
8.1.00.0030.00617.40
8.0.300.0040.00318.77
8.0.290.0070.00017.03
8.0.280.0000.00718.28
8.0.270.0030.00317.06
8.0.260.0080.00016.67
8.0.250.0020.00516.89
8.0.240.0040.00416.94
8.0.230.0040.00416.88
8.0.220.0000.00616.84
8.0.210.0030.00616.82
8.0.200.0030.00316.97
8.0.190.0050.00316.85
8.0.180.0030.00316.84
8.0.170.0000.00816.84
8.0.160.0000.00716.71
8.0.150.0000.00716.80
8.0.140.0000.00816.79
8.0.130.0060.00013.26
8.0.120.0040.00416.68
8.0.110.0040.00416.72
8.0.100.0040.00416.73
8.0.90.0030.00516.89
8.0.80.0070.01416.83
8.0.70.0000.00816.75
8.0.60.0040.00416.67
8.0.50.0030.00416.72
8.0.30.0080.01116.83
8.0.20.0070.01017.40
8.0.10.0000.00816.95
8.0.00.0060.01116.65
7.4.330.0060.00015.48
7.4.320.0060.00016.82
7.4.300.0000.00716.75
7.4.290.0000.00716.68
7.4.280.0000.00716.76
7.4.270.0070.00016.86
7.4.260.0050.00316.71
7.4.250.0090.00016.73
7.4.240.0010.00616.86
7.4.230.0040.00416.83
7.4.220.0100.01616.77
7.4.210.0040.01216.91
7.4.200.0000.00816.68
7.4.190.0040.00416.94
7.4.160.0070.01016.66
7.4.150.0060.01117.40
7.4.140.0140.01117.86
7.4.130.0080.01016.75
7.4.120.0130.00616.79
7.4.110.0120.00616.71
7.4.100.0110.00716.74
7.4.90.0120.00616.76
7.4.80.0140.00319.39
7.4.70.0060.01416.80
7.4.60.0090.00916.84
7.4.50.0000.00916.67
7.4.40.0070.01022.77
7.4.30.0200.01816.72
7.4.00.0040.01215.15
7.3.330.0050.00013.63
7.3.320.0000.00613.64
7.3.310.0070.00016.64
7.3.300.0000.00716.66
7.3.290.0070.01016.69
7.3.280.0130.00716.73
7.3.270.0070.01117.40
7.3.260.0120.00616.60
7.3.250.0150.01116.79
7.3.240.0120.00916.82
7.3.230.0120.00816.71
7.3.210.0090.01416.75
7.3.200.0110.00719.39
7.3.190.0090.00916.82
7.3.180.0060.01016.79
7.3.170.0090.00916.79
7.3.160.0000.01616.84
7.3.120.0080.00815.18
7.3.110.0090.00915.11
7.3.100.0050.01115.18
7.3.90.0060.00815.00
7.3.80.0040.01215.04
7.3.70.0070.00515.16
7.3.60.0000.01615.04
7.3.50.0070.00614.85
7.3.40.0070.00815.10
7.3.30.0060.00814.87
7.3.20.0040.00916.83
7.3.10.0030.01016.91
7.3.00.0050.01016.84
7.2.330.0100.01416.86
7.2.320.0140.01016.95
7.2.310.0140.01017.00
7.2.300.0110.01216.72
7.2.290.0130.00716.97
7.2.250.0110.00815.51
7.2.240.0070.01115.40
7.2.230.0130.00715.32
7.2.220.0070.00815.26
7.2.210.0060.01115.35
7.2.200.0070.00915.38
7.2.190.0070.00915.21
7.2.180.0060.01015.22
7.2.170.0070.00815.22
7.2.160.0030.01015.38
7.2.150.0040.01117.33
7.2.140.0070.00717.21
7.2.130.0030.01017.36
7.2.120.0040.00816.89
7.2.110.0120.00317.04
7.2.100.0030.01217.11
7.2.90.0030.00817.25
7.2.80.0070.01017.22
7.2.70.0060.00617.25
7.2.60.0100.00417.17
7.2.50.0040.01117.23
7.2.40.0030.00617.21
7.2.30.0060.00617.00
7.2.20.0080.00617.36
7.2.10.0060.00917.16
7.2.00.0130.00316.93
7.1.330.0110.00515.85
7.1.320.0090.00715.95
7.1.310.0050.01116.07
7.1.300.0050.00815.95
7.1.290.0040.01015.88
7.1.280.0050.00816.05
7.1.270.0090.00615.80
7.1.260.0070.00716.24
7.1.250.0000.01015.97
7.1.240.0120.00316.04
7.1.230.0030.01016.07
7.1.220.0070.01016.20
7.1.210.0070.00716.05
7.1.200.0070.00915.95
7.1.190.0040.00715.76
7.1.180.0050.00515.99
7.1.170.0040.01115.97
7.1.160.0060.00615.83
7.1.150.0060.00316.02
7.1.140.0060.00915.82
7.1.130.0090.00616.04
7.1.120.0000.00916.13
7.1.110.0000.00916.23
7.1.100.0110.00316.18
7.1.90.0030.01016.10
7.1.80.0100.00716.01
7.1.70.0100.00716.75
7.1.60.0100.01117.84
7.1.50.0050.01416.68
7.1.40.0060.01216.11
7.1.30.0090.00916.02
7.1.20.0060.00815.64
7.1.10.0040.01115.81
7.1.00.0020.04219.35
7.0.330.0100.00315.46
7.0.320.0060.00615.75
7.0.310.0090.00315.88
7.0.300.0090.00615.66
7.0.290.0040.01115.82
7.0.280.0040.00815.76
7.0.270.0070.00315.70
7.0.260.0060.00915.76
7.0.250.0090.00615.34
7.0.240.0070.01115.84
7.0.230.0060.00915.51
7.0.220.0000.00915.60
7.0.210.0000.01515.75
7.0.200.0050.00716.37
7.0.190.0030.00815.83
7.0.180.0030.01415.74
7.0.170.0060.00615.45
7.0.160.0000.01315.54
7.0.150.0090.00615.84
7.0.140.0060.03719.03
7.0.130.0000.01315.64
7.0.120.0060.00915.65
7.0.110.0000.01015.53
7.0.100.0030.01015.78
7.0.90.0070.00715.81
7.0.80.0090.00315.73
7.0.70.0060.00615.93
7.0.60.0060.04618.11
7.0.50.0020.04716.84
7.0.40.0130.04017.23
7.0.30.0190.03917.09
7.0.20.0150.03017.13
7.0.10.0050.02517.21
7.0.00.0050.04817.02
5.6.400.0000.01314.58
5.6.390.0030.01014.79
5.6.380.0040.00414.96
5.6.370.0000.01314.77
5.6.360.0000.01414.55
5.6.350.0000.01614.38
5.6.340.0060.00614.74
5.6.330.0000.00914.66
5.6.320.0000.01414.67
5.6.310.0060.00314.53
5.6.300.0000.01514.88
5.6.290.0080.00414.68
5.6.280.0100.03618.14
5.6.270.0100.00314.66
5.6.260.0030.00614.75
5.6.250.0060.00314.61
5.6.240.0030.01014.72
5.6.230.0040.00714.54
5.6.220.0070.00714.78
5.6.210.0100.03717.76
5.6.200.0050.02916.54
5.6.190.0080.04517.83
5.6.180.0170.02017.82
5.6.170.0100.02917.59
5.6.160.0130.04117.83
5.6.150.0030.02516.68
5.6.140.0030.02516.58
5.6.130.0060.02516.54
5.6.120.0070.02318.07
5.6.110.0130.03817.96
5.6.100.0080.03717.95
5.6.90.0130.04018.12
5.6.80.0070.02217.56
5.6.70.0060.00614.48
5.6.60.0090.00914.42
5.6.50.0130.00314.41
5.6.40.0000.01414.37
5.6.30.0090.00914.54
5.6.20.0120.00014.45
5.6.10.0080.00814.76
5.6.00.0000.00914.55
5.5.380.0060.00914.76
5.5.370.0060.00914.34
5.5.360.0000.01414.59
5.5.350.0170.04217.72
5.5.340.0100.04016.54
5.5.330.0050.05017.53
5.5.320.0230.04217.60
5.5.310.0170.03517.51
5.5.300.0030.03216.43
5.5.290.0080.03616.38
5.5.280.0120.04017.84
5.5.270.0100.04017.91
5.5.260.0120.04017.92
5.5.250.0050.02117.69
5.5.240.0040.04217.43
5.5.230.0090.00614.55
5.5.220.0030.01214.52
5.5.210.0000.01714.55
5.5.200.0000.01514.36
5.5.190.0000.00914.07
5.5.180.0100.00614.45
5.5.170.0100.00714.58
5.5.160.0060.00914.36
5.5.150.0030.00714.50
5.5.140.0090.00614.71
5.5.130.0090.00614.65
5.5.120.0070.00714.44
5.5.110.0110.00414.45
5.5.100.0130.00314.01
5.5.90.0070.00714.42
5.5.80.0060.00614.58
5.5.70.0060.00614.63
5.5.60.0070.00414.30
5.5.50.0070.00714.28
5.5.40.0070.00714.65
5.5.30.0100.00714.57
5.5.20.0060.00614.37
5.5.10.0040.00814.69
5.5.00.0100.00314.64
5.4.450.0170.02715.54
5.4.440.0530.02515.51
5.4.430.0220.02215.58
5.4.420.0470.02215.57
5.4.410.0420.02015.52
5.4.400.0300.02715.28
5.4.390.0390.02015.34
5.4.380.0100.03115.28
5.4.370.0190.02714.97
5.4.360.0160.03315.06
5.4.350.0070.03515.35
5.4.340.0160.02515.15
5.4.330.0070.00311.25
5.4.320.0070.01911.97
5.4.310.0060.02411.96
5.4.300.0080.02011.96
5.4.290.0050.02311.99
5.4.280.0040.02611.91
5.4.270.0070.01911.90
5.4.260.0090.02515.17
5.4.250.0000.03615.29
5.4.240.0030.03215.11
5.4.230.0020.03415.12
5.4.220.0050.04415.21
5.4.210.0080.04015.19
5.4.200.0070.02815.12
5.4.190.0070.02815.37
5.4.180.0170.03115.23
5.4.170.0110.03515.20
5.4.160.0130.03315.35
5.4.150.0080.03015.26
5.4.140.0050.02914.09
5.4.130.0070.03914.03
5.4.120.0050.03013.93
5.4.110.0060.02813.97
5.4.100.0080.03814.10
5.4.90.0060.02714.06
5.4.80.0030.04113.90
5.4.70.0070.02814.05
5.4.60.0080.02714.05
5.4.50.0100.03013.95
5.4.40.0090.02714.01
5.4.30.0100.02514.03
5.4.20.0100.03314.02
5.4.10.0060.02813.92
5.4.00.0060.02813.69
5.3.290.0050.02412.07
5.3.280.0050.02813.05
5.3.270.0030.03313.06
5.3.260.0050.03213.05
5.3.250.0080.02713.05
5.3.240.0120.03712.98
5.3.230.0120.02012.99
5.3.220.0040.02912.91
5.3.210.0160.02612.97
5.3.200.0030.03512.96
5.3.190.0000.04813.00
5.3.180.0060.03012.96
5.3.170.0050.02712.94
5.3.160.0110.03512.95
5.3.150.0120.02913.07
5.3.140.0050.03112.91
5.3.130.0070.03012.94
5.3.120.0110.02313.03
5.3.110.0150.02213.04
5.3.100.0030.02812.65
5.3.90.0080.02512.60
5.3.80.0030.03012.63
5.3.70.0050.03512.73
5.3.60.0050.02912.78
5.3.50.0120.02512.67
5.3.40.0070.03012.76
5.3.30.0020.04112.67
5.3.20.0080.03312.48
5.3.10.0050.02912.59
5.3.00.0070.03712.45
5.2.170.0000.04711.29
5.2.160.0030.04311.09
5.2.150.0100.04711.27
5.2.140.0130.05011.42
5.2.130.0130.04011.23
5.2.120.0030.04311.30
5.2.110.0130.05011.29
5.2.100.0030.04011.44
5.2.90.0030.04711.21
5.2.80.0030.06311.37
5.2.70.0170.04311.21
5.2.60.0070.06011.08
5.2.50.0130.04711.07
5.2.40.0030.04011.07
5.2.30.0030.04311.00
5.2.20.0070.04011.24
5.2.10.0130.05011.00
5.2.00.0130.04310.83
5.1.60.0030.0379.95
5.1.50.0070.03310.21
5.1.40.0030.03710.00
5.1.30.0030.03710.45
5.1.20.0100.03010.40
5.1.10.0030.05010.28
5.1.00.0030.03710.14
5.0.50.0070.0308.77
5.0.40.0000.0308.52
5.0.30.0100.0378.34
5.0.20.0070.0278.34
5.0.10.0070.0238.38
5.0.00.0000.0578.30
4.4.90.0030.0236.05
4.4.80.0000.0276.05
4.4.70.0000.0236.05
4.4.60.0000.0306.05
4.4.50.0030.0206.05
4.4.40.0070.0306.05
4.4.30.0000.0236.05
4.4.20.0000.0236.05
4.4.10.0000.0276.16
4.4.00.0030.0336.05
4.3.110.0000.0236.05
4.3.100.0000.0276.05
4.3.90.0000.0236.05
4.3.80.0070.0306.05
4.3.70.0000.0236.05
4.3.60.0030.0236.05
4.3.50.0030.0306.05
4.3.40.0000.0376.05
4.3.30.0000.0236.05
4.3.20.0000.0236.05
4.3.10.0000.0306.05
4.3.00.0070.02313.21

preferences:
48.19 ms | 401 KiB | 5 Q