3v4l.org

run code in 300+ PHP versions simultaneously
<?php$server_ip = "carsija.topstream.net";$portbase = "19406";if (!is_numeric($portbase)) { print "Invalid port"; exit;}$fp = @fsockopen($server_ip,$portbase,$errno,$errstr,1);if (!$fp) { print "<p>Connection refused, the server appears to be offline.</p>"; exit;} else { fputs($fp, "GET /played.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $content = get_string_between($info, "Admin Login</a></font></td></tr></table></td></tr></table><br>", "<br><br><table"); print $content; fclose($fp);}function get_string_between($string, $start, $end) { $string = " " . $string; $ini = strpos($string, $start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string, $end, $ini) - $ini; return substr($string, $ini, $len);}?>

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.0100.00317.93
8.3.50.0100.00921.99
8.3.40.0070.01018.67
8.3.30.0140.00319.01
8.3.20.0040.00420.12
8.3.10.0080.00020.28
8.3.00.0050.00319.25
8.2.180.0120.00318.29
8.2.170.0070.00722.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.20
8.2.110.0030.00721.06
8.2.100.0070.00417.72
8.2.90.0080.00019.08
8.2.80.0030.00617.97
8.2.70.0000.00817.25
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0080.00018.16
8.2.30.0030.00617.91
8.2.20.0000.00817.66
8.2.10.0000.00917.93
8.2.00.0040.00417.60
8.1.280.0140.00325.92
8.1.270.0050.00322.19
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0070.00321.29
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00417.23
8.1.190.0030.00517.10
8.1.180.0060.00318.10
8.1.170.0030.00618.51
8.1.160.0050.00321.85
8.1.150.0040.00418.70
8.1.140.0030.00517.19
8.1.130.0000.00717.66
8.1.120.0070.00017.37
8.1.110.0000.00717.29
8.1.100.0040.00417.26
8.1.90.0030.00317.21
8.1.80.0040.00317.21
8.1.70.0000.00717.25
8.1.60.0000.00817.39
8.1.50.0040.00417.41
8.1.40.0070.00017.37
8.1.30.0030.00517.32
8.1.20.0000.00717.43
8.1.10.0040.00417.43
8.1.00.0000.00817.34
8.0.300.0030.00518.77
8.0.290.0000.00716.63
8.0.280.0070.00018.37
8.0.270.0000.00817.18
8.0.260.0030.00317.26
8.0.250.0000.00716.72
8.0.240.0000.00716.71
8.0.230.0000.00716.75
8.0.220.0000.00716.73
8.0.210.0000.00716.78
8.0.200.0070.00016.83
8.0.190.0000.00816.86
8.0.180.0040.00416.79
8.0.170.0000.00816.82
8.0.160.0000.00716.79
8.0.150.0070.00016.61
8.0.140.0070.00316.70
8.0.130.0000.00813.42
8.0.120.0040.00416.74
8.0.110.0000.00816.62
8.0.100.0070.00016.79
8.0.90.0080.00016.65
8.0.80.0070.01416.75
8.0.70.0000.00716.83
8.0.60.0040.00416.63
8.0.50.0040.00416.64
8.0.30.0090.01016.83
8.0.20.0110.01117.40
8.0.10.0050.00316.91
8.0.00.0140.00816.46
7.4.330.0050.00015.09
7.4.320.0030.00316.32
7.4.300.0060.00016.42
7.4.290.0000.00716.27
7.4.280.0030.00616.40
7.4.270.0000.00716.36
7.4.260.0000.00816.36
7.4.250.0040.00416.30
7.4.240.0030.00416.40
7.4.230.0000.00716.54
7.4.220.0070.01416.44
7.4.210.0060.00916.48
7.4.200.0030.00316.21
7.4.160.0070.01016.37
7.4.150.0110.00617.40
7.4.140.0100.00817.86
7.4.130.0080.00816.48
7.4.120.0120.00516.52
7.4.110.0110.00916.40
7.4.100.0030.01316.32
7.4.90.0150.00216.58
7.4.80.0090.01319.39
7.4.70.0080.00816.23
7.4.60.0140.00316.46
7.4.50.0080.00016.34
7.4.40.0060.01116.51
7.4.30.0070.01016.20
7.3.330.0050.00013.01
7.3.320.0000.00512.99
7.3.310.0060.00016.28
7.3.300.0030.00316.04
7.3.290.0080.00816.14
7.3.280.0050.01216.18
7.3.270.0170.00317.40
7.3.260.0130.00316.48
7.3.250.0150.00316.37
7.3.240.0030.01316.38
7.3.230.0140.00316.39
7.3.210.0070.01016.23
7.3.200.0100.01319.39
7.3.190.0090.01216.40
7.3.180.0030.01316.09
7.3.170.0100.00716.27
7.3.160.0080.00816.15
7.2.330.0030.01316.20
7.2.320.0120.00416.45
7.2.310.0030.01316.36
7.2.300.0130.00316.40
7.2.290.0140.00316.38
5.6.10.0150.00514.11
5.6.00.0070.01114.00
5.5.170.0130.00913.87
5.5.160.0100.00510.57
5.5.150.0130.00310.73
5.5.140.0070.00710.41
5.5.130.0070.00710.99
5.5.120.0040.01210.96
5.5.110.0100.00510.95
5.5.100.0080.00510.67
5.5.90.0140.00010.57
5.5.80.0080.00810.68
5.5.70.0150.00010.58
5.5.60.0080.00610.86
5.5.50.0090.00510.89
5.5.40.0050.01010.94
5.5.30.0080.00410.88
5.5.20.0090.00510.67
5.5.10.0090.00610.72
5.5.00.0090.00610.63
5.4.330.0110.00410.43
5.4.320.0060.00910.69
5.4.310.0130.00010.79
5.4.300.0130.00510.61
5.4.290.0090.00510.52
5.4.280.0060.00910.70
5.4.270.0080.00610.82
5.4.260.0050.01010.88
5.4.250.0130.00310.97
5.4.240.0060.00810.65
5.4.230.0070.00710.68
5.4.220.0100.00410.65
5.4.210.0110.00110.70
5.4.200.0100.00510.61
5.4.190.0080.00610.63
5.4.180.0080.00410.45
5.4.170.0080.00810.66
5.4.160.0050.01210.69
5.4.150.0050.00710.57
5.4.140.0090.00410.75
5.4.130.0080.00810.68
5.4.120.0050.01010.89
5.4.110.0050.01010.82
5.4.100.0080.00610.77
5.4.90.0060.01010.96
5.4.80.0100.00310.65
5.4.70.0130.00010.88
5.4.60.0000.01610.70
5.4.50.0080.00410.94
5.4.40.0070.00710.92
5.4.30.0090.00610.62
5.4.20.0100.00510.67
5.4.10.0150.00010.76
5.4.00.0130.00310.93

preferences:
36.14 ms | 401 KiB | 5 Q