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.60.0460.02361.46
8.3.50.0680.01566.65
8.3.40.0360.01039.00
8.3.30.0330.01339.48
8.3.20.0170.00740.57
8.3.10.0130.01342.03
8.3.00.0140.01137.88
8.2.180.0480.02158.38
8.2.170.0300.00739.16
8.2.160.0320.01040.51
8.2.150.0190.00339.22
8.2.140.0170.00739.38
8.2.130.0300.02040.65
8.2.120.0110.00746.11
8.2.110.0190.00940.60
8.2.100.0220.00938.03
8.2.90.0130.00639.33
8.2.80.0090.00937.75
8.2.70.0090.01237.88
8.2.60.0210.00638.05
8.2.50.0220.00737.88
8.2.40.0160.00338.34
8.2.30.0190.01138.12
8.2.20.0100.01037.77
8.2.10.0160.00338.03
8.2.00.0130.01037.68
8.1.280.0740.01058.75
8.1.270.0100.01045.62
8.1.260.0130.01039.63
8.1.250.0150.00841.37
8.1.240.0110.00747.04
8.1.230.0200.01040.16
8.1.220.0150.00336.80
8.1.210.0060.01338.09
8.1.200.0070.01536.38
8.1.190.0100.01036.38
8.1.180.0060.01336.60
8.1.170.0150.00337.92
8.1.160.0140.00341.27
8.1.150.0180.00038.02
8.1.140.0100.01036.68
8.1.130.0130.00337.22
8.1.120.0100.00736.67
8.1.110.0110.00736.68
8.1.100.0140.00336.68
8.1.90.0110.00736.62
8.1.80.0070.01036.59
8.1.70.0030.01336.64
8.1.60.0140.00436.78
8.1.50.0030.01736.72
8.1.40.0120.00636.73
8.1.30.0150.00636.84
8.1.20.0120.00636.83
8.1.10.0190.01660.05
8.1.00.0340.00059.84
8.0.300.0200.01062.46
8.0.290.0230.00759.25
8.0.280.0270.00060.93
8.0.270.0240.00359.61
8.0.260.0240.00359.72
8.0.250.0200.00759.40
8.0.240.0260.00359.39
8.0.230.0200.00759.33
8.0.220.0190.00959.33
8.0.210.0160.01359.18
8.0.200.0200.00759.24
8.0.190.0220.00659.22
8.0.180.0180.01459.32
8.0.170.0230.01059.25
8.0.160.0200.01059.32
8.0.150.0160.01359.16
8.0.140.0210.01059.24
8.0.130.0440.01094.77
8.0.120.0180.01459.30
8.0.110.0230.01059.09
8.0.100.0290.00359.23
8.0.90.0230.00659.23
8.0.80.0230.04359.21
8.0.70.0120.01559.31
8.0.60.0200.00759.12
8.0.50.0180.01159.22
8.0.30.0460.03659.43
8.0.20.0560.02559.35
8.0.10.0160.01659.33
8.0.00.0510.03159.11
7.4.330.0180.00462.77
7.4.320.0260.00358.61
7.4.300.0280.01058.89
7.4.290.0250.00758.85
7.4.280.0200.01058.84
7.4.270.0170.01758.85
7.4.260.0270.00358.79
7.4.250.0170.01458.81
7.4.240.0220.01058.77
7.4.230.0210.00758.93
7.4.220.0660.03658.73
7.4.210.0360.02658.81
7.4.200.0210.00758.74
7.4.160.0540.03458.82
7.4.150.0650.02858.88
7.4.140.0650.02758.78
7.4.130.0650.02358.89
7.4.120.0530.02758.76
7.4.110.0590.02058.82
7.4.100.0530.02358.82
7.4.90.0680.02558.79
7.4.80.0580.02458.93
7.4.70.0680.01858.75
7.4.60.0480.03458.78
7.4.50.0170.00358.96
7.4.40.0570.03058.73
7.4.30.0530.02358.76
7.3.330.0380.01494.58
7.3.320.0400.01394.53
7.3.310.0240.00758.48
7.3.300.0190.01358.71
7.3.290.0550.01358.69
7.3.280.0500.04258.64
7.3.270.0690.02358.80
7.3.260.0620.03058.86
7.3.250.0500.03158.76
7.3.240.0640.05658.68
7.3.230.0630.02958.83
7.3.210.0580.02658.70
7.3.200.0480.02958.55
7.3.190.0470.03158.90
7.3.180.0450.03258.68
7.3.170.0680.03458.73
7.3.160.0630.01758.96
7.2.330.0520.02658.70
7.2.320.0410.03159.16
7.2.310.0620.01758.87
7.2.300.0440.03859.11
7.2.290.0690.03458.88
5.5.150.0400.12084.77
5.5.140.0470.12784.88
5.5.130.0130.13384.95
5.5.120.0300.12784.86
5.5.110.0400.10784.84
5.5.100.0500.12784.80
5.5.90.0400.12384.70
5.5.80.0500.11384.82
5.5.70.0400.13784.78
5.5.60.0300.12084.76
5.5.50.0230.11084.84
5.5.40.0530.11084.75
5.5.30.0300.13084.74
5.5.20.0400.13084.62
5.5.10.0300.12784.76
5.5.00.0400.08784.70
5.4.310.0330.08383.68
5.4.300.0470.09383.59
5.4.290.0500.08383.57
5.4.280.0270.11383.67
5.4.270.0300.11783.68
5.4.260.0330.09083.68
5.4.250.0330.11083.62
5.4.240.0370.10083.62
5.4.230.0200.12783.67
5.4.220.0200.11383.58
5.4.210.0370.09783.51
5.4.200.0400.09383.61
5.4.190.0400.08083.66
5.4.180.0330.10383.42
5.4.170.0370.10783.72
5.4.160.0130.13383.61
5.4.150.0370.10083.66
5.4.140.0630.10780.99
5.4.130.0370.10081.03
5.4.120.0270.11380.88
5.4.110.0330.06780.89
5.4.100.0300.11781.11
5.4.90.0530.08781.11
5.4.80.0330.10781.01
5.4.70.0370.09780.86
5.4.60.0330.07780.98
5.4.50.0370.10780.88
5.4.40.0370.10380.96
5.4.30.0400.10380.86
5.4.20.0470.09381.08
5.4.10.0400.10380.90
5.4.00.0100.11080.18
5.3.280.0170.14377.74
5.3.270.0330.13777.86
5.3.260.0400.12777.84
5.3.250.0430.11077.65
5.3.240.0370.12077.76
5.3.230.0330.11377.70
5.3.220.0300.13777.74
5.3.210.0300.13077.75
5.3.200.0270.11777.81
5.3.190.0400.13377.82
5.3.180.0370.13777.82
5.3.170.0300.12377.71
5.3.160.0530.12077.66
5.3.150.0330.13077.69
5.3.140.0200.15077.80
5.3.130.0400.13377.72
5.3.120.0270.13777.79
5.3.110.0400.10777.63
5.3.100.0370.12077.27
5.3.90.0370.11777.26
5.3.80.0430.12077.03
5.3.70.0330.12777.14
5.3.60.0230.13077.19
5.3.50.0330.12776.96
5.3.40.0230.13777.13
5.3.30.0500.11377.09
5.3.20.0200.14076.82
5.3.10.0370.13376.69
5.3.00.0330.14376.66

preferences:
37.55 ms | 401 KiB | 5 Q