3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='Test'; $posts='xml='.$xml; $query="POST /index.php HTTP/1.0\r\n". "Accept: text/html, application/xml;q=0.9, application/xhtml+xml\r\n". "Accept-Charset: utf-8\r\n". "Content-Type: application/x-www-form-urlencoded\r\n". "Content-Length: ".strlen($posts)."\r\n\r\n".$posts."\r\n\r\n"; $socket=fsockopen('colesa.ru',80,$errno,$errstr,60); fwrite($socket,$query); while(!feof($socket)){ $s.=fgets($socket); } $s=strstr($s,'<html>'); fclose($socket); echo $s; ?> <html> <body> <textarea cols="60" rows="10">&lt;? echo $_POST['xml']; ?></textarea> </body> </html>

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.00316.75
8.3.50.0060.00921.98
8.3.40.0090.00619.04
8.3.30.0070.00719.46
8.3.20.0060.00320.68
8.3.10.0080.00023.87
8.3.00.0100.00018.00
8.2.180.0140.00716.88
8.2.170.0090.00922.96
8.2.160.0040.01120.70
8.2.150.0000.00824.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00022.43
8.2.110.0130.01021.15
8.2.100.0040.00817.97
8.2.90.0080.00019.48
8.2.80.0060.00317.97
8.2.70.0050.00517.71
8.2.60.0000.00818.15
8.2.50.0000.00918.07
8.2.40.0000.00820.06
8.2.30.0030.00620.10
8.2.20.0090.00018.03
8.2.10.0080.00018.43
8.2.00.0000.00718.07
8.1.280.0070.00725.92
8.1.270.0080.00022.32
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0090.00324.04
8.1.230.0000.01121.01
8.1.220.0030.00517.91
8.1.210.0000.00818.77
8.1.200.0050.00517.60
8.1.190.0030.00617.60
8.1.180.0060.00318.10
8.1.170.0000.00818.66
8.1.160.0040.00422.16
8.1.150.0040.00418.74
8.1.140.0040.00417.73
8.1.130.0040.00418.10
8.1.120.0080.00017.64
8.1.110.0040.00417.58
8.1.100.0070.00017.69
8.1.90.0040.00417.58
8.1.80.0040.00417.52
8.1.70.0000.00717.58
8.1.60.0030.00617.69
8.1.50.0000.00817.71
8.1.40.0000.00817.64
8.1.30.0000.00817.70
8.1.20.0030.00617.84
8.1.10.0040.00417.70
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0030.00617.29
8.0.280.0000.00718.55
8.0.270.0000.00717.42
8.0.260.0030.00317.48
8.0.250.0070.00017.34
8.0.240.0060.00317.31
8.0.230.0000.00717.16
8.0.220.0000.00717.10
8.0.210.0030.00317.02
8.0.200.0000.00717.02
8.0.190.0000.00817.17
8.0.180.0040.00417.10
8.0.170.0070.00017.03
8.0.160.0000.00716.98
8.0.150.0080.00017.00
8.0.140.0000.00817.14
8.0.130.0000.00613.65
8.0.120.0060.00317.13
8.0.110.0000.00817.11
8.0.100.0040.00417.27
8.0.90.0050.00317.18
8.0.80.0060.01117.25
8.0.70.0030.00617.11
8.0.60.0040.00417.09
8.0.50.0080.00017.20
8.0.30.0080.01117.36
8.0.20.0110.01017.40
8.0.10.0000.00917.16
8.0.00.0050.01416.94
7.4.330.0070.00315.00
7.4.320.0020.00516.75
7.4.300.0030.01016.66
7.4.290.0070.00716.54
7.4.280.0050.00916.62
7.4.270.0080.00416.61
7.4.260.0100.00516.55
7.4.250.0070.00316.69
7.4.240.0020.00616.65
7.4.230.0120.00016.61
7.4.220.0540.01016.74
7.4.210.0160.01916.69
7.4.200.0040.00716.78
7.4.190.0110.00616.76
7.4.160.0470.01916.75
7.4.150.0400.00917.40
7.4.140.0280.01017.86
7.4.130.0290.01616.71
7.4.120.0350.00916.66
7.4.110.0320.01216.73
7.4.100.1230.03316.68
7.4.90.1300.01116.74
7.4.80.0560.01619.39
7.4.70.0320.00416.62
7.4.60.0160.01116.51
7.4.50.0000.00716.62
7.4.40.0810.02116.55
7.4.30.0320.01116.90
7.4.00.0030.01514.82
7.3.330.0000.00513.46
7.3.320.0000.01513.48
7.3.310.0040.00716.60
7.3.300.0040.00716.58
7.3.290.0170.01216.46
7.3.280.0160.01816.53
7.3.270.0200.01617.40
7.3.260.0340.00716.57
7.3.250.0380.01716.59
7.3.240.0170.01816.55
7.3.230.0140.01416.57
7.3.210.0440.01616.80
7.3.200.0140.01419.39
7.3.190.0650.02216.76
7.3.180.0280.02416.46
7.3.170.0150.01516.57
7.3.160.0270.01216.59
7.3.120.0060.00914.97
7.2.330.0310.01616.84
7.2.320.0090.01416.87
7.2.310.0430.01816.81
7.2.300.0450.01516.84
7.2.290.0140.01016.69
7.2.110.0210.00916.56
7.2.60.0040.00417.09
7.2.00.0000.01119.45
7.1.200.0060.00916.03
7.1.100.0030.01118.47
7.1.70.0030.00617.55
7.1.60.0100.01619.46
7.1.50.0040.01117.28
7.1.00.0100.07322.52
7.0.200.0070.01017.31
7.0.140.0100.06722.48
7.0.100.0070.08020.45
7.0.90.0100.04720.35
7.0.80.0170.07020.56
7.0.70.0100.08020.39
7.0.60.0100.04720.16
7.0.50.0130.08020.75
7.0.40.0070.09020.43
7.0.30.0100.09020.62
7.0.20.0030.08720.43
7.0.10.0030.07020.28
7.0.00.0130.07720.59
5.6.280.0100.07021.46
5.6.250.0130.07321.00
5.6.240.0100.08320.99
5.6.230.0130.07320.95
5.6.220.0070.08020.95
5.6.210.0070.07321.18
5.6.200.0130.05321.20
5.6.190.0100.07321.41
5.6.180.0070.08021.25
5.6.170.0100.08321.52
5.6.160.0130.06721.48
5.6.150.0070.08721.36
5.6.140.0130.06321.35
5.6.130.0170.08021.35
5.6.120.0070.08021.38
5.6.110.0100.08021.48
5.6.100.0130.04721.36
5.6.90.0000.07321.52
5.6.80.0200.07020.83
5.6.70.0130.07020.71
5.6.60.0170.04020.70
5.6.50.0030.08320.80
5.6.40.0070.06320.69
5.6.30.0130.07320.78
5.6.20.0030.05320.65
5.6.10.0170.06720.54
5.6.00.0100.07320.87
5.5.380.0100.04720.77
5.5.370.0130.07720.77
5.5.360.0070.08720.72
5.5.350.0170.08020.89
5.5.340.0100.07721.27
5.5.330.0000.06321.29
5.5.320.0070.04721.18
5.5.310.0200.07321.22
5.5.300.0100.08721.18
5.5.290.0100.07021.29
5.5.280.0070.08321.16
5.5.270.0100.06321.32
5.5.260.0030.09321.20
5.5.250.0100.08721.02
5.5.240.0170.08020.72
5.5.230.0130.04320.40
5.5.220.0070.06320.55
5.5.210.0100.07720.63
5.5.200.0170.06020.61
5.5.190.0100.07320.68
5.5.180.0070.07720.40
5.5.160.0130.06320.39
5.5.150.0100.04720.56
5.5.140.0100.08020.37
5.5.130.0070.06720.68
5.5.120.0070.06720.54
5.5.110.0100.07320.60
5.5.100.0170.07720.34
5.5.90.0030.05320.33
5.5.80.0070.08020.48
5.5.70.0100.04720.48
5.5.60.0100.03720.50
5.5.50.0130.06720.56
5.5.40.0100.07720.48
5.5.30.0100.07320.25
5.5.20.0070.08020.53
5.5.10.0070.07320.39
5.5.00.0030.07720.28
5.4.450.0100.06019.71
5.4.440.0100.08019.56
5.4.430.0070.04019.85
5.4.420.0030.08019.69
5.4.410.0130.07719.41
5.4.400.0030.07019.24
5.4.390.0130.07019.25
5.4.380.0100.05319.09
5.4.370.0030.08319.56
5.4.360.0100.07719.21
5.4.350.0070.07719.06
5.4.340.0070.07719.31
5.4.320.0100.07719.24
5.4.310.0030.04719.40
5.4.300.0070.07719.21
5.4.290.0130.04319.11
5.4.280.0130.07019.24
5.4.270.0070.07719.19
5.4.260.0130.06719.55
5.4.250.0100.07719.30
5.4.240.0070.05319.30
5.4.230.0070.07719.37
5.4.220.0070.04019.20
5.4.210.0130.04019.55
5.4.200.0130.04319.23
5.4.190.0030.06719.21
5.4.180.0100.06719.36
5.4.170.0230.06319.18
5.4.160.0070.08319.31
5.4.150.0100.07319.38
5.4.140.0100.04016.73
5.4.130.0130.05316.67
5.4.120.0030.07316.69
5.4.110.0070.07316.64
5.4.100.0100.06716.72
5.4.90.0100.07016.72
5.4.80.0070.04316.73
5.4.70.0000.08016.71
5.4.60.0030.04316.77
5.4.50.0030.03716.72
5.4.40.0070.03716.64
5.4.30.0030.03716.71
5.4.20.0100.03016.71
5.4.10.0030.03716.78
5.4.00.0030.06016.11
5.3.290.0070.08314.80
5.3.280.0070.08014.62
5.3.270.0130.07314.64
5.3.260.0030.08314.60
5.3.250.0000.08014.72
5.3.240.0070.06314.71
5.3.230.0030.07714.71
5.3.220.0100.06714.66
5.3.210.0030.07714.68
5.3.200.0030.03714.66
5.3.190.0100.03014.59
5.3.180.0030.05014.57
5.3.170.0070.03314.57
5.3.160.0030.03714.66
5.3.150.0000.04014.58
5.3.140.0030.03714.58
5.3.130.0070.05014.61
5.3.120.0070.04014.61
5.3.110.0100.06314.67
5.3.100.0030.06714.29
5.3.90.0030.04014.29
5.3.80.0070.03714.29
5.3.70.0030.04014.29
5.3.60.0070.04714.29
5.3.50.0000.04014.29
5.3.40.0130.06714.29
5.3.30.0000.03714.29
5.3.20.0070.03714.29
5.3.10.0030.03314.29
5.3.00.0000.03714.29

preferences:
43.83 ms | 401 KiB | 5 Q