3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array();for ($i = 0; $i < 1000000; $i++) { $array[] = $i;}for ($j = 0; $j < 1000000; $j+=1000) { if (in_array($j,$array)) { $a = 'test'; }}

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.0130.86636.49
8.3.50.0420.91533.56
8.3.40.0530.90435.45
8.3.30.0270.90135.91
8.3.20.0170.49037.23
8.3.10.0100.49039.65
8.3.00.0270.54134.95
8.2.180.0300.88133.71
8.2.170.0470.92135.92
8.2.160.0330.89336.14
8.2.150.0100.49136.23
8.2.140.0170.49236.04
8.2.130.0130.49838.16
8.2.120.0070.49040.09
8.2.110.0230.49037.46
8.2.100.0270.59035.16
8.2.90.0100.58036.21
8.2.80.0130.57234.69
8.2.70.0170.57634.69
8.2.60.0170.70335.00
8.2.50.0200.58434.56
8.2.40.0130.56935.92
8.2.30.0100.58835.07
8.2.20.0130.57334.71
8.2.10.0070.57235.09
8.2.00.0170.59034.54
8.1.280.0630.67749.89
8.1.270.0130.00739.34
8.1.260.0130.01337.42
8.1.250.0190.00639.12
8.1.240.0040.01641.95
8.1.230.0260.01036.02
8.1.220.0160.00634.75
8.1.210.0130.01034.38
8.1.200.0130.01334.20
8.1.190.0180.00734.32
8.1.180.0100.01334.60
8.1.170.0220.00335.67
8.1.160.0190.00339.06
8.1.150.0110.01435.84
8.1.140.0140.01434.41
8.1.130.0100.01434.93
8.1.120.0110.01134.44
8.1.110.0100.01434.37
8.1.100.0110.01134.41
8.1.90.0070.01534.40
8.1.80.0160.01034.36
8.1.70.0130.01334.35
8.1.60.0110.01834.60
8.1.50.0160.01334.55
8.1.40.0130.01734.53
8.1.30.0170.01434.61
8.1.20.0000.02634.51
8.1.10.0201.03950.46
8.1.00.0201.03250.34
8.0.300.0231.04950.21
8.0.290.0201.03249.53
8.0.280.0201.00851.19
8.0.270.0301.02750.13
8.0.260.0241.03650.13
8.0.250.0201.01349.78
8.0.240.0201.02949.82
8.0.230.0301.05549.69
8.0.220.0201.03749.74
8.0.210.0201.05049.72
8.0.200.0231.03149.71
8.0.190.0471.13049.80
8.0.180.0231.04449.80
8.0.170.0231.10749.70
8.0.160.0131.04549.81
8.0.150.0231.04449.73
8.0.140.0501.03749.72
8.0.130.0271.04246.30
8.0.120.0371.11749.75
8.0.110.0331.05049.67
8.0.100.0171.08649.64
8.0.90.0271.06649.80
8.0.80.0821.92249.75
8.0.70.0201.06449.66
8.0.60.0171.05149.60
8.0.50.0171.03849.67
8.0.30.0571.92449.83
8.0.20.0791.91749.80
8.0.10.0631.14349.86
8.0.00.0631.95149.55
7.4.330.0231.02646.12
7.4.320.0331.06849.31
7.4.300.0171.04849.36
7.4.290.0301.12349.32
7.4.280.0461.32049.20
7.4.270.0231.07549.46
7.4.260.0561.25449.42
7.4.250.0171.24549.23
7.4.240.0251.07449.43
7.4.230.0171.10549.40
7.4.220.0751.92649.51
7.4.210.0521.94649.30
7.4.200.0301.19149.17
7.4.160.1051.84049.37
7.4.150.0721.93349.40
7.4.140.0621.94349.34
7.4.130.0751.88549.41
7.4.120.0531.86549.35
7.4.110.0752.20049.40
7.4.100.0561.83749.46
7.4.90.0531.93549.36
7.4.80.0891.99349.33
7.4.70.0711.95349.54
7.4.60.0991.31649.19
7.4.50.0100.73049.21
7.4.40.0822.14149.32
7.4.30.0691.80949.28
7.4.00.0451.78347.40
7.3.330.0561.12646.11
7.3.320.0301.26846.11
7.3.310.0171.10549.09
7.3.300.0201.06948.98
7.3.290.0531.93249.20
7.3.280.0551.94849.12
7.3.270.0781.84949.25
7.3.260.0621.93749.15
7.3.250.0691.86749.49
7.3.240.0531.94049.10
7.3.230.0651.98849.33
7.3.210.0651.89349.31
7.3.200.0822.35649.36
7.3.190.0631.93449.20
7.3.180.0631.84949.27
7.3.170.0762.12949.23
7.3.160.0662.00449.25
7.3.120.0432.45347.77
7.3.110.0402.45947.88
7.3.100.0332.43147.88
7.3.90.0402.42147.89
7.3.80.0562.43547.82
7.3.70.0332.36047.51
7.3.60.0302.39947.61
7.3.50.0762.28547.68
7.3.40.0402.45347.50
7.3.30.0302.46747.64
7.3.20.2252.25848.63
7.3.10.0882.39948.25
7.3.00.0201.00550.68
7.2.330.0561.86549.60
7.2.320.0621.96749.43
7.2.310.0852.20449.52
7.2.300.0731.84649.24
7.2.290.0592.06549.47
7.2.250.0752.38147.47
7.2.240.0472.45348.12
7.2.230.0462.45047.91
7.2.220.0472.41648.19
7.2.210.0362.45547.79
7.2.200.0472.42847.84
7.2.190.0432.43847.80
7.2.180.0432.39947.89
7.2.170.0392.41547.78
7.2.80.1031.07250.53
7.2.60.1471.11450.82
7.1.330.0952.38949.47
7.1.320.0302.44249.54
7.1.310.0202.47049.51
7.1.300.0682.27049.40
7.1.290.0792.40249.37
7.1.280.0332.41649.68
7.1.270.0562.41249.71
7.1.261.3700.93746.95
7.1.200.0501.16249.45
7.1.70.1161.10451.09
7.1.60.0131.17151.43
7.1.50.0101.08350.85
7.1.00.0101.12056.38
7.0.200.1861.21050.91
7.0.140.0031.12756.08
7.0.100.5801.02052.95
7.0.90.5031.05352.84
7.0.80.3971.03052.87
7.0.70.4531.22752.93
7.0.60.5201.05752.86
7.0.50.5801.14053.23
7.0.40.5101.18752.10
7.0.30.5171.12051.88
7.0.20.5271.10051.92
7.0.10.4171.05351.98
7.0.00.5001.10352.05
5.6.280.0270.15785.54
5.6.250.0300.14785.21
5.6.240.0270.17385.18
5.6.230.0330.13085.20
5.6.220.0300.17085.16
5.6.210.0100.12085.22
5.6.200.0400.15385.63
5.6.190.0400.18385.63
5.6.180.0470.15385.52
5.6.170.0300.14385.64
5.6.160.0500.15785.67
5.6.150.0300.16785.75
5.6.140.0430.13785.65
5.6.130.0200.14785.70
5.6.120.0230.17385.70
5.6.110.0470.16785.64
5.6.100.0300.16085.58
5.6.90.0230.19085.60
5.6.80.0300.18384.99
5.6.70.0300.19085.09
5.6.60.0270.13085.13
5.6.50.0430.17385.13
5.6.40.0370.18784.99
5.6.30.0200.19385.04
5.6.20.0470.18085.04
5.6.10.0470.18385.09
5.6.00.0430.14084.92
5.5.380.0230.13384.93
5.5.370.0130.10784.94
5.5.360.0200.10384.91
5.5.350.0230.10784.89
5.5.340.0430.17385.48
5.5.330.0170.11085.52
5.5.320.0370.17785.46
5.5.310.0470.14385.46
5.5.300.0200.15385.49
5.5.290.0370.18385.39
5.5.280.0530.18085.34
5.5.270.0300.19785.35
5.5.260.0270.12085.22
5.5.250.0270.19085.29
5.5.240.0400.17784.71
5.5.230.0330.18384.76
5.5.220.0270.19084.88
5.5.210.0200.21384.78
5.5.200.0270.17784.67
5.5.190.0500.15784.58
5.5.180.0470.14084.74
5.5.160.0530.12784.67
5.5.150.0430.18784.73
5.5.140.0400.14384.67
5.5.130.0230.19384.81
5.5.120.0330.15384.66
5.5.110.0230.18784.66
5.5.100.0530.17084.67
5.5.90.0430.18084.74
5.5.80.0430.17784.57
5.5.70.0500.17384.64
5.5.60.0200.11384.73
5.5.50.0370.10784.59
5.5.40.0200.10084.67
5.5.30.0270.11784.73
5.5.20.0400.13784.64
5.5.10.0330.11784.55
5.5.00.0200.11084.68
5.4.450.0300.15383.91
5.4.440.0370.15083.94
5.4.430.0300.15383.78
5.4.420.0300.13784.04
5.4.410.0330.14783.72
5.4.400.0300.13383.63
5.4.390.0430.16083.52
5.4.380.0230.17083.69
5.4.370.0200.16783.57
5.4.360.0170.15383.44
5.4.350.0330.09083.40
5.4.340.0330.12783.52
5.4.320.0170.13783.52
5.4.310.0330.14383.53
5.4.300.0200.14783.52
5.4.290.0300.12083.46
5.4.280.0330.16783.71
5.4.270.0270.14383.60
5.4.260.0430.13783.61
5.4.250.0170.15783.46
5.4.240.0330.16783.49
5.4.230.0300.16383.64
5.4.220.0300.11083.63
5.4.210.0270.10083.71
5.4.200.0230.10383.71
5.4.190.0300.10383.67
5.4.180.0300.10083.52
5.4.170.0470.09383.52
5.4.160.0370.09383.64
5.4.150.0330.11083.52
5.4.140.0230.12080.95
5.4.130.0370.08780.92
5.4.120.0230.10080.87
5.4.110.0230.10080.83
5.4.100.0200.10080.82
5.4.90.0330.09080.90
5.4.80.0400.15080.94
5.4.70.0200.16380.84
5.4.60.0330.13780.86
5.4.50.0430.13780.82
5.4.40.0300.14080.80
5.4.30.0400.12081.03
5.4.20.0200.14380.86
5.4.10.0370.12380.98
5.4.00.0400.13780.15
5.3.290.0300.14077.85
5.3.280.0330.17077.60
5.3.270.0270.10377.73
5.3.260.0270.10077.75
5.3.250.0130.10077.69
5.3.240.0170.11377.71
5.3.230.0230.11777.77
5.3.220.0200.11077.74
5.3.210.0200.11777.59
5.3.200.0200.11377.73
5.3.190.0300.16777.58
5.3.180.0170.10777.68
5.3.170.0130.17777.54
5.3.160.0270.14777.74
5.3.150.0200.11077.67
5.3.140.0230.18077.60
5.3.130.0600.13777.68
5.3.120.0270.15777.58
5.3.110.0330.13377.59
5.3.100.0370.15077.22
5.3.90.0430.15777.05
5.3.80.0300.14777.08
5.3.70.0400.14377.13
5.3.60.0130.16777.07
5.3.50.0230.13377.07
5.3.40.0330.17377.00
5.3.30.0170.17376.93
5.3.20.0230.16076.80
5.3.10.0470.14376.67
5.3.00.0300.13076.75
5.2.170.0200.17374.79
5.2.160.0230.10774.76
5.2.150.0270.17774.81
5.2.140.0200.15074.70
5.2.130.0270.16074.64
5.2.120.0170.14774.79
5.2.110.0270.15374.77
5.2.100.0370.15074.61
5.2.90.0200.16074.71
5.2.80.0300.15074.73
5.2.70.0530.13374.70
5.2.60.0200.17374.66
5.2.50.0230.17074.50
5.2.40.0430.19074.55
5.2.30.0370.17374.61
5.2.20.0170.21074.66
5.2.10.0270.14374.62
5.2.00.0432.463140.52
5.1.60.0502.457185.73
5.1.50.0572.450185.67
5.1.40.0672.363185.70
5.1.30.0332.420186.00
5.1.20.0502.420186.07
5.1.10.0802.007185.69
5.1.00.0532.420185.69
5.0.50.0602.387184.09
5.0.40.0502.400184.00
5.0.30.0432.423183.91
5.0.20.0532.437183.91
5.0.10.0702.397183.91
5.0.00.0532.407183.80
4.4.90.0672.440181.62
4.4.80.0302.477181.52
4.4.70.0502.457181.59
4.4.60.0402.467181.58
4.4.50.0602.447181.60
4.4.40.0572.450181.52
4.4.30.0432.463181.50
4.4.20.0572.413181.62
4.4.10.0472.403181.63
4.4.00.0472.453181.54
4.3.110.0602.413181.44
4.3.100.0572.407181.54
4.3.90.0432.420181.46
4.3.80.0472.423181.53
4.3.70.0532.447181.41
4.3.60.0472.440181.53
4.3.50.0732.393181.43
4.3.40.0402.417181.38
4.3.30.0702.393180.30
4.3.20.0602.410180.25
4.3.10.0632.283180.16
4.3.00.0602.407180.23

preferences:
40.2 ms | 401 KiB | 5 Q