3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("www.baidu.com", 80, $errno, $errstr, 30); if (!$fp) die('error fsockopen'); stream_set_blocking($fp,0); $http = "GET /save.php / HTTP/1.1\r\n"; $http .= "Host: www.baidu.com\r\n"; $http .= "Connection: Close\r\n\r\n"; fwrite($fp,$http); fclose($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.0100.01018.68
8.3.50.0120.01122.17
8.3.40.0040.01219.23
8.3.30.0070.00719.00
8.3.20.0040.00420.54
8.3.10.0040.00420.73
8.3.00.0080.00022.11
8.2.180.0080.01616.63
8.2.170.0130.00622.96
8.2.160.0070.00722.42
8.2.150.0040.00424.18
8.2.140.0080.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00719.18
8.2.110.0060.00319.43
8.2.100.0110.00018.16
8.2.90.0040.00419.48
8.2.80.0030.00617.97
8.2.70.0000.00917.88
8.2.60.0050.00318.05
8.2.50.0000.00818.09
8.2.40.0050.00320.64
8.2.30.0000.01019.62
8.2.20.0040.00417.91
8.2.10.0050.00318.19
8.2.00.0000.00718.24
8.1.280.0100.01325.92
8.1.270.0000.00822.31
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00022.41
8.1.230.0000.01117.95
8.1.220.0000.00817.91
8.1.210.0030.00518.77
8.1.200.0030.00717.60
8.1.190.0000.00917.61
8.1.180.0090.00018.10
8.1.170.0000.00918.90
8.1.160.0040.00421.00
8.1.150.0040.00419.07
8.1.140.0040.00419.73
8.1.130.0080.00018.00
8.1.120.0080.00017.56
8.1.110.0000.00717.66
8.1.100.0020.00517.55
8.1.90.0020.00517.46
8.1.80.0040.00417.62
8.1.70.0030.00517.56
8.1.60.0040.00417.68
8.1.50.0080.00017.70
8.1.40.0030.00617.63
8.1.30.0090.00317.64
8.1.20.0050.00317.62
8.1.10.0040.00417.73
8.1.00.0030.00617.58
8.0.300.0020.00518.77
8.0.290.0000.00817.00
8.0.280.0000.00718.54
8.0.270.0000.00717.43
8.0.260.0000.00717.41
8.0.250.0060.00317.11
8.0.240.0030.00317.15
8.0.230.0000.00717.11
8.0.220.0040.00417.17
8.0.210.0040.00417.18
8.0.200.0070.00017.09
8.0.190.0030.00617.18
8.0.180.0040.00417.08
8.0.170.0000.00817.12
8.0.160.0050.00317.05
8.0.150.0060.00317.04
8.0.140.0050.00316.93
8.0.130.0000.00613.60
8.0.120.0000.00817.09
8.0.110.0030.00617.14
8.0.100.0000.00817.12
8.0.90.0040.00417.22
8.0.80.0160.00617.09
8.0.70.0030.00517.06
8.0.60.0040.00417.13
8.0.50.0000.00817.10
8.0.30.0130.00617.28
8.0.20.0160.00317.40
8.0.10.0050.00217.14
8.0.00.0040.01517.07
7.4.330.0000.00617.03
7.4.320.0040.00416.62
7.4.300.0030.00316.71
7.4.290.0040.00416.74
7.4.280.0000.00716.72
7.4.270.0030.00316.64
7.4.260.0000.00916.69
7.4.250.0030.00616.59
7.4.240.0030.00516.70
7.4.230.0040.00416.79
7.4.220.0150.00616.89
7.4.210.0060.00916.71
7.4.200.0000.00716.91
7.4.160.0100.00616.79
7.4.150.0110.00717.40
7.4.140.0140.01717.86
7.4.130.0080.01116.70
7.4.120.0090.01016.74
7.4.110.0140.00316.61
7.4.100.0150.00416.82
7.4.90.0140.00316.73
7.4.80.0100.00719.39
7.4.70.0060.01216.76
7.4.60.0150.01016.61
7.4.50.0090.00616.85
7.4.40.0150.00416.37
7.4.30.0080.01216.79
7.4.00.0080.00815.27
7.3.330.0020.00213.35
7.3.320.0000.00713.45
7.3.310.0040.00416.52
7.3.300.0000.00716.45
7.3.290.0090.00916.56
7.3.280.0120.01016.42
7.3.270.0100.01417.40
7.3.260.0110.01416.57
7.3.250.0100.00916.53
7.3.240.0150.00616.55
7.3.230.0100.01016.56
7.3.210.0130.00616.82
7.3.200.0070.01816.62
7.3.190.0100.01016.51
7.3.180.0090.00916.47
7.3.170.0060.01516.45
7.3.160.0130.01016.63
7.2.330.0130.01016.84
7.2.320.0090.00916.82
7.2.310.0120.00616.77
7.2.300.0110.00616.68
7.2.290.0080.00916.81
7.2.80.0040.00816.82
7.2.60.0030.00717.15
7.1.200.0100.00315.85
7.1.100.0030.01117.86
7.1.70.0000.00817.54
7.1.60.0150.00919.24
7.1.50.0030.01716.89
7.1.00.0100.07022.80
7.0.200.0070.00714.98
7.0.60.0330.07720.24
7.0.50.0130.04318.25
7.0.40.0100.08020.56
7.0.30.0400.04320.50
7.0.20.0400.07720.48
7.0.10.0130.08320.44
7.0.00.0100.04320.48
5.6.280.0000.07021.25
5.6.210.0070.06720.91
5.6.200.0030.06018.44
5.6.190.0130.07721.00
5.6.180.0230.05021.04
5.6.170.0230.07720.85
5.6.160.0100.03720.84
5.6.150.0070.04318.54
5.6.140.0070.05018.41
5.6.130.0170.07718.55
5.6.120.0100.05321.27
5.6.110.0070.07721.27
5.6.100.0230.05021.32
5.6.90.0070.04021.57
5.6.80.0130.06720.73
5.5.350.0100.04320.69
5.5.340.0100.08018.37
5.5.330.0070.09020.99
5.5.320.0600.05720.66
5.5.310.0300.07020.73
5.5.300.0100.05718.36
5.5.290.0000.04318.34
5.5.280.0130.04321.03
5.5.270.0070.04021.13
5.5.260.0230.07021.07
5.5.250.0000.08021.05
5.5.240.0030.07320.63

preferences:
61.3 ms | 401 KiB | 5 Q