3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=utf-8'); function h($str) {return htmlspecialchars($str, ENT_QUOTES, 'UTF-8');} $domain='yahoo.co.jp'; $whois_server='whois.jprs.jp'; $fp=fsockopen($whois_server,43,$errno,$errstr,15); if(!$fp){echo "$errstr ($errno)";} else{fputs($fp,"$domain\n"); echo "<pre>\n"; while(!feof($fp)){$line=fgets($fp,128); $whois=mb_convert_encoding($line,'UTF-8','auto'); echo h($whois);} echo "\n</pre>"; fclose ($fp);} ?>

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.0090.00616.75
8.3.50.0100.01019.86
8.3.40.0120.00619.21
8.3.30.0080.00619.34
8.3.20.0040.00420.54
8.3.10.0040.00422.15
8.3.00.0060.00318.30
8.2.180.0000.01616.75
8.2.170.0170.00322.96
8.2.160.0090.00620.60
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00721.28
8.2.110.0040.00422.39
8.2.100.0090.00317.97
8.2.90.0000.00818.28
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0080.00018.18
8.2.50.0060.00318.07
8.2.40.0040.00418.28
8.2.30.0000.00818.29
8.2.20.0040.00417.74
8.2.10.0050.00318.32
8.2.00.0050.00217.84
8.1.280.0160.00625.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00524.17
8.1.230.0040.00721.00
8.1.220.0000.00917.78
8.1.210.0040.00418.98
8.1.200.0030.00617.35
8.1.190.0060.00317.47
8.1.180.0030.00518.10
8.1.170.0060.00318.76
8.1.160.0000.00722.12
8.1.150.0040.00419.02
8.1.140.0000.00717.56
8.1.130.0030.00317.94
8.1.120.0020.00517.57
8.1.110.0070.00017.54
8.1.100.0030.00517.54
8.1.90.0040.00417.66
8.1.80.0030.00517.57
8.1.70.0040.00417.56
8.1.60.0030.00617.59
8.1.50.0050.00317.69
8.1.40.0040.00417.74
8.1.30.0030.00617.68
8.1.20.0070.00417.75
8.1.10.0040.00417.63
8.1.00.0030.00617.52
8.0.300.0000.00720.29
8.0.290.0070.00017.00
8.0.280.0040.00418.63
8.0.270.0030.00317.45
8.0.260.0000.00717.45
8.0.250.0030.00317.18
8.0.240.0000.00817.00
8.0.230.0030.00317.05
8.0.220.0040.00417.07
8.0.210.0070.00017.10
8.0.200.0050.00217.13
8.0.190.0040.00417.01
8.0.180.0050.00317.09
8.0.170.0040.00417.21
8.0.160.0090.00317.15
8.0.150.0040.00417.01
8.0.140.0080.00017.07
8.0.130.0000.00613.64
8.0.120.0000.00817.18
8.0.110.0080.00017.23
8.0.100.0030.00517.01
8.0.90.0070.00017.09
8.0.80.0100.00717.18
8.0.70.0040.00417.07
8.0.60.0000.00817.16
8.0.50.0050.00317.00
8.0.30.0130.00917.30
8.0.20.0110.01417.40
8.0.10.0060.00317.23
8.0.00.0050.01317.03
7.4.330.0000.00515.41
7.4.320.0000.00616.64
7.4.300.0060.00016.61
7.4.290.0080.00016.79
7.4.280.0040.00416.52
7.4.270.0030.00316.72
7.4.260.0000.00716.66
7.4.250.0040.00416.79
7.4.240.0020.00516.78
7.4.230.0030.00516.89
7.4.220.0120.00616.85
7.4.210.0140.00316.76
7.4.200.0040.00416.83
7.4.160.0140.00616.82
7.4.150.0170.00317.40
7.4.140.0110.00917.86
7.4.130.0120.00916.77
7.4.120.0060.01216.63
7.4.110.0060.01216.66
7.4.100.0110.00716.80
7.4.90.0060.01316.73
7.4.80.0210.00319.39
7.4.70.0070.01016.78
7.4.60.0090.01216.59
7.4.50.0060.00316.74
7.4.40.0120.00616.81
7.4.30.0070.01116.88
7.4.00.0160.00015.12
7.3.330.0000.00713.45
7.3.320.0030.00313.36
7.3.310.0070.00016.54
7.3.300.0080.00016.60
7.3.290.0060.00916.54
7.3.280.0120.00716.61
7.3.270.0070.01117.40
7.3.260.0060.01916.72
7.3.250.0100.00816.71
7.3.240.0110.00616.66
7.3.230.0100.01016.64
7.3.210.0060.01316.64
7.3.200.0090.00919.39
7.3.190.0180.00516.52
7.3.180.0130.00816.60
7.3.170.0100.01016.63
7.3.160.0060.01116.77
7.2.330.0120.00616.70
7.2.320.0170.00717.00
7.2.310.0170.00016.97
7.2.300.0110.00816.78
7.2.290.0040.01516.86
7.2.60.0150.00017.16
7.2.00.0280.00419.45
7.1.200.0100.00316.07
7.1.100.0540.01016.20
7.1.70.0080.00017.27
7.1.60.0070.01519.40
7.1.50.0130.01317.18
7.1.00.0000.07722.61
7.0.200.0000.01016.96
7.0.140.0030.06322.64
7.0.60.0100.08020.30
7.0.50.0100.08018.24
7.0.40.0170.07020.59
7.0.30.0300.07320.43
7.0.20.0330.06020.51
7.0.10.0100.08020.49
7.0.00.0070.07020.46
5.6.280.0030.07721.46
5.6.210.0130.05721.05
5.6.200.0100.07318.46
5.6.190.0030.04721.02
5.6.180.0370.04721.04
5.6.170.0270.07720.84
5.6.160.0100.07320.88
5.6.150.0070.08318.54
5.6.140.0070.08018.46
5.6.130.0070.05018.48
5.6.120.0070.07021.34
5.6.110.0100.05321.28
5.6.100.0000.05021.43
5.6.90.0030.10021.52
5.6.80.0100.05320.74
5.5.350.0030.08320.81
5.5.340.0030.07018.41
5.5.330.0130.08720.85
5.5.320.0000.05320.58
5.5.310.0230.06020.63
5.5.300.0070.08018.21
5.5.290.0070.08018.20
5.5.280.0170.07321.25
5.5.270.0070.04321.25
5.5.260.0030.04321.07
5.5.250.0070.07721.02
5.5.240.0270.07320.55
5.4.450.0270.04719.80
5.4.440.0330.05019.61
5.4.430.0230.04719.50
5.4.420.0200.03719.51
5.4.410.0070.03719.46
5.4.400.0070.04719.29
5.4.390.0130.04719.25
5.4.380.0130.05719.14
5.4.370.0300.06319.14
5.4.360.0200.06018.77
5.4.350.0300.06018.95
5.4.340.0170.06319.03
5.4.320.0070.04512.69
5.4.310.0080.03912.68
5.4.300.0060.03612.69
5.4.290.0050.04012.68
5.4.280.0060.03812.58
5.4.270.0080.03912.58
5.4.260.0050.03912.58
5.4.250.0050.03912.58
5.4.240.0050.03712.58
5.4.230.0060.04512.57
5.4.220.0080.03812.58
5.4.210.0100.04012.57
5.4.200.0080.04112.58
5.4.190.0050.03812.57
5.4.180.0100.03712.57
5.4.170.0080.03812.58
5.4.160.0090.03312.57
5.4.150.0050.03712.57
5.4.140.0100.03312.25
5.4.130.0060.03512.24
5.4.120.0060.03512.20
5.4.110.0050.03712.20
5.4.100.0080.03312.20
5.4.90.0060.03712.20
5.4.80.0070.03612.20
5.4.70.0090.03912.19
5.4.60.0030.03812.19
5.4.50.0090.03212.19
5.4.40.0070.03412.18
5.4.30.0050.03612.18
5.4.20.0070.03512.18
5.4.10.0040.03612.17
5.4.00.0070.03511.67
5.3.290.0120.04112.89
5.3.280.0090.03912.82
5.3.270.0090.04412.83
5.3.260.0100.04012.84
5.3.250.0070.03712.83
5.3.240.0050.03812.84
5.3.230.0080.03512.83
5.3.220.0070.03712.79
5.3.210.0030.04912.80
5.3.200.0020.04012.80
5.3.190.0060.03712.80
5.3.180.0060.04012.79
5.3.170.0070.03812.79
5.3.160.0090.04212.79
5.3.150.0080.04012.79
5.3.140.0040.03812.79
5.3.130.0090.03612.78
5.3.120.0070.04612.77
5.3.110.0060.04012.78
5.3.100.0060.04312.27
5.3.90.0050.03712.25
5.3.80.0080.04112.24
5.3.70.0080.04112.24
5.3.60.0040.03912.23
5.3.50.0070.04512.17
5.3.40.0060.03812.17
5.3.30.0050.03612.15
5.3.20.0080.03311.92
5.3.10.0060.03511.88
5.3.00.0070.03611.86
5.2.170.0050.0299.37
5.2.160.0030.0309.37
5.2.150.0040.0319.37
5.2.140.0050.0309.37
5.2.130.0120.0219.32
5.2.120.0050.0289.32
5.2.110.0080.0339.33
5.2.100.0060.0299.33
5.2.90.0050.0299.33
5.2.80.0050.0299.32
5.2.70.0040.0309.33
5.2.60.0070.0349.28
5.2.50.0050.0389.25
5.2.40.0040.0389.22
5.2.30.0000.0359.20
5.2.20.0080.0279.18
5.2.10.0050.0359.09
5.2.00.0030.0308.95
5.1.60.0010.0278.23
5.1.50.0070.0278.22
5.1.40.0030.0268.20
5.1.30.0060.0248.56
5.1.20.0020.0368.58
5.1.10.0070.0318.30
5.1.00.0040.0318.30
5.0.50.0040.0236.79
5.0.40.0040.0196.66
5.0.30.0020.0336.46
5.0.20.0060.0186.41
5.0.10.0030.0216.39
5.0.00.0050.0296.38
4.4.90.0020.0184.80
4.4.80.0030.0154.78
4.4.70.0020.0164.77
4.4.60.0040.0144.78
4.4.50.0020.0164.79
4.4.40.0020.0264.79
4.4.30.0030.0154.78
4.4.20.0020.0214.85
4.4.10.0030.0184.85
4.4.00.0030.0264.81
4.3.110.0020.0214.73
4.3.100.0020.0164.72
4.3.90.0030.0154.68
4.3.80.0040.0234.66
4.3.70.0040.0134.66
4.3.60.0040.0144.67
4.3.50.0050.0134.66
4.3.40.0040.0234.65
4.3.30.0030.0173.45
4.3.20.0010.0173.43
4.3.10.0040.0153.22
4.3.00.0170.01715.90

preferences:
49.73 ms | 400 KiB | 5 Q