3v4l.org

run code in 300+ PHP versions simultaneously
<?php $heading = 'h2'; while (true) { $test []= $heading; $test []= $test; echo ++$heading; }

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.70.0500.02358.75
8.3.60.0810.01360.24
8.3.50.0800.01560.22
8.3.40.0380.01338.79
8.3.30.0360.01339.34
8.3.20.0140.00740.50
8.3.10.0130.01342.15
8.3.00.0210.00737.88
8.2.180.0530.02758.50
8.2.170.0370.00339.22
8.2.160.0330.01040.69
8.2.150.0180.00639.14
8.2.140.0160.01339.16
8.2.130.0170.00740.69
8.2.120.0180.00740.11
8.2.110.0160.01340.32
8.2.100.0290.00338.03
8.2.90.0180.00439.30
8.2.80.0100.01037.75
8.2.70.0120.00937.75
8.2.60.0250.00038.18
8.2.50.0220.00737.75
8.2.40.0100.01438.41
8.2.30.0170.01437.98
8.2.20.0170.00737.78
8.2.10.0130.00637.98
8.2.00.0160.00737.59
8.1.280.0760.00760.34
8.1.270.0140.00345.88
8.1.260.0220.00939.75
8.1.250.0190.00341.27
8.1.240.0270.00040.93
8.1.230.0250.00338.27
8.1.220.0030.01436.91
8.1.210.0130.00636.73
8.1.200.0040.01836.60
8.1.190.0190.00036.48
8.1.180.0110.00736.50
8.1.170.0120.00837.84
8.1.160.0040.01441.25
8.1.150.0130.01038.05
8.1.140.0140.00736.75
8.1.130.0090.00637.13
8.1.120.0120.00636.75
8.1.110.0140.00336.73
8.1.100.0030.01636.64
8.1.90.0140.00736.57
8.1.80.0140.00736.66
8.1.70.0130.00736.64
8.1.60.0160.00636.84
8.1.50.0120.00936.74
8.1.40.0170.00736.75
8.1.30.0210.00736.74
8.1.20.0070.01036.80
8.1.10.0190.01659.94
8.1.00.0330.01059.96
8.0.300.0230.00759.85
8.0.290.0170.01459.25
8.0.280.0290.00360.75
8.0.270.0240.01059.74
8.0.260.0170.01759.70
8.0.250.0340.00359.32
8.0.240.0320.01059.34
8.0.230.0260.01059.29
8.0.220.0330.00759.30
8.0.210.0290.00659.30
8.0.200.0300.00759.33
8.0.190.0380.00659.32
8.0.180.0360.00359.29
8.0.170.0210.01159.21
8.0.160.0360.00359.30
8.0.150.0250.01459.27
8.0.140.0420.00059.06
8.0.130.0520.01094.77
8.0.120.0180.01459.25
8.0.110.0210.01159.23
8.0.100.0230.01059.21
8.0.90.0230.00759.28
8.0.80.0470.01759.26
8.0.70.0170.01059.27
8.0.60.0270.00059.14
8.0.50.0160.01659.18
8.0.30.0460.03359.47
8.0.20.0530.02959.38
8.0.10.0200.01359.34
8.0.00.0680.02059.25
7.4.330.0260.00757.11
7.4.320.0270.00758.79
7.4.300.0380.00758.73
7.4.290.0230.01658.77
7.4.280.0320.00658.87
7.4.270.0230.00858.75
7.4.260.0360.00358.65
7.4.250.0220.01158.75
7.4.240.0260.00658.80
7.4.230.0210.01058.91
7.4.220.0960.02658.80
7.4.210.0490.01458.87
7.4.200.0270.00758.64
7.4.160.0430.03458.95
7.4.150.0590.02158.80
7.4.140.0570.04058.96
7.4.130.0560.02958.72
7.4.120.0580.02558.87
7.4.110.0490.04658.95
7.4.100.0470.03758.78
7.4.90.0600.02959.01
7.4.80.0410.04558.88
7.4.70.0640.03358.85
7.4.60.0570.03058.90
7.4.50.0120.00658.98
7.4.40.0510.02859.00
7.4.30.0580.02658.94
7.4.00.0240.02757.25
7.3.330.0540.02094.54
7.3.320.0510.01394.58
7.3.310.0260.00758.77
7.3.300.0200.01058.73
7.3.290.0520.02058.63
7.3.280.0590.02458.65
7.3.270.0470.03358.70
7.3.260.0740.01459.00
7.3.250.0550.02958.73
7.3.240.0670.02458.64
7.3.230.0610.02058.83
7.3.210.0680.02158.82
7.3.200.0560.03858.57
7.3.190.0810.02358.72
7.3.180.0530.03158.84
7.3.170.0550.04058.69
7.3.160.0530.02258.71
7.2.330.0880.03158.75
7.2.320.0540.02059.09
7.2.310.0500.02959.11
7.2.300.0430.04059.02
7.2.290.0710.04758.79
7.2.60.2050.01078.89
7.2.00.4710.02081.30
7.1.200.1540.02077.65
7.1.102.1470.02358.28
7.1.70.1070.01978.92
7.1.60.0240.04079.16
7.1.50.0130.04778.88
7.1.00.0230.08084.36
7.0.200.6950.02076.78
7.0.140.0100.09084.07
7.0.100.0630.09362.43
7.0.90.2930.07062.39
7.0.80.4400.09362.37
7.0.70.6400.08762.43
7.0.60.8830.06062.31
7.0.50.4130.05762.75
7.0.40.0100.11020.08
7.0.30.0130.08719.96
7.0.20.0200.09720.18
7.0.10.0100.09720.08
7.0.00.0100.09320.07
5.6.280.0200.11385.52
5.6.250.0200.11785.20
5.6.240.0230.06785.46
5.6.230.0370.11085.30
5.6.220.0370.09785.40
5.6.210.0270.11085.45
5.6.200.0230.08785.65
5.6.190.0230.11085.80
5.6.180.0300.10785.71
5.6.170.0200.12085.65
5.6.160.0270.10385.80
5.6.150.0200.11385.70
5.6.140.0330.10785.76
5.6.130.0300.09385.84
5.6.120.0230.12785.87
5.6.110.0300.12785.75
5.6.100.0300.07385.69
5.6.90.0300.10085.80
5.6.80.0300.07085.05
5.6.70.0400.07085.09
5.6.60.0270.07085.21
5.6.50.0470.12085.02
5.6.40.0430.12385.14
5.6.30.0230.11785.15
5.6.20.0300.13785.17
5.6.10.0430.10085.13
5.6.00.0230.08785.21
5.5.380.0300.08785.06
5.5.370.0270.07785.27
5.5.360.0200.11385.05
5.5.350.0170.10085.03
5.5.340.0230.10085.57
5.5.330.0400.11385.63
5.5.320.0330.10785.49
5.5.310.0330.05785.48
5.5.300.0200.07385.54
5.5.290.0400.10085.53
5.5.280.0370.09785.47
5.5.270.0270.11785.52
5.5.260.0170.07085.62
5.5.250.0570.11085.34
5.5.240.0200.11384.84
5.5.230.0170.11384.95
5.5.220.0300.10384.90
5.5.210.0200.08384.86
5.5.200.0270.10084.88
5.5.190.0400.09784.85
5.5.180.0300.10384.81
5.5.160.0300.10384.97
5.5.150.0170.07084.95
5.5.140.0300.10784.82
5.5.130.0270.06084.95
5.5.120.0300.09384.80
5.5.110.0270.09384.81
5.5.100.0230.11084.78
5.5.90.0230.06084.81
5.5.80.0070.07784.80
5.5.70.0230.11384.80
5.5.60.0500.09384.76
5.5.50.0130.07384.75
5.5.40.0270.06084.75
5.5.30.0200.11784.75
5.5.20.0270.06084.66
5.5.10.0400.10784.75
5.5.00.0130.12084.71
5.4.450.0270.10384.01
5.4.440.0270.08084.05
5.4.430.0070.07383.90
5.4.420.0270.11383.73
5.4.410.0370.09083.87
5.4.400.0300.11783.43
5.4.390.0230.09083.75
5.4.380.0170.09083.68
5.4.370.0200.11083.68
5.4.360.0230.10083.78
5.4.350.0270.09083.59
5.4.340.0200.11083.62
5.4.320.0200.06783.72
5.4.310.0230.11783.46
5.4.300.0330.11083.75
5.4.290.0300.11383.70
5.4.280.0170.12083.66
5.4.270.0200.12783.68
5.4.260.0230.11083.45
5.4.250.0300.09783.45
5.4.240.0300.08383.68
5.4.230.0170.11083.59
5.4.220.0230.10383.68
5.4.210.0430.09383.56
5.4.200.0170.09783.68
5.4.190.0300.10383.67
5.4.180.0430.08083.77
5.4.170.0270.10383.45
5.4.160.0130.07083.65
5.4.150.0330.06083.73
5.4.140.0500.09380.99
5.4.130.0300.09781.00
5.4.120.0270.08080.96
5.4.110.0270.10080.96
5.4.100.0330.09380.93
5.4.90.0500.07781.00
5.4.80.0130.14380.86
5.4.70.0200.09381.10
5.4.60.0230.07080.87
5.4.50.0230.11380.96
5.4.40.0230.09780.93
5.4.30.0230.05781.07
5.4.20.0200.10380.81
5.4.10.0330.07380.89
5.4.00.0300.11080.44
5.3.290.0330.13077.78
5.3.280.0330.11777.71
5.3.270.0270.12777.78
5.3.260.0270.11077.79
5.3.250.0230.11377.72
5.3.240.0370.11077.75
5.3.230.0200.08777.71
5.3.220.0430.07377.67
5.3.210.0200.09777.68
5.3.200.0270.11077.68
5.3.190.0330.14077.80
5.3.180.0330.11377.66
5.3.170.0330.11777.82
5.3.160.0370.11777.61
5.3.150.0300.13077.61
5.3.140.0230.12077.64
5.3.130.0200.13077.75
5.3.120.0200.12077.80
5.3.110.0170.08377.75
5.3.100.0470.13777.27
5.3.90.0300.14377.14
5.3.80.0200.14377.05
5.3.70.0130.16377.16
5.3.60.0270.12077.10
5.3.50.0200.13376.96
5.3.40.0200.12077.00
5.3.30.0430.11377.91
5.3.20.0330.12776.88
5.3.10.0270.11376.79
5.3.00.0130.14376.76

preferences:
72.59 ms | 401 KiB | 5 Q