3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $fp = fsockopen("www.yahoo.com", 80, $errno, $errstr, 30); print round(microtime(true) - $time, 2);

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.1.70.0060.00617.08
7.1.60.0060.00617.57
7.1.50.0030.02016.93
7.1.00.0030.07722.83
7.0.200.0060.00616.94
7.0.140.0000.07722.33
7.0.60.0130.07720.42
7.0.50.0100.05318.21
7.0.40.0200.07020.57
7.0.30.0400.07320.48
7.0.20.0200.04320.49
7.0.10.0400.07320.42
7.0.00.0100.07720.53
5.6.280.0030.07321.27
5.6.210.0070.06020.91
5.6.200.0100.04718.44
5.6.190.0000.05021.10
5.6.180.4170.04721.09
5.6.170.0200.05020.83
5.6.160.0070.04020.88
5.6.150.0130.07318.65
5.6.140.0070.08018.54
5.6.130.0000.04318.54
5.6.120.0200.07021.53
5.6.110.0100.06721.52
5.6.100.0070.08021.23
5.6.90.0100.08021.41
5.6.80.0000.04320.66
5.6.70.0370.06720.87
5.5.350.0300.07320.84
5.5.340.0070.08318.36
5.5.330.0070.05720.88
5.5.320.0130.04320.67
5.5.310.0270.07720.62
5.5.300.0030.05318.21
5.5.290.0030.08018.31
5.5.280.0030.04321.13
5.5.270.0070.06721.23
5.5.260.0130.07721.27
5.5.250.0030.09320.89
5.5.240.0070.06720.62
5.4.450.4500.03320.02
5.4.440.3830.04720.02
5.4.430.1430.06319.94
5.4.420.3630.04319.96
5.4.410.4670.03719.85
5.4.400.4470.05019.67
5.4.390.3700.03719.66
5.4.380.3870.04019.63
5.4.370.3570.03319.67
5.4.360.4500.03719.64
5.4.350.4270.03719.66
5.4.340.4400.04319.46
5.4.320.4470.03719.61
5.4.310.4400.03019.66
5.4.300.3970.03319.70
5.4.290.4100.03019.68
5.4.280.4630.04719.54
5.4.270.4170.04019.65
5.4.260.4430.04019.68
5.4.250.4600.03719.66
5.4.240.4430.04319.58
5.4.230.4200.03319.65
5.4.220.3900.03719.68
5.4.210.3870.04019.68
5.4.200.3770.04319.60
5.4.190.3800.05019.64
5.4.180.2330.03319.65
5.4.170.3930.04319.63
5.4.160.3670.03719.67
5.4.150.2600.04019.62
5.4.140.3070.03317.08
5.4.130.3800.03316.96
5.4.120.3730.03017.09
5.4.110.3600.03717.02
5.4.100.4230.03717.00
5.4.90.4130.03317.00
5.4.80.3800.04016.90
5.4.70.3830.04017.14
5.4.60.3770.03317.05
5.4.50.3670.02717.07
5.4.40.4900.02716.93
5.4.30.4130.03317.04
5.4.20.4370.04017.07
5.4.10.3770.03016.92
5.4.00.4100.04016.56
5.3.290.4370.03715.08
5.3.280.3830.03714.95
5.3.270.3530.03715.05
5.3.260.3370.04315.04
5.3.250.3230.03714.96
5.3.240.3130.03714.92
5.3.230.3700.03314.95
5.3.220.3070.03014.86
5.3.210.3030.04014.98
5.3.200.3570.03714.88
5.3.190.3870.04015.04
5.3.180.3830.03014.86
5.3.170.3930.03315.00
5.3.160.3970.04014.95
5.3.150.4000.05014.98
5.3.140.4100.04015.00
5.3.130.3900.03314.83
5.3.120.3770.03314.85
5.3.110.4070.04014.98
5.3.100.3830.02714.47
5.3.90.3970.03314.43
5.3.80.4000.03714.45
5.3.70.4870.04014.46
5.3.60.4630.03314.37
5.3.50.4200.03314.38
5.3.40.0070.05014.24
5.3.30.0900.06014.33
5.3.20.4300.03314.13
5.3.10.4670.03314.08
5.3.00.4570.03714.05
5.2.170.4000.02711.53
5.2.160.0030.05311.58
5.2.150.0000.07011.52
5.2.140.4100.02711.53
5.2.130.4000.02711.53
5.2.120.3870.03011.45
5.2.110.3730.02311.51
5.2.100.3030.03711.52
5.2.90.3670.02711.43
5.2.80.3370.02011.39
5.2.70.3900.03311.52
5.2.60.3970.03011.39
5.2.50.3830.03711.30
5.2.40.3300.02711.28
5.2.30.2930.02311.29
5.2.20.2970.02011.34
5.2.10.3200.02711.20
5.2.00.2600.02711.05
5.1.60.2830.03010.41
5.1.50.2670.02310.45
5.1.40.2800.02010.37
5.1.30.2370.02710.73
5.1.20.2670.03010.73
5.1.10.2900.02710.50
5.1.00.3000.02310.48
5.0.50.1270.0209.02
5.0.40.1770.0178.86
5.0.30.1700.0308.68
5.0.20.1770.0178.49
5.0.10.1770.0208.46
5.0.00.1670.0308.41
4.4.90.1770.0136.38
4.4.80.1530.0206.42
4.4.70.1800.0136.41
4.4.60.1870.0206.39
4.4.50.1800.0136.50
4.4.40.1330.0276.40
4.4.30.1530.0136.49
4.4.20.1100.0236.54
4.4.10.1670.0176.50
4.4.00.1530.0236.52
4.3.110.1470.0176.30
4.3.100.1700.0136.35
4.3.90.1630.0206.32
4.3.80.1670.0276.35
4.3.70.1430.0176.24
4.3.60.1370.0176.25
4.3.50.1500.0176.33
4.3.40.1130.0276.25
4.3.30.0770.0206.14
4.3.20.1030.0236.14
4.3.10.1000.0206.14
4.3.00.1030.0176.14

preferences:
33.2 ms | 401 KiB | 5 Q