3v4l.org

run code in 300+ PHP versions simultaneously
<?php $socket = @fsockopen(gethostbyname("www.google.com")); if (!$socket) { die("spojenie vypadlo"); } $httpReq = "GET / HTTP/1.1\n"; $httpReq .= "Host: www.google.com\n"; $httpReq .= "Accept: */*\n"; $httpReq .= "Kubo2Sniffer 1.0 (+http://kubo2.wz.sk)\n\n"; fwrite($socket, $httpReq); while($line = fgets($socket) !== "\n\n") { echo $line; } fclose($socket);

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.70.0040.01116.73
8.3.60.0130.00916.75
8.3.50.0110.01118.50
8.3.40.0140.00719.04
8.3.30.0060.01019.09
8.3.20.0000.00819.08
8.3.10.0000.01020.73
8.3.00.0030.00917.75
8.2.180.0150.00616.88
8.2.170.0060.00922.96
8.2.160.0110.00720.82
8.2.150.0080.00024.18
8.2.140.0150.00424.66
8.2.130.0040.01126.16
8.2.120.0040.00420.75
8.2.110.0090.00019.39
8.2.100.0030.01018.03
8.2.90.0050.00319.60
8.2.80.0040.00419.47
8.2.70.0060.00317.63
8.2.60.0030.00718.05
8.2.50.0000.00818.07
8.2.40.0070.00018.34
8.2.30.0030.00618.02
8.2.20.0040.00419.63
8.2.10.0040.00417.82
8.2.00.0040.00417.80
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.71
8.1.230.0050.00521.03
8.1.220.0030.00517.77
8.1.210.0060.00319.09
8.1.200.0060.00317.48
8.1.190.0040.00417.53
8.1.180.0030.00518.10
8.1.170.0050.00319.09
8.1.160.0040.00419.07
8.1.150.0040.00418.77
8.1.140.0000.00717.50
8.1.130.0000.00717.96
8.1.120.0000.00717.50
8.1.110.0070.00017.60
8.1.100.0020.00517.63
8.1.90.0050.00217.59
8.1.80.0040.00417.55
8.1.70.0020.00517.60
8.1.60.0040.00417.69
8.1.50.0040.00417.57
8.1.40.0030.00517.62
8.1.30.0040.00417.79
8.1.20.0000.00817.69
8.1.10.0040.00417.67
8.1.00.0040.00417.64
8.0.300.0000.00919.98
8.0.290.0070.00016.88
8.0.280.0030.00318.45
8.0.270.0040.00417.27
8.0.260.0080.00016.93
8.0.250.0080.00017.06
8.0.240.0040.00417.06
8.0.230.0030.00317.10
8.0.220.0070.00016.98
8.0.210.0070.00017.04
8.0.200.0000.00717.13
8.0.190.0000.00817.06
8.0.180.0030.00317.09
8.0.170.0040.00417.08
8.0.160.0030.00417.07
8.0.150.0040.00417.07
8.0.140.0000.00817.02
8.0.130.0000.00613.70
8.0.120.0000.00817.13
8.0.110.0040.00416.98
8.0.100.0040.00416.94
8.0.90.0030.00817.21
8.0.80.0040.01217.18
8.0.70.0040.00417.09
8.0.60.0040.00417.18
8.0.50.0030.00617.04
8.0.30.0170.00317.26
8.0.20.0100.01017.26
8.0.10.0040.00417.12
8.0.00.0150.00317.05
7.4.330.0050.00013.18
7.4.320.0000.00616.59
7.4.300.0060.00016.62
7.4.290.0040.00416.70
7.4.280.0040.00416.55
7.4.270.0000.00716.59
7.4.260.0060.00013.54
7.4.250.0090.00016.86
7.4.240.0070.00016.79
7.4.230.0000.00716.63
7.4.220.0090.01216.69
7.4.210.0060.00916.72
7.4.200.0070.00016.81
7.4.190.0070.00016.88
7.4.160.0140.00316.65
7.4.150.0120.00616.50
7.4.140.0090.00916.53
7.4.130.0090.00916.64
7.4.120.0110.00816.67
7.4.110.0130.00616.58
7.4.100.0070.01016.68
7.4.90.0070.01316.71
7.4.80.0110.00716.66
7.4.70.0100.01416.66
7.4.60.0090.00916.61
7.4.50.0110.00316.95
7.4.40.0070.01116.53
7.4.30.0170.00716.73
7.4.00.0030.01315.29
7.3.330.0070.00013.28
7.3.320.0050.00013.36
7.3.310.0000.00716.31
7.3.300.0000.00816.50
7.3.290.0100.01016.43
7.3.280.0110.00716.49
7.3.270.0090.00916.45
7.3.260.0130.01016.62
7.3.250.0070.01516.63
7.3.240.0140.00316.51
7.3.230.0190.00316.49
7.3.210.0150.00816.56
7.3.200.0060.01419.39
7.3.190.0090.00916.53
7.3.180.0160.00316.50
7.3.170.0130.00316.61
7.3.160.0080.00916.68
7.3.120.0070.00714.86
7.2.330.0170.00716.79
7.2.320.0100.01416.61
7.2.310.0060.01216.93
7.2.300.0160.00316.83
7.2.290.0100.00916.91
7.2.00.0060.00619.31
7.1.100.0070.01018.34
7.1.70.0040.00717.31
7.1.60.0160.01019.40
7.1.50.0090.01217.17
7.1.00.0070.05722.90
7.0.200.0140.00715.07
7.0.140.0100.07022.39
7.0.120.0030.06322.32
7.0.60.0070.03720.15
7.0.50.0070.04318.08
7.0.40.0100.05018.02
7.0.30.0070.06718.05
7.0.20.0000.08018.15
7.0.10.0130.06718.13
7.0.00.0030.07318.02
5.6.280.0000.07721.34
5.6.210.0070.08021.07
5.6.200.0030.06318.46
5.6.190.0170.06718.38
5.6.180.0170.07018.59
5.6.170.0100.07718.51
5.6.160.0230.03718.67
5.6.150.0100.07718.66
5.6.140.0130.04718.54
5.6.130.0230.07018.45
5.6.120.0070.04018.49
5.6.110.0070.04018.58
5.6.100.0070.08318.40
5.6.90.0070.06318.42
5.6.80.0070.05717.77
5.6.70.0070.06717.79
5.6.60.0070.07717.86
5.6.50.0030.04717.77
5.6.40.0170.03317.86
5.6.30.0170.07017.86
5.6.20.0030.05317.91
5.6.10.0070.06317.84
5.6.00.0130.06317.88
5.5.350.0300.07720.75
5.5.340.0070.04718.40
5.5.330.0070.05318.46
5.5.320.0100.07718.25
5.5.310.0030.07718.26
5.5.300.0100.05318.21
5.5.290.0070.08018.30
5.5.280.0100.03718.34
5.5.270.0030.04318.22
5.5.260.0070.04718.29
5.5.250.0070.07018.13
5.5.240.0100.06017.65
5.5.230.0170.07017.77
5.5.220.0000.04317.67
5.5.210.0100.07717.61
5.5.200.0130.06317.72
5.5.190.0070.07717.72
5.5.180.0170.07017.82
5.5.160.0100.07717.72
5.5.150.0030.07017.61
5.5.140.0070.05017.63
5.5.130.0030.07717.82
5.5.120.0130.04717.65
5.5.110.0030.04717.62
5.5.100.0030.04017.77
5.5.90.0100.05017.54
5.5.80.0130.07017.44
5.5.70.0030.05017.52
5.5.60.0130.07017.58
5.5.50.0070.04317.46
5.5.40.0100.04017.63
5.5.30.0030.08017.55
5.5.20.0030.08317.48
5.5.10.0030.08317.53
5.5.00.0170.06717.48
5.4.450.0100.04719.61
5.4.440.0030.04019.59
5.4.430.0030.04019.70
5.4.420.0030.06719.72
5.4.410.0070.08019.57
5.4.400.0030.04019.37
5.4.390.0130.06719.38
5.4.380.0100.05719.25
5.4.370.0070.05319.32
5.4.360.0000.05019.26
5.4.350.0200.06019.30
5.4.340.0070.07719.27
5.4.320.0170.07019.30
5.4.310.0030.06019.28
5.4.300.0030.04019.36
5.4.290.0100.06319.29
5.4.280.0170.04719.28
5.4.270.0070.06719.25
5.4.260.0030.07019.25
5.4.250.0130.07319.36
5.4.240.0070.04319.24
5.4.230.0070.04719.36
5.4.220.0170.06019.36
5.4.210.0000.07019.44
5.4.200.0070.04719.26
5.4.190.0030.08019.25
5.4.180.0030.07719.27
5.4.170.0100.07319.36
5.4.160.0000.05019.33
5.4.150.0170.03719.27
5.4.140.0000.04016.70
5.4.130.0100.06716.61
5.4.120.0100.03316.68
5.4.110.0030.04316.82
5.4.100.0070.03716.92
5.4.90.0070.07016.68
5.4.80.0100.06716.88
5.4.70.0130.04316.73
5.4.60.0070.07316.66
5.4.50.0030.04316.69
5.4.40.0070.06716.89
5.4.30.0100.06016.86
5.4.20.0030.07316.77
5.4.10.0000.06016.86
5.4.00.0130.06016.16
5.3.290.0170.06714.84
5.3.280.0000.05714.77
5.3.270.0030.05014.76
5.3.260.0130.07014.87
5.3.250.0030.04014.75
5.3.240.0000.04014.59
5.3.230.0100.04015.00
5.3.220.0070.07314.71
5.3.210.0170.04714.73
5.3.200.0030.04014.97
5.3.190.0070.05014.74
5.3.180.0030.07714.67
5.3.170.0100.07014.71
5.3.160.0070.07014.74
5.3.150.0000.04714.71
5.3.140.0130.03314.70
5.3.130.0100.07714.73
5.3.120.0070.07014.71
5.3.110.0070.08014.71
5.3.100.0100.07714.21
5.3.90.0130.05314.42
5.3.80.0030.06714.19
5.3.70.0000.05714.24
5.3.60.0030.07314.16
5.3.50.0100.07014.21
5.3.40.0000.06714.03
5.3.30.0100.07314.07
5.3.20.0030.04313.87
5.3.10.0070.04713.91
5.3.00.0030.08014.04
5.2.170.0070.07011.33
5.2.160.0100.05311.34
5.2.150.0030.04011.55
5.2.140.0100.03011.38
5.2.130.0100.05011.27
5.2.120.0130.05011.25
5.2.110.0030.02711.22
5.2.100.0070.06311.50
5.2.90.0070.02711.08
5.2.80.0070.02711.36
5.2.70.0130.05311.26
5.2.60.0100.05311.23
5.2.50.0070.04711.20
5.2.40.0030.05311.09
5.2.30.0030.06311.13
5.2.20.0030.06311.36
5.2.10.0000.06311.04
5.2.00.0030.03710.82
5.1.60.0070.02010.14
5.1.50.0030.03710.22
5.1.40.0030.02310.18
5.1.30.0070.03010.51
5.1.20.0100.05010.53
5.1.10.0100.05010.31
5.1.00.0070.05310.18
5.0.50.0070.0438.67
5.0.40.0070.0308.55
5.0.30.0000.0508.23
5.0.20.0100.0308.40
5.0.10.0000.0408.38
5.0.00.0030.0638.31
4.4.90.0000.0207.55
4.4.80.0070.0307.55
4.4.70.0030.0237.55
4.4.60.0000.0237.55
4.4.50.0100.0237.55
4.4.40.0070.0437.55
4.4.30.0000.0207.55
4.4.20.0000.0307.55
4.4.10.0030.0307.55
4.4.00.0000.0577.55
4.3.110.0070.0137.55
4.3.100.0070.0307.55
4.3.90.0070.0307.55
4.3.80.0100.0477.55
4.3.70.0070.0137.55
4.3.60.0000.0237.55
4.3.50.0000.0337.55
4.3.40.0030.0507.55
4.3.30.0000.0407.55
4.3.20.0030.0407.55
4.3.10.0000.0307.55
4.3.00.0000.0407.55

preferences:
48.4 ms | 401 KiB | 5 Q