3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $fp = fsockopen("127.0.0.1", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.example.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } */ false || ($s_test = $s_result = 'fail' && $s_jc = 'la lia');

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.00616.50
8.3.50.0100.00621.09
8.3.40.0070.01118.97
8.3.30.0070.00718.96
8.3.20.0060.00320.12
8.3.10.0040.00421.92
8.3.00.0000.00822.40
8.2.180.0110.00318.41
8.2.170.0150.00322.96
8.2.160.0110.00419.08
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0060.00317.80
8.2.110.0070.00420.38
8.2.100.0090.00319.33
8.2.90.0040.00419.20
8.2.80.0000.00719.12
8.2.70.0040.00417.50
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0000.00717.98
8.2.20.0070.00017.52
8.2.10.0040.00417.80
8.2.00.0070.00317.64
8.1.280.0170.00325.92
8.1.270.0060.00318.57
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00024.01
8.1.230.0030.00918.88
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.53
8.1.180.0050.00218.74
8.1.170.0040.00418.50
8.1.160.0000.00722.18
8.1.150.0000.00718.50
8.1.140.0040.00417.31
8.1.130.0040.00417.86
8.1.120.0030.00317.36
8.1.110.0040.00417.47
8.1.100.0040.00417.42
8.1.90.0040.00417.34
8.1.80.0070.00017.30
8.1.70.0000.00717.35
8.1.60.0060.00317.56
8.1.50.0000.00717.47
8.1.40.0000.00717.39
8.1.30.0000.00717.66
8.1.20.0050.00317.68
8.1.10.0040.00417.46
8.1.00.0030.00517.23
8.0.300.0030.00518.77
8.0.290.0060.00317.30
8.0.280.0060.00018.41
8.0.270.0000.00717.25
8.0.260.0040.00416.69
8.0.250.0070.00016.92
8.0.240.0000.00816.94
8.0.230.0000.00816.93
8.0.220.0070.00016.72
8.0.210.0030.00316.77
8.0.200.0060.00016.82
8.0.190.0060.00316.95
8.0.180.0070.00016.85
8.0.170.0040.00416.91
8.0.160.0050.00316.74
8.0.150.0030.00316.88
8.0.140.0040.00416.74
8.0.130.0060.00013.26
8.0.120.0000.00716.91
8.0.110.0030.00516.88
8.0.100.0030.00316.83
8.0.90.0040.00416.94
8.0.80.0060.00916.75
8.0.70.0040.00416.83
8.0.60.0070.00016.95
8.0.50.0000.00716.77
8.0.30.0150.00516.95
8.0.20.0130.00617.40
8.0.10.0000.00716.82
8.0.00.0120.00616.74
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0000.00716.64
7.4.290.0030.00616.55
7.4.280.0030.00316.63
7.4.270.0040.00416.52
7.4.260.0000.00816.35
7.4.250.0030.00316.52
7.4.240.0030.00516.53
7.4.230.0000.00716.59
7.4.220.0120.00616.66
7.4.210.0060.00916.49
7.4.200.0040.00416.48
7.4.190.0000.00716.52
7.4.160.0100.00616.23
7.4.150.0150.00317.40
7.4.140.0090.00917.86
7.4.130.0050.01116.36
7.4.120.0120.00416.54
7.4.110.0070.01016.52
7.4.100.0070.01416.51
7.4.90.0160.00016.53
7.4.80.0130.00619.39
7.4.70.0100.00716.30
7.4.60.0130.00616.48
7.4.50.0050.00016.60
7.4.40.0070.00722.77
7.4.30.0170.00016.43
7.4.00.0030.01414.95
7.3.330.0050.00013.05
7.3.320.0060.00012.96
7.3.310.0030.00316.27
7.3.300.0060.00016.04
7.3.290.0070.00716.16
7.3.280.0110.00816.10
7.3.270.0090.00617.40
7.3.260.0070.01016.36
7.3.250.0130.00316.33
7.3.240.0030.01416.52
7.3.230.0110.00716.46
7.3.210.0190.03116.39
7.3.200.0120.00319.39
7.3.190.0110.00716.21
7.3.180.0080.00816.19
7.3.170.0130.00316.50
7.3.160.0120.00716.25
7.3.120.0100.00714.91
7.3.10.0070.00416.26
7.3.00.0060.00616.30
7.2.330.0030.01316.69
7.2.320.0160.00716.39
7.2.310.0030.02016.34
7.2.300.0090.00616.40
7.2.290.0090.00616.33
7.2.130.0030.00716.49
7.2.120.0000.01216.71
7.2.110.0040.00816.49
7.2.100.0080.00816.71
7.2.90.0060.00616.48
7.2.80.0060.00816.52
7.2.70.0070.00716.59
7.2.60.0000.01516.80
7.2.50.0030.00516.68
7.2.40.0070.00716.59
7.2.30.0070.00716.61
7.2.20.0030.00716.75
7.2.10.0120.00316.70
7.2.00.0050.00718.14
7.1.250.0060.00615.32
7.1.200.0030.01015.46
7.1.100.0000.01117.98
7.1.70.0000.00716.84
7.1.60.0100.01019.82
7.1.50.0120.01216.95
7.1.00.0000.03722.43
7.0.200.0000.00716.61
7.0.140.0070.06722.21
7.0.60.0100.07720.00
7.0.50.0070.04317.89
7.0.40.0030.08020.04
7.0.30.0300.05720.00
7.0.20.0230.04020.16
7.0.10.0200.08320.09
7.0.00.0100.08020.00
5.6.280.0030.07320.88
5.6.210.0030.06020.45
5.6.200.0170.07018.23
5.6.190.0070.04720.56
5.6.180.3730.04320.60
5.6.170.0270.03720.51
5.6.160.0100.05720.48
5.6.150.0070.06718.09
5.6.140.0070.08018.21
5.6.130.0030.08318.12
5.6.120.0030.08720.98
5.6.110.0070.08721.13
5.6.100.0100.08021.00
5.6.90.0030.08720.96
5.6.80.0100.06720.38
5.6.70.0300.06020.39
5.5.350.0100.04720.46
5.5.340.0000.04018.00
5.5.330.0100.08020.25
5.5.320.0200.04320.21
5.5.310.0470.06720.29
5.5.300.0030.04018.00
5.5.290.0100.04717.98
5.5.280.0200.05020.75
5.5.270.0070.04020.88
5.5.260.0070.07320.94
5.5.250.0130.07020.79
5.5.240.0100.08020.18
5.4.450.0070.05719.50
5.4.440.0670.06319.54
5.4.430.0730.05719.25
5.4.420.0030.06019.27
5.4.410.0330.05719.50
5.4.400.0370.06318.50
5.4.390.0470.04718.70
5.4.380.0270.05718.69
5.4.370.0230.04318.71
5.4.360.0300.06018.65
5.4.350.0110.04911.97
5.4.340.0080.03511.97
5.4.320.0060.03612.45
5.4.310.0070.04012.45
5.4.300.0080.03912.45
5.4.290.0080.04412.45
5.4.280.0100.03812.34
5.4.270.0070.03512.34
5.4.260.0050.04512.35
5.4.250.0130.07018.80
5.4.240.0070.05718.98
5.4.230.0100.05318.98
5.4.220.0000.06018.61
5.4.210.0230.06018.98
5.4.200.0130.05718.69
5.4.190.0030.05718.76
5.4.180.0130.06718.90
5.4.170.0070.05018.98
5.4.160.0100.06718.98
5.4.150.0100.07718.89
5.4.140.0070.07316.28
5.4.130.0130.04016.45
5.4.120.0000.05316.45
5.4.110.0000.07716.42
5.4.100.0130.04016.30
5.4.90.0070.04716.45
5.4.80.0030.05016.46
5.4.70.0100.06016.43
5.4.60.0030.07316.19
5.4.50.0030.06016.17
5.4.40.0030.05316.25
5.4.30.0170.05716.25
5.4.20.0030.07716.28
5.4.10.0100.06316.30
5.4.00.0030.05015.70
5.3.290.0040.04012.80
5.3.280.0000.05714.74
5.3.270.0100.07714.52
5.3.260.0000.05714.63
5.3.250.0070.07014.47
5.3.240.0100.04714.52
5.3.230.0030.05314.61
5.3.220.0070.05014.71
5.3.210.0070.04714.26
5.3.200.0070.04714.61
5.3.190.0100.05014.58
5.3.180.0100.05714.62
5.3.170.0100.05014.44
5.3.160.0170.06014.57
5.3.150.0030.08014.42
5.3.140.0000.05714.48
5.3.130.0100.07314.56
5.3.120.0070.05014.31
5.3.110.0100.06714.56
5.3.100.0070.07014.13
5.3.90.0100.06014.11
5.3.80.0070.05013.71
5.3.70.0100.05014.03
5.3.60.0070.05013.85
5.3.50.0000.05313.83
5.3.40.0030.05014.04
5.3.30.0070.04713.74
5.3.20.0070.04713.70
5.3.10.0100.04313.49
5.3.00.0070.04713.79
5.2.170.0070.05011.07
5.2.160.0000.04311.29
5.2.150.0030.05311.17
5.2.140.0100.03711.04
5.2.130.0000.04311.10
5.2.120.0100.03710.93
5.2.110.0000.04310.86
5.2.100.0100.03311.10
5.2.90.0100.03311.10
5.2.80.0000.04311.08
5.2.70.0130.04711.23
5.2.60.0000.04310.89
5.2.50.0070.04011.11
5.2.40.0000.04011.14
5.2.30.0000.05710.98
5.2.20.0130.04011.06
5.2.10.0030.04010.93
5.2.00.0100.03310.60
5.1.60.0030.03310.04
5.1.50.0030.0379.84
5.1.40.0070.0379.89
5.1.30.0030.04310.16
5.1.20.0030.03710.42
5.1.10.0070.04310.15
5.1.00.0030.04310.15
5.0.50.0000.0408.56
5.0.40.0030.0278.25
5.0.30.0030.0438.27
5.0.20.0000.0308.16
5.0.10.0030.0338.13
5.0.00.0070.0378.26
4.4.90.0000.0206.97
4.4.80.0070.0176.97
4.4.70.0030.0206.97
4.4.60.0000.0276.97
4.4.50.0000.0236.97
4.4.40.0070.0336.97
4.4.30.0030.0206.97
4.4.20.0000.0276.97
4.4.10.0100.0176.97
4.4.00.0130.0336.97
4.3.110.0030.0276.97
4.3.100.0070.0176.97
4.3.90.0070.0176.97
4.3.80.0030.0436.97
4.3.70.0070.0176.97
4.3.60.0000.0206.97
4.3.50.0000.0236.97
4.3.40.0000.0376.97
4.3.30.0000.0236.97
4.3.20.0000.0306.97
4.3.10.0000.0276.97
4.3.00.0130.0207.61

preferences:
39.55 ms | 401 KiB | 5 Q