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 /index.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.0120.00918.80
8.3.50.0070.01122.05
8.3.40.0120.00419.09
8.3.30.0110.00418.87
8.3.20.0040.00420.31
8.3.10.0040.00420.94
8.3.00.0040.00422.10
8.2.180.0180.00018.68
8.2.170.0070.01122.96
8.2.160.0100.00722.18
8.2.150.0050.00324.18
8.2.140.0100.00024.66
8.2.130.0080.00021.23
8.2.120.0040.00426.35
8.2.110.0110.00020.80
8.2.100.0090.00520.39
8.2.90.0040.00419.30
8.2.80.0030.00517.97
8.2.70.0040.00417.86
8.2.60.0090.00018.29
8.2.50.0040.00418.09
8.2.40.0040.00420.61
8.2.30.0030.00619.63
8.2.20.0040.00417.99
8.2.10.0040.00418.30
8.2.00.0040.00418.30
8.1.280.0090.00625.92
8.1.270.0000.00822.23
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0030.00722.21
8.1.230.0070.00421.01
8.1.220.0060.00317.79
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0000.00817.60
8.1.180.0080.00018.10
8.1.170.0000.00918.75
8.1.160.0080.00020.93
8.1.150.0070.00019.07
8.1.140.0040.00419.81
8.1.130.0000.00717.89
8.1.120.0040.00417.54
8.1.110.0040.00417.54
8.1.100.0000.00717.67
8.1.90.0000.00717.68
8.1.80.0000.00817.59
8.1.70.0100.00017.54
8.1.60.0040.00417.68
8.1.50.0040.00417.61
8.1.40.0000.00817.63
8.1.30.0090.00317.77
8.1.20.0030.00617.68
8.1.10.0080.00017.73
8.1.00.0000.00717.50
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0050.00218.63
8.0.270.0030.00517.35
8.0.260.0030.00317.34
8.0.250.0050.00317.13
8.0.240.0030.00317.11
8.0.230.0030.00317.16
8.0.220.0040.00417.20
8.0.210.0080.00017.07
8.0.200.0000.00717.14
8.0.190.0030.00517.22
8.0.180.0000.00717.07
8.0.170.0000.00717.07
8.0.160.0040.00417.16
8.0.150.0030.00317.07
8.0.140.0080.00017.02
8.0.130.0030.00313.62
8.0.120.0050.00317.13
8.0.110.0080.00017.00
8.0.100.0050.00317.13
8.0.90.0030.00517.06
8.0.80.0060.00917.23
8.0.70.0000.00817.10
8.0.60.0040.00417.24
8.0.50.0000.00817.09
8.0.30.0120.00717.14
8.0.20.0140.00717.48
8.0.10.0000.00817.18
8.0.00.0080.01216.90
7.4.330.0000.00517.11
7.4.320.0060.00016.63
7.4.300.0030.00316.51
7.4.290.0000.00816.74
7.4.280.0050.00216.58
7.4.270.0000.00716.52
7.4.260.0030.00916.63
7.4.250.0040.00416.70
7.4.240.0040.00416.80
7.4.230.0000.00716.63
7.4.220.0090.01116.78
7.4.210.0120.00316.77
7.4.200.0000.00716.70
7.4.160.0070.01016.75
7.4.150.0140.00417.40
7.4.140.0080.00917.86
7.4.130.0100.00916.71
7.4.120.0150.00616.65
7.4.110.0120.01216.73
7.4.100.0150.00316.71
7.4.90.0140.00316.63
7.4.80.0130.00419.39
7.4.70.0140.00316.80
7.4.60.0110.00716.83
7.4.50.0110.00416.46
7.4.40.0060.01816.69
7.4.30.0070.01116.79
7.4.00.0030.01315.10
7.3.330.0000.00513.39
7.3.320.0040.00313.49
7.3.310.0000.00716.43
7.3.300.0050.00216.33
7.3.290.0100.01016.46
7.3.280.0110.00816.55
7.3.270.0090.00917.40
7.3.260.0150.01216.45
7.3.250.0140.00816.70
7.3.240.0070.01016.79
7.3.230.0080.01116.54
7.3.210.0100.00716.72
7.3.200.0100.00716.55
7.3.190.0090.00616.65
7.3.180.0110.00716.62
7.3.170.0110.00716.66
7.3.160.0170.00416.63
7.3.10.0030.01016.71
7.3.00.0030.01317.01
7.2.330.0070.01316.65
7.2.320.0060.01216.72
7.2.310.0090.01016.67
7.2.300.0140.00416.84
7.2.290.0100.00616.81
7.2.130.0100.00317.16
7.2.120.0060.00916.96
7.2.110.0000.01016.80
7.2.100.0000.01517.20
7.2.90.0000.00917.11
7.2.80.0000.01117.18
7.2.70.0070.00717.03
7.2.60.0020.01216.74
7.2.50.0080.00417.23
7.2.40.0090.00616.90
7.2.30.0030.01016.79
7.2.20.0030.01017.05
7.2.10.0100.00316.97
7.2.00.0050.00718.38
7.1.250.0000.00915.86
7.1.200.0040.00815.82
7.1.100.0110.00318.32
7.1.70.0000.00817.53
7.1.60.0070.01119.24
7.1.50.0000.01416.97
7.1.00.0130.06722.76
7.0.200.0070.00715.15
7.0.60.0400.07320.45
7.0.50.0070.08018.17
7.0.40.0130.07720.48
7.0.30.0430.07020.59
7.0.20.0370.08020.45
7.0.10.0200.07320.49
7.0.00.0070.04320.47
5.6.280.0100.06321.20
5.6.210.0130.07321.13
5.6.200.0070.07018.44
5.6.190.0070.07321.06
5.6.180.0330.07721.09
5.6.170.0270.08320.87
5.6.160.0070.04320.81
5.6.150.0030.07718.49
5.6.140.0200.07018.65
5.6.130.0070.05718.46
5.6.120.0030.08721.25
5.6.110.0030.08021.37
5.6.100.0070.04721.41
5.6.90.0030.04021.26
5.6.80.0070.06020.73
5.5.350.0330.07720.82
5.5.340.0030.06718.53
5.5.330.0070.07020.94
5.5.320.0570.06720.67
5.5.310.0300.04020.67
5.5.300.0170.06318.31
5.5.290.0030.04318.53
5.5.280.0170.05021.15
5.5.270.0200.07321.17
5.5.260.0100.08021.27
5.5.250.0170.07321.05
5.5.240.0100.07020.57

preferences:
63.41 ms | 401 KiB | 5 Q