3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 11; $fp = fsockopen("www.baidu.com.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.com\r\n"; $http .= "Connection: Close\r\n\r\n"; fwrite($fp,$http); fclose($fp); echo 22; ?>

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.0140.00719.05
8.3.50.0100.01222.05
8.3.40.0080.00819.18
8.3.30.0000.01518.96
8.3.20.0080.00020.62
8.3.10.0040.00420.73
8.3.00.0000.00823.86
8.2.180.0180.00416.50
8.2.170.0060.01022.96
8.2.160.0140.00022.25
8.2.150.0030.00624.18
8.2.140.0030.00824.66
8.2.130.0000.00721.19
8.2.120.0080.00026.35
8.2.110.0040.00721.19
8.2.100.0000.01118.05
8.2.90.0030.00619.47
8.2.80.0030.00617.97
8.2.70.0030.00717.88
8.2.60.0000.00818.18
8.2.50.0060.00318.09
8.2.40.0000.00720.69
8.2.30.0030.00719.64
8.2.20.0030.00517.95
8.2.10.0070.00018.17
8.2.00.0040.00418.27
8.1.280.0040.01125.92
8.1.270.0120.00622.15
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00421.08
8.1.230.0000.01117.95
8.1.220.0060.00317.91
8.1.210.0060.00318.77
8.1.200.0000.01017.60
8.1.190.0080.00017.48
8.1.180.0080.00018.10
8.1.170.0030.00618.78
8.1.160.0000.00720.92
8.1.150.0060.00319.00
8.1.140.0080.00019.84
8.1.130.0030.00317.77
8.1.120.0000.00717.61
8.1.110.0040.00417.57
8.1.100.0020.00517.56
8.1.90.0020.00517.68
8.1.80.0040.00417.59
8.1.70.0030.00717.68
8.1.60.0000.00917.65
8.1.50.0080.00017.71
8.1.40.0060.00317.61
8.1.30.0100.00317.86
8.1.20.0040.00417.53
8.1.10.0040.00417.66
8.1.00.0080.00017.60
8.0.300.0040.00418.77
8.0.290.0030.00517.00
8.0.280.0070.00018.55
8.0.270.0030.00317.42
8.0.260.0000.00717.47
8.0.250.0080.00017.20
8.0.240.0000.00717.05
8.0.230.0030.00317.15
8.0.220.0050.00217.05
8.0.210.0080.00017.10
8.0.200.0030.00317.16
8.0.190.0050.00317.03
8.0.180.0000.00817.18
8.0.170.0030.00517.09
8.0.160.0070.00017.16
8.0.150.0050.00316.98
8.0.140.0000.00817.07
8.0.130.0030.00313.54
8.0.120.0000.00817.09
8.0.110.0050.00317.19
8.0.100.0000.00717.07
8.0.90.0020.00517.21
8.0.80.0140.00717.11
8.0.70.0030.00517.02
8.0.60.0040.00417.09
8.0.50.0040.00417.08
8.0.30.0090.01017.27
8.0.20.0100.00917.40
8.0.10.0050.00217.23
8.0.00.0130.00817.05
7.4.330.0020.00217.20
7.4.320.0000.00616.79
7.4.300.0000.00616.73
7.4.290.0000.00816.55
7.4.280.0040.00416.70
7.4.270.0070.00016.65
7.4.260.0000.01116.70
7.4.250.0030.00516.76
7.4.240.0040.00416.72
7.4.230.0070.00016.82
7.4.220.0060.01316.78
7.4.210.0120.00316.85
7.4.200.0040.00416.84
7.4.160.0070.01016.64
7.4.150.0200.00017.40
7.4.140.0150.00517.86
7.4.130.0090.01016.68
7.4.120.0120.00516.65
7.4.110.0100.00716.63
7.4.100.0100.01016.59
7.4.90.0070.01116.59
7.4.80.0110.01419.39
7.4.70.0170.00016.75
7.4.60.0040.01316.52
7.4.50.0030.00916.71
7.4.40.0120.00616.60
7.4.30.0100.01016.79
7.4.00.0100.00815.29
7.3.330.0000.00613.48
7.3.320.0040.00313.44
7.3.310.0070.00016.48
7.3.300.0040.00416.45
7.3.290.0090.00716.50
7.3.280.0050.01116.53
7.3.270.0120.00617.40
7.3.260.0160.00316.79
7.3.250.0130.00716.55
7.3.240.0120.00716.44
7.3.230.0090.01216.75
7.3.210.0150.00316.71
7.3.200.0060.01216.85
7.3.190.0110.00716.66
7.3.180.0120.00616.60
7.3.170.0120.01216.68
7.3.160.0120.00716.58
7.3.120.0100.00314.71
7.3.110.0030.01015.08
7.3.100.0120.00614.52
7.3.90.0070.00414.86
7.3.80.0150.00315.00
7.3.70.0080.00815.05
7.3.60.0000.01315.11
7.3.50.0040.01115.08
7.3.40.0070.00715.13
7.3.30.0070.00715.08
7.3.20.0080.00316.69
7.3.10.0030.01016.98
7.3.00.0090.00616.85
7.2.330.0090.00916.68
7.2.320.0150.00316.68
7.2.310.0120.00616.86
7.2.300.0140.00316.73
7.2.290.0040.01816.88
7.2.250.0040.01515.38
7.2.240.0160.00314.94
7.2.230.0100.00715.01
7.2.220.0040.01414.74
7.2.210.0060.01215.05
7.2.200.0030.01014.84
7.2.190.0030.01315.32
7.2.180.0070.01014.99
7.2.170.0000.01615.09
7.2.160.0000.00914.92
7.2.150.0110.00417.19
7.2.140.0100.00717.12
7.2.130.0000.01117.06
7.2.120.0070.01117.00
7.2.110.0000.00917.22
7.2.100.0120.00317.15
7.2.90.0070.01017.31
7.2.80.0030.01316.93
7.2.70.0070.00717.13
7.2.60.0060.00816.80
7.2.50.0070.01016.93
7.2.40.0030.01217.27
7.2.30.0040.01117.17
7.2.20.0000.01017.19
7.2.10.0000.01617.23
7.2.00.0080.00818.27
7.1.330.0070.00716.09
7.1.320.0140.00415.71
7.1.310.0030.01316.09
7.1.300.0030.01215.96
7.1.290.0030.01415.89
7.1.280.0090.00015.95
7.1.270.0040.00815.99
7.1.260.0090.00615.99
7.1.250.0050.00516.00
7.1.240.0000.00915.98
7.1.230.0040.00415.57
7.1.220.0080.00815.91
7.1.210.0070.00716.05
7.1.200.0060.00815.83
7.1.190.0030.01316.09
7.1.180.0030.00916.00
7.1.170.0030.01215.91
7.1.160.0110.00315.68
7.1.150.0000.01415.62
7.1.140.0040.01215.98
7.1.130.0110.00615.98
7.1.120.0030.00916.06
7.1.110.0080.00316.09
7.1.100.0060.01117.13
7.1.90.0070.00716.00
7.1.80.0090.00615.75
7.1.70.0050.00616.74
7.1.60.0050.01117.62
7.1.50.0080.00516.38
7.1.40.0120.00616.13
7.1.30.0070.01015.90
7.1.20.0070.01016.09
7.1.10.0080.00515.88
7.1.00.0020.04319.36
7.0.330.0070.00715.59
7.0.320.0110.00315.46
7.0.310.0030.00915.73
7.0.300.0070.00715.50
7.0.290.0090.00615.59
7.0.280.0090.00615.77
7.0.270.0070.00715.30
7.0.260.0060.00615.69
7.0.250.0080.00415.68
7.0.240.0000.01115.47
7.0.230.0070.01315.54
7.0.220.0000.01415.77
7.0.210.0040.01115.57
7.0.200.0050.01115.43
7.0.190.0040.01115.78
7.0.180.0060.00615.57
7.0.170.0030.00715.71
7.0.160.0090.00015.28
7.0.150.0000.01415.59
7.0.140.0060.00815.68
7.0.130.0060.00615.43
7.0.120.0090.00915.63
7.0.110.0000.01415.68
7.0.100.0080.00415.58
7.0.90.0000.01315.73
7.0.80.0090.00015.46
7.0.70.0100.00715.77
7.0.60.0170.04018.04
7.0.50.0150.03016.88
7.0.40.0120.04017.07
7.0.30.0220.01817.25
7.0.20.0140.02417.22
7.0.10.0050.04816.96
7.0.00.0080.03817.06
5.6.400.0060.00914.77
5.6.390.0030.01014.53
5.6.380.0060.00614.55
5.6.370.0090.00614.58
5.6.360.0080.00314.53
5.6.350.0090.00614.53
5.6.340.0030.01414.74
5.6.330.0000.01414.47
5.6.320.0040.01214.24
5.6.310.0060.00514.62
5.6.300.0000.00914.53
5.6.290.0140.00314.82
5.6.280.0070.03817.96
5.6.270.0060.01314.76
5.6.260.0000.01114.70
5.6.250.0080.00414.81
5.6.240.0040.01114.46
5.6.230.0070.01114.68
5.6.220.0040.01114.60
5.6.210.0050.02317.63
5.6.200.0050.02516.53
5.6.190.0070.03417.69
5.6.180.0160.02417.70
5.6.170.0150.04117.74
5.6.160.0080.02117.73
5.6.150.0030.02516.49
5.6.140.0050.03016.29
5.6.130.0080.04216.53
5.6.120.0060.04317.92
5.6.110.0140.02617.96
5.6.100.0030.04817.93
5.6.90.0080.04818.05
5.6.80.0100.04217.50
5.6.70.0080.00414.63
5.6.60.0100.00714.53
5.6.50.0060.01014.47
5.6.40.0150.00014.36
5.6.30.0090.00314.20
5.6.20.0090.00314.39
5.6.10.0040.01114.32
5.6.00.0060.00614.44
5.5.380.0030.01214.46
5.5.370.0110.00414.24
5.5.360.0060.00614.48
5.5.350.0220.03717.53
5.5.340.0070.02716.28
5.5.330.0040.03417.41
5.5.320.0130.02517.52
5.5.310.0200.04217.43
5.5.300.0060.02316.32
5.5.290.0070.04016.23
5.5.280.0060.04717.85
5.5.270.0050.04817.77
5.5.260.0030.05017.88
5.5.250.0100.04017.71
5.5.240.0140.04217.50
5.5.230.0060.00614.11
5.5.220.0000.01514.44
5.5.210.0090.00613.96
5.5.200.0070.00414.42
5.5.190.0050.00814.14
5.5.180.0130.00314.22
5.5.170.0120.00314.34
5.5.160.0000.01414.38
5.5.150.0070.00714.57
5.5.140.0070.00714.06
5.5.130.0080.00414.29
5.5.120.0000.01214.52
5.5.110.0000.01414.21
5.5.100.0040.01114.34
5.5.90.0030.00913.86
5.5.80.0000.01314.44
5.5.70.0000.01514.39
5.5.60.0090.00314.11
5.5.50.0070.00714.26
5.5.40.0070.01114.53
5.5.30.0110.00814.53
5.5.20.0070.01114.54
5.5.10.0040.01514.60
5.5.00.0100.01014.48

preferences:
65.73 ms | 401 KiB | 5 Q