3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 2 ** 20; $idxs = range(1, $max-1); print_r($max); print_r($max-1);

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.0250.00932.23
8.3.50.0290.00934.07
8.3.40.0300.00334.54
8.3.30.0180.01134.51
8.3.20.0100.00536.22
8.3.10.0080.00439.52
8.3.00.0070.00335.76
8.2.180.0200.00734.40
8.2.170.0210.00734.68
8.2.160.0230.01336.37
8.2.150.0120.00334.63
8.2.140.0130.00038.16
8.2.130.0060.00637.07
8.2.120.0070.00335.67
8.2.110.0130.00736.39
8.2.100.0210.00333.80
8.2.90.0070.00735.09
8.2.80.0100.00733.38
8.2.70.0100.00733.50
8.2.60.0120.00633.40
8.2.50.0100.00733.50
8.2.40.0130.00936.52
8.2.30.0060.01036.52
8.2.20.0060.00933.36
8.2.10.0070.00733.90
8.2.00.0100.00333.84
8.1.280.0490.01648.25
8.1.270.0060.00920.24
8.1.260.0080.00028.09
8.1.250.0110.00428.09
8.1.240.0080.00022.19
8.1.230.0000.01117.71
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00317.00
8.1.180.0030.00618.10
8.1.170.0030.00618.45
8.1.160.0000.00820.68
8.1.150.0050.00218.82
8.1.140.0040.00419.42
8.1.130.0070.00017.56
8.1.120.0000.00717.41
8.1.110.0040.00417.41
8.1.100.0040.00417.35
8.1.90.0030.00617.45
8.1.80.0000.00917.44
8.1.70.0040.00417.37
8.1.60.0040.00417.49
8.1.50.0000.00917.47
8.1.40.0080.00017.34
8.1.30.0000.00817.55
8.1.20.0040.00417.52
8.1.10.0190.00749.37
8.1.00.0170.01049.41
8.0.300.0210.00048.66
8.0.290.0070.01748.63
8.0.280.0200.00050.16
8.0.270.0090.00949.07
8.0.260.0110.00748.97
8.0.250.0150.00448.83
8.0.240.0110.00748.67
8.0.230.0190.01048.62
8.0.220.0230.00648.71
8.0.210.0220.00448.76
8.0.200.0090.00948.64
8.0.190.0310.00348.66
8.0.180.0190.00748.63
8.0.170.0220.00448.80
8.0.160.0140.00748.65
8.0.150.0160.01348.64
8.0.140.0200.00748.70
8.0.130.0140.01145.25
8.0.120.0150.00648.70
8.0.110.0130.00748.71
8.0.100.0130.00648.71
8.0.90.0120.00648.64
8.0.80.0360.01048.77
8.0.70.0060.01248.55
8.0.60.0100.01048.50
8.0.50.0140.00448.52
8.0.30.0340.01348.91
8.0.20.0410.01748.98
8.0.10.0160.00348.77
8.0.00.0370.01648.46
7.4.330.0030.00648.81
7.4.320.0100.00748.38
7.4.300.0240.00448.26
7.4.290.0100.01048.28
7.4.280.0230.01048.26
7.4.270.0140.01148.36
7.4.260.0180.00748.18
7.4.250.0170.00348.21
7.4.240.0130.00748.33
7.4.230.0140.00548.20
7.4.220.0610.01748.21
7.4.210.0260.01748.40
7.4.200.0180.00048.10
7.4.160.0370.00948.23
7.4.150.0400.01248.28
7.4.140.0440.01948.34
7.4.130.0340.02448.35
7.4.120.0430.01048.18
7.4.110.0400.01048.12
7.4.100.0440.01648.19
7.4.90.0390.01248.34
7.4.80.0370.01648.34
7.4.70.0510.00948.33
7.4.60.0460.00348.16
7.4.50.0250.00748.30
7.4.40.0170.03147.93
7.4.30.0490.02148.33
7.4.00.0270.00746.59
7.3.330.0310.00344.89
7.3.320.0110.01145.05
7.3.310.0170.00348.13
7.3.300.0120.00648.11
7.3.290.0170.00347.91
7.3.280.0350.00948.07
7.3.270.0330.01848.03
7.3.260.0350.01548.44
7.3.250.0370.01848.04
7.3.240.0410.00848.04
7.3.230.0420.01848.45
7.3.210.0400.00948.25
7.3.200.0400.01348.28
7.3.190.0310.01948.29
7.3.180.0310.01948.29
7.3.170.0270.02348.23
7.3.160.0420.01948.02
7.2.330.0330.02748.52
7.2.320.0420.01148.56
7.2.310.0320.02248.36
7.2.300.0400.01548.26
7.2.290.0370.02048.55
7.2.60.1570.02048.79
7.2.00.0310.02051.17
7.1.200.0270.01047.56
7.1.100.4250.00746.09
7.1.70.0070.01049.11
7.1.60.0140.03249.13
7.1.50.0070.03048.94
7.1.00.0170.07754.42
7.0.201.1070.01348.43
7.0.60.0270.08751.87
7.0.50.0170.05749.69
7.0.40.0300.08051.93
7.0.30.0570.04751.82
7.0.20.0900.08051.85
7.0.10.0300.08351.85
7.0.00.0230.05751.80
5.6.280.0200.12085.74
5.6.210.0270.08085.34
5.6.200.0170.07082.71
5.6.190.0200.10385.04
5.6.180.0330.07385.03
5.6.170.0500.08785.04
5.6.160.0330.12384.87
5.6.150.0270.13382.82
5.6.140.0270.07782.76
5.6.130.0330.06382.79
5.6.120.0300.12085.61
5.6.110.0500.10385.59
5.6.100.0370.10385.55
5.6.90.0300.12085.73
5.6.80.0230.10085.17
5.5.350.0200.05020.32
5.5.340.0030.08717.95
5.5.330.0100.07720.47
5.5.320.0230.08020.35
5.5.310.0370.03720.34
5.5.300.0030.03717.96
5.5.290.0070.07717.95
5.5.280.0070.07020.77
5.5.270.0030.04020.63
5.5.260.0170.07320.95
5.5.250.0070.04320.46
5.5.240.0300.07320.18

preferences:
47.08 ms | 401 KiB | 5 Q