3v4l.org

run code in 300+ PHP versions simultaneously
<?php $context = stream_context_create(array('http' => array('follow_location' => 1, 'max_redirects' => 1))); $fp = fopen('http://google.com', 'r', false, $context); var_dump(stream_get_contents($fp));

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.00916.98
8.3.50.0140.00421.94
8.3.40.0070.01019.08
8.3.30.0040.01118.91
8.3.20.0040.00420.59
8.3.10.0050.00324.03
8.3.00.0050.00319.63
8.2.180.0090.01316.88
8.2.170.0000.01522.96
8.2.160.0060.00822.43
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0090.00017.75
8.2.120.0050.00326.35
8.2.110.0060.00320.82
8.2.100.0080.00418.03
8.2.90.0050.00319.60
8.2.80.0000.00818.17
8.2.70.0040.00418.15
8.2.60.0000.00818.05
8.2.50.0030.00618.10
8.2.40.0090.00020.72
8.2.30.0000.00720.89
8.2.20.0040.00417.89
8.2.10.0040.00418.30
8.2.00.0070.00018.19
8.1.280.0080.00825.92
8.1.270.0090.00024.09
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0030.00620.81
8.1.230.0060.00620.98
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0090.00317.50
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0000.00918.69
8.1.160.0040.00422.20
8.1.150.0040.00418.94
8.1.140.0060.00319.71
8.1.130.0000.00917.75
8.1.120.0000.00717.51
8.1.110.0000.01117.50
8.1.100.0070.00017.50
8.1.90.0080.00017.64
8.1.80.0040.00417.48
8.1.70.0030.00317.52
8.1.60.0050.00317.78
8.1.50.0000.00817.64
8.1.40.0000.00817.63
8.1.30.0000.00817.77
8.1.20.0100.00217.71
8.1.10.0000.00917.71
8.1.00.0040.00417.66
8.0.300.0040.00422.16
8.0.290.0040.00416.88
8.0.280.0040.00418.65
8.0.270.0080.00017.34
8.0.260.0000.00617.33
8.0.250.0000.00817.14
8.0.240.0060.00317.11
8.0.230.0050.00217.16
8.0.220.0090.00017.05
8.0.210.0000.00717.13
8.0.200.0060.00017.09
8.0.190.0030.00617.13
8.0.180.0080.00417.11
8.0.170.0000.00817.08
8.0.160.0000.00717.18
8.0.150.0050.00217.16
8.0.140.0050.00217.00
8.0.130.0030.00313.54
8.0.120.0000.00917.03
8.0.110.0040.00417.11
8.0.100.0040.00417.07
8.0.90.0040.00417.19
8.0.80.0060.00917.25
8.0.70.0040.00417.24
8.0.60.0000.00817.10
8.0.50.0080.00017.18
8.0.30.0100.01017.36
8.0.20.0130.00917.40
8.0.10.0080.00017.09
8.0.00.0140.00416.89
7.4.330.0000.00517.11
7.4.320.0000.00716.58
7.4.300.0000.00716.54
7.4.290.0050.00316.56
7.4.280.0070.00016.64
7.4.270.0030.00516.60
7.4.260.0000.00716.70
7.4.250.0030.00616.71
7.4.240.0000.00816.73
7.4.230.0040.00416.51
7.4.220.0140.01316.86
7.4.210.0100.00616.83
7.4.200.0040.00416.75
7.4.160.0110.00416.54
7.4.150.0070.01417.40
7.4.140.0020.01917.86
7.4.130.0190.00016.58
7.4.120.0120.00916.68
7.4.110.0090.01016.55
7.4.100.0090.01116.76
7.4.90.0100.00716.81
7.4.80.0080.01219.39
7.4.70.0090.00916.64
7.4.60.0130.00316.57
7.4.50.0000.01516.61
7.4.40.0060.01116.70
7.4.30.0100.01316.68
7.4.00.0030.01214.89
7.3.330.0050.00013.29
7.3.320.0030.00313.28
7.3.310.0040.00416.59
7.3.300.0000.00716.54
7.3.290.0080.00916.54
7.3.280.0090.00616.45
7.3.270.0120.00617.40
7.3.260.0080.01016.76
7.3.240.0140.00616.37
7.3.230.0090.01516.43
7.3.210.0110.00716.29
7.3.200.0150.00316.53
7.3.190.0140.00916.54
7.3.180.0150.00316.45
7.3.170.0150.00616.48
7.3.160.0120.00316.75
7.3.10.0140.00316.32
7.3.00.0000.00916.07
7.2.330.0120.00916.88
7.2.320.0120.00616.63
7.2.310.0120.00616.73
7.2.300.0060.01416.54
7.2.290.0070.01116.53
7.2.130.0140.00716.72
7.2.120.0070.00416.61
7.2.110.0000.00917.07
7.2.100.0060.00917.02
7.2.90.0000.01416.98
7.2.80.0060.00617.03
7.2.70.0090.00616.77
7.2.60.0110.00816.69
7.2.50.0000.01416.62
7.2.40.0070.01116.61
7.2.30.0030.00616.70
7.2.20.0040.00816.78
7.2.10.0070.00716.83
7.2.00.0100.00518.14
7.1.250.0090.00615.61
7.1.200.0030.00315.63
7.1.100.0060.00618.05
7.1.70.0080.00317.14
7.1.60.0070.01819.48
7.1.50.0070.00417.27
7.1.00.0130.08022.77
7.0.200.0340.00314.68
7.0.60.0100.04020.21
7.0.50.0070.05018.05
7.0.40.0070.06320.48
7.0.30.0200.05720.57
7.0.20.0430.07720.47
7.0.10.0000.05020.46
7.0.00.0070.07720.54
5.6.280.0000.03721.18
5.6.210.0030.05721.09
5.6.200.0130.07718.48
5.6.190.0000.04721.09
5.6.180.0530.06720.97
5.6.170.0300.04020.81
5.6.160.0130.08020.80
5.6.150.0030.06018.39
5.6.140.0030.08018.51
5.6.130.0100.04718.55
5.6.120.0030.05021.51
5.6.110.0070.08021.42
5.6.100.0000.04321.48
5.6.90.0170.07721.47
5.6.80.0000.04320.73
5.5.350.3870.04020.70
5.5.340.0100.07018.36
5.5.330.0100.05320.86
5.5.320.0430.03720.75
5.5.310.0170.05020.77
5.5.300.0100.04018.28
5.5.290.0070.08018.29
5.5.280.0030.09021.28
5.5.270.0100.08321.23
5.5.260.0070.04021.38
5.5.250.0170.08320.96
5.5.240.0370.04020.47

preferences:
52.73 ms | 401 KiB | 5 Q