3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='Test'; $posts='xml='.$xml; $query="POST /test.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('localhost',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.40.0090.01219.25
8.3.30.0060.00919.46
8.3.20.0080.00020.54
8.3.10.0050.00324.08
8.3.00.0080.00317.88
8.2.170.0120.00622.96
8.2.160.0030.01020.47
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0030.00526.16
8.2.120.0030.00522.52
8.2.110.0000.01122.41
8.2.100.0040.00818.16
8.2.90.0040.00419.27
8.2.80.0030.00518.00
8.2.70.0030.00617.88
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0000.00819.77
8.2.30.0000.00818.34
8.2.20.0040.00418.06
8.2.10.0050.00318.30
8.2.00.0000.00717.91
8.1.270.0040.00422.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0090.00319.27
8.1.220.0080.00017.91
8.1.210.0000.00818.77
8.1.200.0080.00417.48
8.1.190.0030.00617.48
8.1.180.0060.00318.10
8.1.170.0040.00418.91
8.1.160.0040.00422.25
8.1.150.0030.00518.82
8.1.140.0040.00417.55
8.1.130.0000.00718.05
8.1.120.0040.00417.53
8.1.110.0040.00417.61
8.1.100.0030.00617.73
8.1.90.0000.00817.66
8.1.80.0050.00217.65
8.1.70.0030.00317.48
8.1.60.0000.00917.73
8.1.50.0040.00417.75
8.1.40.0080.00017.75
8.1.30.0080.00017.78
8.1.20.0030.00517.79
8.1.10.0000.00817.83
8.1.00.0000.00817.67
8.0.300.0060.00318.77
8.0.290.0070.00017.55
8.0.280.0040.00418.60
8.0.270.0040.00417.40
8.0.260.0030.00317.42
8.0.250.0000.00717.12
8.0.240.0040.00417.07
8.0.230.0030.00417.16
8.0.220.0030.00317.08
8.0.210.0030.00317.24
8.0.200.0030.00317.17
8.0.190.0040.00417.31
8.0.180.0070.00017.14
8.0.170.0060.00317.16
8.0.160.0070.00017.20
8.0.150.0070.00017.20
8.0.140.0050.00317.21
8.0.130.0050.00013.79
8.0.120.0060.00317.18
8.0.110.0030.00517.22
8.0.100.0060.00317.20
8.0.90.0030.00517.11
8.0.80.0030.01417.20
8.0.70.0030.00617.06
8.0.60.0080.00017.23
8.0.50.0050.00317.05
8.0.30.0110.00817.41
8.0.20.0070.01217.50
8.0.10.0030.00517.13
8.0.00.0120.01017.17
7.4.330.0090.00515.00
7.4.320.0050.01016.54
7.4.300.0060.01216.46
7.4.290.0030.00516.55
7.4.280.0000.00816.71
7.4.270.0040.00416.47
7.4.260.0040.00416.64
7.4.250.0060.00316.64
7.4.240.0100.00616.75
7.4.230.0070.00716.64
7.4.220.0270.02416.54
7.4.210.0100.01516.60
7.4.200.0110.00516.68
7.4.190.0040.00916.86
7.4.160.0260.01316.51
7.4.150.0460.00817.40
7.4.140.0320.00917.86
7.4.130.0350.01016.65
7.4.120.0130.00916.80
7.4.110.0690.02016.49
7.4.100.0610.01816.70
7.4.90.0400.01716.72
7.4.80.0170.02519.39
7.4.70.0080.01316.77
7.4.60.0720.01216.37
7.4.50.0050.00016.75
7.4.40.0890.02716.75
7.4.30.0140.00716.68
7.4.00.0110.00415.22
7.3.330.0000.00613.41
7.3.320.0030.00313.63
7.3.310.0040.00416.69
7.3.300.0040.00416.55
7.3.290.0130.01016.66
7.3.280.0180.01716.67
7.3.270.0480.01017.40
7.3.260.0360.02916.59
7.3.250.0260.01716.65
7.3.240.0100.02116.59
7.3.230.0320.02216.58
7.3.210.0300.00816.58
7.3.200.0310.01619.39
7.3.190.0320.02116.54
7.3.180.1030.04616.77
7.3.170.0440.04416.52
7.3.160.0140.00616.55
7.3.120.0090.00615.24
7.2.330.0650.00516.85
7.2.320.0240.00716.72
7.2.310.0170.00716.88
7.2.300.0210.02216.80
7.2.290.0110.01116.61
7.2.60.0060.00917.18
7.2.00.0030.01019.61
7.1.200.0150.00415.94
7.1.100.0000.01518.64
7.1.70.0050.00317.38
7.1.60.0110.01519.46
7.1.50.0110.01817.18
7.1.00.0000.08322.64
7.0.200.0000.00716.98
7.0.140.0030.06722.17
7.0.100.0100.07020.09
7.0.90.0070.06719.95
7.0.80.0100.08020.17
7.0.70.0170.07320.12
7.0.60.0100.06020.24
7.0.50.0100.06720.59
7.0.40.0070.07020.36
7.0.30.0100.08320.18
7.0.20.0300.06020.27
7.0.10.0100.08320.25
7.0.00.0070.08020.25
5.6.280.0030.07721.05
5.6.250.0130.07320.65
5.6.240.0030.08020.73
5.6.230.0130.08320.72
5.6.220.0070.08020.69
5.6.210.0030.07020.59
5.6.200.0230.04721.10
5.6.190.0100.07721.11
5.6.180.0070.09021.35
5.6.170.0130.05021.41
5.6.160.0130.08021.15
5.6.150.0000.05321.15
5.6.140.0100.04021.18
5.6.130.0070.04721.36
5.6.120.0030.09721.20
5.6.110.0100.05021.30
5.6.100.0070.05321.24
5.6.90.0070.06021.33
5.6.80.0130.08320.64
5.6.70.0070.06720.57
5.6.60.0070.07020.67
5.6.50.0130.08020.46
5.6.40.0200.07320.71
5.6.30.0130.08320.49
5.6.20.0030.08020.71
5.6.10.0070.08320.44
5.6.00.0030.08020.51
5.5.380.0130.08020.52
5.5.370.0070.06020.69
5.5.360.0200.05020.63
5.5.350.0200.06320.59
5.5.340.0200.05021.13
5.5.330.0130.05321.12
5.5.320.0200.05021.02
5.5.310.0070.06321.23
5.5.300.0170.05321.14
5.5.290.0170.05721.07
5.5.280.0200.05321.02
5.5.270.0200.09721.04
5.5.260.0100.09321.21
5.5.250.0130.05720.90
5.5.240.0070.06020.45
5.5.230.0170.05020.45
5.5.220.0230.07020.43
5.5.210.0070.05720.42
5.5.200.0070.07020.52
5.5.190.0100.06020.46
5.5.180.0100.05720.45
5.5.160.0130.05320.46
5.5.150.0070.05720.39
5.5.140.0130.05020.48
5.5.130.0170.05020.43
5.5.120.0130.05720.57
5.5.110.0270.06020.50
5.5.100.0130.06020.45
5.5.90.0130.05320.35
5.5.80.0130.05020.21
5.5.70.0200.06020.31
5.5.60.0030.06320.25
5.5.50.0130.05020.27
5.5.40.0230.05020.29
5.5.30.0130.05320.41
5.5.20.0100.05720.41
5.5.10.0130.05720.40
5.5.00.0170.05020.27
5.4.450.0100.05719.46
5.4.440.0100.05319.53
5.4.430.0230.04019.72
5.4.420.0030.06319.39
5.4.410.0170.07019.29
5.4.400.0070.05319.17
5.4.390.0230.04319.09
5.4.380.0100.06319.10
5.4.370.0070.05319.22
5.4.360.0070.05319.04
5.4.350.0170.06319.13
5.4.340.0230.06719.17
5.4.320.0170.04719.07
5.4.310.0100.05019.17
5.4.300.0100.05319.19
5.4.290.0170.04719.14
5.4.280.0070.05719.08
5.4.270.0230.06019.21
5.4.260.0030.06019.36
5.4.250.0130.05719.20
5.4.240.0100.05019.15
5.4.230.0100.08019.31
5.4.220.0200.04319.16
5.4.210.0030.06019.13
5.4.200.0200.04319.17
5.4.190.0130.05319.07
5.4.180.0200.06019.12
5.4.170.0200.06319.08
5.4.160.0030.05719.19
5.4.150.0100.05319.38
5.4.140.0200.04016.38
5.4.130.0100.07016.50
5.4.120.0070.05316.36
5.4.110.0170.04716.61
5.4.100.0130.05016.51
5.4.90.0170.04016.43
5.4.80.0170.04716.57
5.4.70.0100.05016.57
5.4.60.0100.05316.41
5.4.50.0070.05716.46
5.4.40.0130.06316.58
5.4.30.0130.06316.63
5.4.20.0100.05016.54
5.4.10.0030.06016.57
5.4.00.0130.04715.80
5.3.290.0130.05014.52
5.3.280.0100.05014.44
5.3.270.0130.04714.44
5.3.260.0200.04714.37
5.3.250.0100.05314.45
5.3.240.0170.05014.45
5.3.230.0130.04714.45
5.3.220.0130.04714.42
5.3.210.0070.05714.43
5.3.200.0130.05714.41
5.3.190.0030.05714.37
5.3.180.0100.05714.32
5.3.170.0100.05714.36
5.3.160.0100.06014.37
5.3.150.0130.04714.37
5.3.140.0100.05314.41
5.3.130.0200.05714.33
5.3.120.0030.05714.46
5.3.110.0070.06014.39
5.3.100.0070.05313.87
5.3.90.0070.05713.78
5.3.80.0200.04713.87
5.3.70.0130.04313.86
5.3.60.0170.04713.91
5.3.50.0100.04713.69
5.3.40.0030.05713.65
5.3.30.0070.05313.81
5.3.20.0130.05713.59
5.3.10.0030.05713.40
5.3.00.0100.05713.48
5.2.170.0070.06015.58
5.2.160.0100.05315.58
5.2.150.0030.06715.58
5.2.140.0100.06015.58
5.2.130.0100.05715.58
5.2.120.0200.04715.58
5.2.110.0100.03715.58
5.2.100.0130.05715.58
5.2.90.0030.04715.58
5.2.80.0070.06015.58
5.2.70.0100.05715.58
5.2.60.0030.06315.58
5.2.50.0070.06315.58
5.2.40.0030.03315.58
5.2.30.0100.05715.58
5.2.20.0000.03715.58
5.2.10.0100.04315.58
5.2.00.0000.06315.58
5.1.60.0000.06315.58
5.1.50.0030.05315.58
5.1.40.0070.05015.58
5.1.30.0070.05715.58
5.1.20.0100.05015.58
5.1.10.0070.05015.58
5.1.00.0170.04715.58
5.0.50.0130.04315.58
5.0.40.0100.02715.58
5.0.30.0030.06315.58
5.0.20.0000.05015.58
5.0.10.0000.05015.58
5.0.00.0000.07315.58
4.4.90.0000.03715.58
4.4.80.0000.03315.58
4.4.70.0070.03315.58
4.4.60.0070.03715.58
4.4.50.0000.02715.58
4.4.40.0030.05715.58
4.4.30.0000.04015.58
4.4.20.0000.03715.58
4.4.10.0030.03015.58
4.4.00.0070.05715.58
4.3.110.0130.02315.58
4.3.100.0030.03315.58
4.3.90.0000.04015.58
4.3.80.0000.05315.58
4.3.70.0130.02715.58
4.3.60.0000.02715.58
4.3.50.0070.03315.58
4.3.40.0030.05315.58
4.3.30.0030.03715.58
4.3.20.0000.03715.58
4.3.10.0070.03015.58
4.3.00.0030.03015.58

preferences:
41.31 ms | 400 KiB | 5 Q