3v4l.org

run code in 300+ PHP versions simultaneously
<? $address=$_SERVER['REMOTE_ADDR']; if (isset($_REQUEST['port']) and (!strlen($_REQUEST['port'])==0)) $port=$_REQUEST['port']; else unset($port); if (isset($port) and ($socket=socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) and (socket_connect($socket, $address, $port))) { $text="Connection successful on IP $address, port $port"; socket_close($socket); } else $text="Unable to connect<pre>".socket_strerror(socket_last_error())."</pre>"; echo "<html><head></head><body>". $text. "</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.0110.00716.49
8.3.50.0150.00521.90
8.3.40.0070.00718.75
8.3.30.0100.00618.46
8.3.20.0060.00320.21
8.3.10.0080.00020.44
8.3.00.0040.00423.62
8.2.180.0090.00616.32
8.2.170.0030.01422.96
8.2.160.0060.00922.02
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00820.66
8.2.120.0070.00026.35
8.2.110.0090.00019.38
8.2.100.0120.00017.78
8.2.90.0040.00418.94
8.2.80.0080.00017.97
8.2.70.0040.00417.61
8.2.60.0000.00817.68
8.2.50.0080.00018.09
8.2.40.0080.00520.41
8.2.30.0030.00319.17
8.2.20.0040.00417.42
8.2.10.0050.00317.87
8.2.00.0040.00417.96
8.1.280.0000.01725.92
8.1.270.0040.00422.14
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00421.17
8.1.230.0070.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0040.00418.43
8.1.160.0050.00320.68
8.1.150.0040.00418.66
8.1.140.0040.00419.37
8.1.130.0040.00417.54
8.1.120.0000.00717.29
8.1.110.0000.00717.26
8.1.100.0040.00417.29
8.1.90.0000.00717.20
8.1.80.0000.00717.35
8.1.70.0030.00317.21
8.1.60.0020.00517.44
8.1.50.0030.00617.34
8.1.40.0000.00817.36
8.1.30.0080.00017.47
8.1.20.0000.00717.47
8.1.10.0050.00217.44
8.1.00.0000.00717.35
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0040.00418.28
8.0.270.0030.00317.22
8.0.260.0070.00017.26
8.0.250.0040.00416.78
8.0.240.0070.00016.85
8.0.230.0030.00316.72
8.0.220.0030.00316.74
8.0.210.0030.00316.71
8.0.200.0000.00616.82
8.0.190.0040.00416.76
8.0.180.0070.00016.80
8.0.170.0030.00616.74
8.0.160.0000.00716.64
8.0.150.0040.00416.68
8.0.140.0070.00016.69
8.0.130.0050.00013.36
8.0.120.0040.00416.58
8.0.110.0080.00016.77
8.0.100.0030.00316.64
8.0.90.0040.00416.75
8.0.80.0040.01416.74
8.0.70.0000.00716.63
8.0.60.0040.00416.57
8.0.50.0030.00516.54
8.0.30.0140.01016.96
8.0.20.0090.01017.40
8.0.10.0050.00316.75
8.0.00.0110.00616.73
7.4.330.0020.00216.67
7.4.320.0060.00016.36
7.4.300.0030.00616.28
7.4.290.0030.00316.26
7.4.280.0030.00516.45
7.4.270.0000.00716.46
7.4.260.0000.00716.34
7.4.250.0000.00916.29
7.4.240.0030.00316.45
7.4.230.0040.00316.27
7.4.220.0090.01216.38
7.4.210.0090.00616.50
7.4.200.0040.00416.42
7.4.160.0090.00616.20
7.4.150.0140.00517.40
7.4.140.0110.01017.86
7.4.130.0060.01216.30
7.4.120.0030.01316.36
7.4.110.0070.01116.25
7.4.100.0060.01116.40
7.4.90.0080.00816.58
7.4.80.0000.01719.39
7.4.70.0100.00716.44
7.4.60.0030.01216.25
7.4.50.0070.00716.32
7.4.40.0160.00316.33
7.4.30.0120.00816.43
7.4.00.0060.01114.68
7.3.330.0030.00313.33
7.3.320.0050.00013.30
7.3.310.0070.00015.95
7.3.300.0030.00315.96
7.3.290.0070.00816.09
7.3.280.0090.00816.11
7.3.270.0140.00417.40
7.3.260.0140.00316.13
7.3.250.0160.00516.19
7.3.240.0080.01116.33
7.3.230.0030.01716.39
7.3.210.0090.01216.41
7.3.200.0090.00619.39
7.3.190.0040.01416.36
7.3.180.0130.00316.16
7.3.170.0120.00316.32
7.3.160.0040.01216.28
7.3.120.0160.00314.97
7.3.110.0100.00714.74
7.3.100.0060.00914.74
7.3.90.0060.00914.35
7.3.80.0040.00414.79
7.3.70.0090.00614.77
7.3.60.0130.00014.54
7.3.50.0100.00314.60
7.3.40.0090.00914.80
7.3.30.0040.00714.52
7.3.20.0040.01116.58
7.3.10.0040.01116.49
7.3.00.0060.00616.59
7.2.330.0030.01316.49
7.2.320.0070.01116.59
7.2.310.0130.01016.42
7.2.300.0070.01016.49
7.2.290.0120.00416.42
7.2.250.0040.01514.91
7.2.240.0070.01414.70
7.2.230.0040.00814.54
7.2.220.0030.01215.04
7.2.210.0090.00314.82
7.2.200.0100.00714.72
7.2.190.0030.00614.76
7.2.180.0130.00314.81
7.2.170.0060.00614.76
7.2.60.0030.01016.56
7.2.00.0030.00919.52
7.1.330.0040.01115.77
7.1.320.0030.01015.42
7.1.310.0100.00615.57
7.1.300.0000.01115.50
7.1.290.0090.00615.69
7.1.280.0030.01315.52
7.1.270.0060.00915.55
7.1.260.0030.01315.50
7.1.200.0170.01115.55
7.1.100.0090.00618.18
7.1.70.0000.00717.27
7.1.60.0120.01219.40
7.1.50.0100.01016.88
7.1.00.0030.07722.46
7.0.200.0420.01214.40
7.0.60.0300.07021.72
7.0.50.0070.08017.88
7.0.40.0000.05720.27
7.0.30.0230.04720.02
7.0.20.0170.05320.21
7.0.10.0130.07320.02
7.0.00.0070.05320.18
5.6.280.0030.06721.15
5.6.210.0070.05020.76
5.6.200.0100.08318.08
5.6.190.0030.05320.33
5.6.180.0270.05320.57
5.6.170.0270.05020.50
5.6.160.0100.03720.52
5.6.150.0030.08718.18
5.6.140.0000.09018.18
5.6.130.0030.07318.11
5.6.120.0030.05720.94
5.6.110.0100.07021.11
5.6.100.0070.07720.98
5.6.90.0130.07021.12
5.6.80.0130.05320.40
5.5.350.0130.07720.49
5.5.340.0100.03317.98
5.5.330.0130.07720.15
5.5.320.0170.05320.32
5.5.310.0300.04320.30
5.5.300.0130.08017.91
5.5.290.0070.08017.90
5.5.280.0100.03720.76
5.5.270.0070.04020.96
5.5.260.0030.08020.89
5.5.250.0130.06720.68
5.5.240.0200.03020.25

preferences:
52 ms | 401 KiB | 5 Q