3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Send POST request to https://secure.example.com/form_action.php * Include form elements named "foo" and "bar" with dummy values */ $sock = fsockopen("ssl://secure.example.com", 443, $errno, $errstr, 30); if (!$sock) die("$errstr ($errno)\n"); $data = "foo=" . urlencode("Value for Foo") . "&bar=" . urlencode("Value for Bar"); fwrite($sock, "POST /form_action.php HTTP/1.0\r\n"); fwrite($sock, "Host: secure.example.com\r\n"); fwrite($sock, "Content-type: application/x-www-form-urlencoded\r\n"); fwrite($sock, "Content-length: " . strlen($data) . "\r\n"); fwrite($sock, "Accept: */*\r\n"); fwrite($sock, "\r\n"); fwrite($sock, $data); $headers = ""; while ($str = trim(fgets($sock, 4096))) $headers .= "$str\n"; echo "\n"; $body = ""; while (!feof($sock)) $body .= fgets($sock, 4096); fclose($sock); ?>

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.0000.01518.18
8.3.50.0110.00621.15
8.3.40.0110.00318.67
8.3.30.0040.01118.79
8.3.20.0050.00318.62
8.3.10.0030.00620.39
8.3.00.0070.00417.25
8.2.180.0070.00716.48
8.2.170.0110.00422.96
8.2.160.0030.01422.30
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00419.83
8.2.110.0060.00320.57
8.2.100.0040.00817.78
8.2.90.0000.00817.75
8.2.80.0000.00918.72
8.2.70.0030.00517.35
8.2.60.0040.00417.75
8.2.50.0080.00017.55
8.2.40.0040.00419.22
8.2.30.0060.00317.73
8.2.20.0050.00217.73
8.2.10.0050.00317.65
8.2.00.0070.00417.68
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0060.00926.35
8.1.250.0040.00428.09
8.1.240.0090.00322.01
8.1.230.0040.00822.47
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0060.00318.57
8.1.160.0000.00718.79
8.1.150.0000.00818.95
8.1.140.0030.00517.44
8.1.130.0000.00817.84
8.1.120.0000.00717.50
8.1.110.0050.00217.33
8.1.100.0000.00717.40
8.1.90.0050.00317.44
8.1.80.0070.00017.48
8.1.70.0000.00717.38
8.1.60.0000.00817.61
8.1.50.0070.00017.50
8.1.40.0040.00417.57
8.1.30.0000.00717.58
8.1.20.0080.00017.68
8.1.10.0090.00017.56
8.1.00.0080.00017.46
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00618.09
8.0.270.0030.00518.04
8.0.260.0000.00718.68
8.0.250.0050.00317.05
8.0.240.0040.00417.05
8.0.230.0070.00016.94
8.0.220.0030.00616.87
8.0.210.0070.00016.88
8.0.200.0060.00016.93
8.0.190.0070.00016.96
8.0.180.0070.00016.89
8.0.170.0070.00016.95
8.0.160.0070.00017.05
8.0.150.0050.00316.86
8.0.140.0040.00716.83
8.0.130.0000.00613.40
8.0.120.0040.00416.93
8.0.110.0040.00416.98
8.0.100.0070.00016.97
8.0.90.0000.00717.09
8.0.80.0120.00317.02
8.0.70.0080.00017.02
8.0.60.0040.00417.02
8.0.50.0040.00416.84
8.0.30.0040.01517.04
8.0.20.0110.00917.40
8.0.10.0000.00717.00
8.0.00.0090.00916.82
7.4.330.0030.00314.76
7.4.320.0000.00616.64
7.4.300.0040.00416.47
7.4.290.0050.00216.63
7.4.280.0000.00716.52
7.4.270.0020.00516.42
7.4.260.0050.00013.26
7.4.250.0050.00316.65
7.4.240.0030.00516.59
7.4.230.0050.00216.59
7.4.220.0130.01016.41
7.4.210.0040.01116.54
7.4.200.0030.00316.52
7.4.190.0030.00316.71
7.4.160.0030.01316.50
7.4.150.0100.00717.40
7.4.140.0080.00817.21
7.4.130.0110.00916.68
7.4.120.0110.00616.42
7.4.110.0090.00916.63
7.4.100.0030.01916.57
7.4.90.0130.01016.38
7.4.80.0110.01119.03
7.4.70.0060.00916.65
7.4.60.0130.00316.25
7.4.50.0000.00516.37
7.4.40.0120.00422.27
7.4.30.0100.00716.47
7.4.00.0030.01014.95
7.3.330.0050.00013.29
7.3.320.0050.00013.25
7.3.310.0030.00316.24
7.3.300.0070.00016.43
7.3.290.0000.01516.30
7.3.280.0070.00916.37
7.3.270.0080.00817.40
7.3.260.0200.00118.24
7.3.250.0080.00816.58
7.3.240.0030.01316.37
7.3.230.0160.00016.58
7.3.210.0160.00016.46
7.3.200.0130.01019.39
7.3.190.0120.00916.62
7.3.180.0140.00516.34
7.3.170.0030.01616.41
7.3.160.0070.00716.38
7.3.120.0070.01015.00
7.3.10.0120.00616.14
7.3.00.0120.00616.23
7.2.330.0110.00716.40
7.2.320.0100.00716.62
7.2.310.0100.01316.51
7.2.300.0060.01216.60
7.2.290.0100.00616.73
7.2.130.0060.01216.41
7.2.120.0100.01016.70
7.2.110.0090.01516.21
7.2.100.0140.00516.59
7.2.90.0080.00816.42
7.2.80.0100.00616.33
7.2.70.0070.00716.43
7.2.60.0050.01116.42
7.2.50.0170.00316.39
7.2.40.0150.00316.41
7.2.30.0160.00316.29
7.2.20.0090.01516.30
7.2.10.0070.01016.18
7.2.00.0100.00818.10
7.1.250.0090.00915.46
7.1.200.0230.00415.48
7.1.100.0030.00918.32
7.1.70.0060.00317.43
7.1.60.0130.01319.40
7.1.50.0100.01017.20
7.1.00.0170.06322.91
7.0.200.0160.00616.71
7.0.140.0100.07022.30
7.0.60.0030.06720.20
7.0.50.0030.08018.09
7.0.40.0070.08318.04
7.0.30.0070.08318.13
7.0.20.0070.05317.93
7.0.10.0070.08317.93
7.0.00.0100.08018.11
5.6.280.0000.07721.36
5.6.210.0100.08020.86
5.6.200.0100.08718.54
5.6.190.0070.08718.46
5.6.180.0130.06018.65
5.6.170.0070.08018.65
5.6.160.0100.04718.47
5.6.150.0030.05018.54
5.6.140.0130.07018.47
5.6.130.0070.07718.42
5.6.120.0000.08718.73
5.6.110.0030.04318.42
5.6.100.0170.04318.46
5.6.90.0130.07718.48
5.6.80.0030.08017.98
5.6.70.0000.08317.89
5.6.60.0130.03318.11
5.6.50.0100.06717.80
5.6.40.0100.07717.84
5.6.30.0070.05017.93
5.6.20.0030.04318.09
5.6.10.0030.04718.08
5.6.00.0030.08317.86
5.5.350.0230.08320.84
5.5.340.0030.08718.34
5.5.330.0100.05718.30
5.5.320.0100.07718.20
5.5.310.0070.06018.46
5.5.300.0030.04018.36
5.5.290.0070.08318.30
5.5.280.0070.08018.53
5.5.270.0100.07018.45
5.5.260.0030.08318.35
5.5.250.0030.08018.04
5.5.240.0070.06017.75
5.5.230.0030.06717.70
5.5.220.0130.04317.69
5.5.210.0100.06717.63
5.5.200.0070.07717.61
5.5.190.0030.07717.63
5.5.180.0000.08317.65
5.5.160.0230.06017.57
5.5.150.0200.06317.55
5.5.140.0100.08017.64
5.5.130.0130.07017.75
5.5.120.0030.06317.67
5.5.110.0030.08317.62
5.5.100.0100.06317.79
5.5.90.0030.03717.78
5.5.80.0070.04317.57
5.5.70.0070.03717.56
5.5.60.0000.04017.61
5.5.50.0030.03717.52
5.5.40.0000.04317.58
5.5.30.0070.03717.64
5.5.20.0000.04017.49
5.5.10.0030.07317.64
5.5.00.0070.04017.51
5.4.450.0030.08719.76
5.4.440.0130.07319.62
5.4.430.0070.08719.66
5.4.420.0070.05019.65
5.4.410.0030.06319.53
5.4.400.0000.05319.37
5.4.390.0070.08019.37
5.4.380.0070.03719.39
5.4.370.0100.07319.43
5.4.360.0070.07319.35
5.4.350.0030.05719.39
5.4.340.0070.08019.55
5.4.320.0070.04719.37
5.4.310.0070.05019.52
5.4.300.0130.07319.39
5.4.290.0100.07319.32
5.4.280.0100.07019.38
5.4.270.0130.06319.35
5.4.260.0100.05319.32
5.4.250.0000.05319.31
5.4.240.0030.04019.34
5.4.230.0100.03319.50
5.4.220.0030.04719.32
5.4.210.0070.03319.28
5.4.200.0030.03719.33
5.4.190.0030.04019.28
5.4.180.0070.04019.47
5.4.170.0070.05319.31
5.4.160.0030.05319.41
5.4.150.0030.04319.25
5.4.140.0130.06016.28
5.4.130.0070.06716.27
5.4.120.0030.04316.33
5.4.110.0030.03716.36
5.4.100.0070.04016.52
5.4.90.0030.03316.52
5.4.80.0000.03716.27
5.4.70.0000.03716.29
5.4.60.0030.04016.29
5.4.50.0000.03716.39
5.4.40.0000.03716.36
5.4.30.0030.03716.23
5.4.20.0070.03016.38
5.4.10.0000.03716.49
5.4.00.0070.03015.60
5.3.290.0030.06714.54
5.3.280.0030.03714.46
5.3.270.0030.07314.40
5.3.260.0000.06314.48
5.3.250.0070.04014.44
5.3.240.0070.03314.56
5.3.230.0130.06714.59
5.3.220.0070.03314.55
5.3.210.0000.04014.66
5.3.200.0030.04714.55
5.3.190.0070.03314.55
5.3.180.0030.03714.42
5.3.170.0000.03714.66
5.3.160.0070.03014.50
5.3.150.0000.03714.51
5.3.140.0030.03714.50
5.3.130.0000.04714.38
5.3.120.0000.04014.53
5.3.110.0070.03314.50
5.3.100.0000.03714.02
5.3.90.0000.03713.99
5.3.80.0000.03714.00
5.3.70.0000.03713.93
5.3.60.0000.03713.78
5.3.50.0000.03713.83
5.3.40.0030.03713.93
5.3.30.0030.03313.89
5.3.20.0070.03713.48
5.3.10.0000.03713.42
5.3.00.0000.07713.61
5.2.170.0030.02711.18
5.2.160.0000.03011.12
5.2.150.0000.03011.13
5.2.140.0070.02310.93
5.2.130.0030.02711.10
5.2.120.0070.03710.95
5.2.110.0030.04011.08
5.2.100.0100.06011.08
5.2.90.0070.05711.25
5.2.80.0000.04711.05
5.2.70.0100.06010.88
5.2.60.0030.05011.04
5.2.50.0070.06010.98
5.2.40.0030.06010.97
5.2.30.0100.05310.93
5.2.20.0100.04310.94
5.2.10.0000.05710.95
5.2.00.0000.05710.71
5.1.60.0000.05710.02
5.1.50.0030.04310.00
5.1.40.0070.0439.93
5.1.30.0030.06010.19
5.1.20.0100.05010.42
5.1.10.0070.04710.10
5.1.00.0030.03310.10
5.0.50.0070.0478.77
5.0.40.0030.0438.33
5.0.30.0000.0438.21
5.0.20.0030.0208.14
5.0.10.0030.0178.09
5.0.00.0070.0608.24
4.4.90.0030.0377.89
4.4.80.0130.0137.89
4.4.70.0030.0337.89
4.4.60.0030.0277.89
4.4.50.0030.0337.89
4.4.40.0000.0577.89
4.4.30.0030.0377.89
4.4.20.0000.0337.89
4.4.10.0000.0377.89
4.4.00.0030.0537.89
4.3.110.0000.0307.89
4.3.100.0030.0337.89
4.3.90.0000.0177.89
4.3.80.0000.0537.89
4.3.70.0070.0337.89
4.3.60.0030.0207.89
4.3.50.0000.0277.89
4.3.40.0000.0437.89
4.3.30.0000.0277.89
4.3.20.0000.0407.89
4.3.10.0030.0337.89
4.3.00.0070.0237.89

preferences:
51.15 ms | 401 KiB | 5 Q