3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://stof.notk.org/'; $context = stream_context_create(array( 'http' => array('timeout' => 60) )); $fp = @fopen($url, 'r', false); if (false === $fp) { throw new Exception("Unable to connect ! "); } stream_set_blocking($fp, 1); stream_set_timeout($fp, 60); stream_socket_shutdown($fp, STREAM_SHUT_WR); $result = stream_get_contents($fp); fclose($fp); var_dump($result);

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.0120.00918.68
8.3.50.0150.00322.09
8.3.40.0070.00719.05
8.3.30.0140.00019.41
8.3.20.0040.00420.71
8.3.10.0060.00323.76
8.3.00.0000.00821.18
8.2.180.0110.01116.88
8.2.170.0140.00722.96
8.2.160.0140.00020.60
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0020.00526.16
8.2.120.0050.00319.38
8.2.110.0030.00622.34
8.2.100.0120.00018.16
8.2.90.0030.00619.33
8.2.80.0090.00018.00
8.2.70.0030.00617.75
8.2.60.0060.00618.29
8.2.50.0080.00018.07
8.2.40.0060.00320.20
8.2.30.0040.00418.42
8.2.20.0080.00017.90
8.2.10.0060.00318.48
8.2.00.0000.00917.96
8.1.280.0100.00525.92
8.1.270.0070.00424.09
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0100.00023.99
8.1.230.0060.00619.27
8.1.220.0000.00817.91
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0050.00317.47
8.1.180.0040.00418.10
8.1.170.0070.00418.73
8.1.160.0000.00722.31
8.1.150.0060.00318.87
8.1.140.0000.00817.68
8.1.130.0050.00219.75
8.1.120.0000.00717.61
8.1.110.0040.00417.61
8.1.100.0040.00417.65
8.1.90.0000.00717.63
8.1.80.0000.00817.60
8.1.70.0050.00217.65
8.1.60.0040.00417.71
8.1.50.0000.00917.78
8.1.40.0040.00817.81
8.1.30.0060.00317.80
8.1.20.0000.00817.87
8.1.10.0040.00417.65
8.1.00.0040.00417.68
8.0.300.0040.00418.77
8.0.290.0000.00717.25
8.0.280.0000.00818.80
8.0.270.0000.00717.54
8.0.260.0000.00817.45
8.0.250.0070.00017.34
8.0.240.0030.00717.35
8.0.230.0040.00417.23
8.0.220.0000.00717.15
8.0.210.0000.00717.18
8.0.200.0030.00317.24
8.0.190.0050.00217.27
8.0.180.0080.00017.20
8.0.170.0060.00317.18
8.0.160.0070.00017.14
8.0.150.0030.00417.14
8.0.140.0040.00417.18
8.0.130.0070.00013.73
8.0.120.0040.00417.13
8.0.110.0030.00617.31
8.0.100.0040.00417.07
8.0.90.0030.00517.24
8.0.80.0130.01017.24
8.0.70.0040.00417.31
8.0.60.0040.00417.31
8.0.50.0050.00317.23
8.0.30.0100.01217.30
8.0.20.0070.01417.46
8.0.10.0060.00317.29
8.0.00.0030.01616.95
7.4.330.0000.00615.29
7.4.320.0000.00616.70
7.4.300.0000.00716.74
7.4.290.0070.00016.65
7.4.280.0080.00016.80
7.4.270.0030.00316.66
7.4.260.0060.00316.74
7.4.250.0040.00416.73
7.4.240.0060.00116.82
7.4.230.0040.00416.83
7.4.220.0090.01816.89
7.4.210.0050.01016.80
7.4.200.0000.00816.79
7.4.160.0150.00316.72
7.4.150.0180.00017.40
7.4.140.0130.00617.86
7.4.130.0150.00716.94
7.4.120.0110.00916.82
7.4.110.0160.00816.79
7.4.100.0150.00316.72
7.4.90.0140.00516.72
7.4.80.0090.01319.39
7.4.70.0120.01116.79
7.4.60.0070.01116.96
7.4.50.0040.00016.77
7.4.40.0150.00316.63
7.4.30.0140.00316.86
7.4.00.0050.01015.41
7.3.330.0000.00613.58
7.3.320.0000.00613.38
7.3.310.0050.00216.69
7.3.300.0040.00416.50
7.3.290.0060.00916.61
7.3.280.0130.00716.60
7.3.270.0090.01017.40
7.3.260.0100.01116.69
7.3.250.0120.01216.64
7.3.240.0140.00716.58
7.3.230.0170.00016.82
7.3.210.0150.00316.72
7.3.200.0110.00719.39
7.3.190.0130.01016.63
7.3.180.0060.01216.84
7.3.170.0080.01116.81
7.3.160.0100.00716.59
7.3.120.0080.01015.12
7.3.110.0150.00415.13
7.3.100.0110.00615.00
7.3.90.0060.00315.31
7.3.80.0040.01415.05
7.3.70.0040.00714.93
7.3.60.0030.01315.21
7.3.50.0060.00615.15
7.3.40.0070.00714.80
7.3.30.0030.00615.05
7.3.20.0090.00316.54
7.3.10.0030.01116.53
7.3.00.0040.01116.91
7.2.330.0150.00316.80
7.2.320.0130.01016.64
7.2.310.0130.00316.86
7.2.300.0120.00616.89
7.2.290.0090.01316.70
7.2.250.0030.01915.22
7.2.240.0030.01715.39
7.2.230.0070.00715.53
7.2.220.0030.00615.02
7.2.210.0060.01015.39
7.2.200.0030.01315.24
7.2.190.0070.00715.44
7.2.180.0040.00815.51
7.2.170.0070.01115.13
7.2.60.0000.01516.95
7.2.00.0030.00919.60
7.1.330.0090.00615.72
7.1.320.0040.01115.73
7.1.310.0030.01016.00
7.1.300.0000.01315.79
7.1.290.0040.01116.09
7.1.280.0060.00916.14
7.1.270.0060.00616.10
7.1.260.0070.00715.83
7.1.200.0070.00316.24
7.1.100.0030.01018.54
7.1.70.0090.00617.52
7.1.60.0100.00719.70
7.1.50.0080.01617.54
7.1.00.0030.07722.82
7.0.200.0030.00616.97
7.0.140.0030.07322.51
7.0.110.0330.08020.23
7.0.100.0300.05020.38
7.0.90.0170.06720.22
7.0.80.0170.07720.19
7.0.70.0200.07720.15
7.0.60.0100.05320.20
7.0.50.0070.06320.81
7.0.40.0100.05320.51
7.0.30.0100.08720.50
7.0.20.0100.08020.48
7.0.10.0100.05720.73
7.0.00.0070.07720.39
5.6.280.0030.07721.21
5.6.260.0170.07720.90
5.6.250.0100.08020.86
5.6.240.0030.05020.93
5.6.230.0130.08321.01
5.6.220.0100.08020.91
5.6.210.0170.08021.04
5.6.200.0100.08021.42
5.6.190.0000.06321.55
5.6.180.0100.07321.38
5.6.170.0170.07321.55
5.6.160.0100.04721.57
5.6.150.0100.08721.52
5.6.140.0070.05021.38
5.6.130.0100.08021.38
5.6.120.0170.04021.43
5.6.110.0070.08321.75
5.6.100.0070.04021.30
5.6.90.0100.08021.38
5.6.80.0030.07321.06
5.6.70.0030.04020.72
5.6.60.0070.07020.80
5.6.50.0100.07320.88
5.6.40.0100.04020.91
5.6.30.0070.07720.93
5.6.20.0130.06720.70
5.6.10.0130.07320.72
5.6.00.0070.07720.73
5.5.380.0270.06020.94
5.5.370.0130.07720.55
5.5.360.0230.04320.82
5.5.350.0100.08720.78
5.5.340.0130.07721.43
5.5.330.0100.05021.28
5.5.320.0130.07321.07
5.5.310.0100.05721.23
5.5.300.0100.03721.10
5.5.290.0000.09021.18
5.5.280.0170.05721.25
5.5.270.0030.08321.04
5.5.260.0100.07321.08
5.5.250.0100.06020.89
5.5.240.0070.06320.54
5.5.230.0100.07320.61
5.5.220.0070.07720.53
5.5.210.0130.07020.61
5.5.200.0100.07020.41
5.5.190.0030.08020.57
5.5.180.0030.07720.45
5.5.160.0100.06020.86
5.5.150.0000.07020.71
5.5.140.0130.06720.47
5.5.130.0030.08320.71
5.5.120.0070.07320.50
5.5.110.0030.08320.58
5.5.100.0230.06320.40
5.5.90.0030.08020.66
5.5.80.0070.07720.54
5.5.70.0100.07720.60
5.5.60.0100.07720.73
5.5.50.0070.04720.49
5.5.40.0070.07720.73
5.5.30.0070.07320.47
5.5.20.0070.07720.37
5.5.10.0030.08020.57
5.5.00.0030.08020.51
5.4.450.0100.03719.58
5.4.440.0100.07019.79
5.4.430.0030.05019.56
5.4.420.0070.07719.88
5.4.410.0000.04319.74
5.4.400.0100.07319.57
5.4.390.0030.07319.72
5.4.380.0070.05719.20
5.4.370.0070.07319.72
5.4.360.0000.08019.63
5.4.350.0030.07019.20
5.4.340.0030.08019.46
5.4.320.0000.07319.25
5.4.310.0100.07019.27
5.4.300.0100.07719.63
5.4.290.0100.07319.20
5.4.280.0170.06719.63
5.4.270.0070.07719.46
5.4.260.0130.07019.27
5.4.250.0170.06719.25
5.4.240.0030.06719.56
5.4.230.0030.08019.25
5.4.220.0100.03719.32
5.4.210.0130.07019.50
5.4.200.0070.06719.63
5.4.190.0100.07319.40
5.4.180.0030.08019.25
5.4.170.0030.04719.19
5.4.160.0100.07019.54
5.4.150.0100.07319.30
5.4.140.0070.05316.77
5.4.130.0200.04317.02
5.4.120.0000.08016.86
5.4.110.0130.07016.93
5.4.100.0100.04716.71
5.4.90.0170.06716.77
5.4.80.0130.06316.86
5.4.70.0070.06016.86
5.4.60.0030.05316.83
5.4.50.0130.06316.75
5.4.40.0070.07316.84
5.4.30.0130.06716.93
5.4.20.0130.06316.74
5.4.10.0100.06016.80
5.4.00.0100.07016.18
5.3.290.0100.07314.82
5.3.280.0030.08715.03
5.3.270.0130.07714.84
5.3.260.0130.07314.83
5.3.250.0030.06314.76
5.3.240.0100.07314.94
5.3.230.0100.07014.89
5.3.220.0070.06714.79
5.3.210.0130.06714.71
5.3.200.0200.06014.79
5.3.190.0100.07714.90
5.3.180.0070.08014.85
5.3.170.0100.04314.72
5.3.160.0170.06714.99
5.3.150.0030.07714.90
5.3.140.0070.07314.90
5.3.130.0130.06314.98
5.3.120.0130.07014.89
5.3.110.0100.05714.75
5.3.100.0130.04714.26
5.3.90.0030.06014.21
5.3.80.0000.07314.30
5.3.70.0200.06314.29
5.3.60.0070.07014.17
5.3.50.0070.05014.12
5.3.40.0200.05014.23
5.3.30.0170.06314.12
5.3.20.0200.06013.91
5.3.10.0070.06313.87
5.3.00.0200.06013.63
5.2.170.0100.06011.70
5.2.160.0070.06011.70
5.2.150.0130.06011.70
5.2.140.0070.05011.70
5.2.130.0100.06311.70
5.2.120.0100.05711.70
5.2.110.0100.06011.70
5.2.100.0070.06011.70
5.2.90.0030.06311.70
5.2.80.0130.04711.70
5.2.70.0030.04711.70
5.2.60.0070.04711.70
5.2.50.0100.05011.70
5.2.40.0070.06311.70
5.2.30.0100.05711.70
5.2.20.0030.05711.70
5.2.10.0100.05311.70
5.2.00.0100.05311.70
5.1.60.0030.05711.70
5.1.50.0070.05311.70
5.1.40.0070.05311.70
5.1.30.0070.05311.70
5.1.20.0130.04711.70
5.1.10.0030.04711.70
5.1.00.0030.03711.70
5.0.50.0070.04311.70
5.0.40.0000.02711.70
5.0.30.0000.06311.70
5.0.20.0030.04311.70
5.0.10.0030.04311.70
5.0.00.0000.06011.70
4.4.90.0030.03311.70
4.4.80.0030.02311.70
4.4.70.0070.03011.70
4.4.60.0000.03711.70
4.4.50.0000.03011.70
4.4.40.0070.05011.70
4.4.30.0070.03311.70
4.4.20.0030.03711.70
4.4.10.0030.03311.70
4.4.00.0030.05011.70
4.3.110.0030.03311.70
4.3.100.0000.03311.70
4.3.90.0000.02311.70
4.3.80.0030.05011.70
4.3.70.0000.03311.70
4.3.60.0000.03311.70
4.3.50.0030.03311.70
4.3.40.0000.05311.70
4.3.30.0030.03311.70
4.3.20.0030.03011.70
4.3.10.0100.02711.70
4.3.00.0000.03711.70

preferences:
30.27 ms | 401 KiB | 5 Q