3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nr = [1, 3, 5, 7, 9, 11, 13, 15]; foreach ($nr as $one) { foreach ($nr as $two) { foreach ($nr as $three) { echo $one . ' + ' . $two . ' + ' . $three = ($one + $two + $three) . PHP_EOL; /*if (($one + $two + $three) === 30) { echo $one . ' + ' . $two . ' + ' . $three; }*/ } } }

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.0100.00616.25
8.3.60.0030.01616.63
8.3.50.0130.00822.11
8.3.40.0090.00618.70
8.3.30.0040.01219.05
8.3.20.0040.00420.20
8.3.10.0030.00621.73
8.3.00.0030.00520.90
8.2.190.0090.00916.63
8.2.180.0060.01018.00
8.2.170.0090.00618.97
8.2.160.0040.01822.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.42
8.2.110.0030.00721.98
8.2.100.0060.00619.32
8.2.90.0030.00518.96
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00317.92
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0080.00019.23
8.2.20.0090.00017.75
8.2.10.0030.00518.09
8.2.00.0030.00617.59
8.1.280.0130.00325.92
8.1.270.0060.00320.60
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0070.00323.98
8.1.230.0100.00319.10
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0050.00517.13
8.1.190.0000.00917.10
8.1.180.0060.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00422.06
8.1.150.0040.00418.81
8.1.140.0000.00817.44
8.1.130.0000.00717.88
8.1.120.0050.00217.33
8.1.110.0080.00017.49
8.1.100.0040.00417.45
8.1.90.0040.00417.50
8.1.80.0040.00417.32
8.1.70.0000.00717.33
8.1.60.0030.00617.49
8.1.50.0090.00017.49
8.1.40.0080.00017.39
8.1.30.0060.00317.55
8.1.20.0000.00817.50
8.1.10.0040.00417.43
8.1.00.0030.00517.40
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0090.00018.50
8.0.270.0040.00417.17
8.0.260.0030.00318.30
8.0.250.0070.00016.98
8.0.240.0030.00316.84
8.0.230.0000.00716.99
8.0.220.0030.00316.90
8.0.210.0000.00816.92
8.0.200.0000.00716.91
8.0.190.0040.00416.95
8.0.180.0030.00616.93
8.0.170.0040.00416.94
8.0.160.0000.00716.93
8.0.150.0060.00316.82
8.0.140.0060.00316.81
8.0.130.0000.00613.34
8.0.120.0000.00816.74
8.0.110.0040.00416.89
8.0.100.0040.00416.78
8.0.90.0030.00516.84
8.0.80.0090.01216.80
8.0.70.0070.00016.86
8.0.60.0040.00416.67
8.0.50.0060.00316.82
8.0.30.0170.00817.12
8.0.20.0130.02017.40
8.0.10.0040.00417.12
8.0.00.0150.01316.84
7.4.330.0000.00615.03
7.4.320.0030.00316.54
7.4.300.0040.00416.45
7.4.290.0040.00416.36
7.4.280.0040.00816.52
7.4.270.0040.00416.59
7.4.260.0060.00316.61
7.4.250.0030.00616.59
7.4.240.0040.00316.40
7.4.230.0000.00716.62
7.4.220.0090.00916.55
7.4.210.0100.00716.59
7.4.200.0040.00416.68
7.4.160.0100.00716.38
7.4.150.0430.00617.40
7.4.140.0090.01217.86
7.4.130.0100.01116.51
7.4.120.0160.00316.49
7.4.110.0110.00816.62
7.4.100.0170.01016.43
7.4.90.0170.00016.43
7.4.80.0170.00319.39
7.4.70.0030.01516.45
7.4.60.0170.00016.53
7.4.50.0000.00816.57
7.4.40.0180.00316.66
7.4.30.0070.01316.56
7.4.00.0120.00815.15
7.3.330.0050.00013.17
7.3.320.0030.00313.06
7.3.310.0060.00316.22
7.3.300.0000.00716.11
7.3.290.0090.00016.25
7.3.280.0130.00716.23
7.3.270.0130.01017.40
7.3.260.0140.01116.55
7.3.250.0090.01216.29
7.3.240.0110.00816.61
7.3.230.0000.02116.39
7.3.210.0190.00016.37
7.3.200.0090.00919.39
7.3.190.0090.00816.63
7.3.180.0120.00616.57
7.3.170.0130.00716.49
7.3.160.0100.01016.54
7.2.330.0080.01316.54
7.2.320.0100.01016.60
7.2.310.0160.00416.36
7.2.300.0150.00316.61
7.2.290.0180.00916.56
7.2.60.0030.00716.78
7.2.00.0090.00619.35
7.1.100.0030.00917.84
7.1.70.0120.00616.87
7.1.60.0210.00319.46
7.1.50.0060.00616.84
7.1.00.0000.08022.57
7.0.200.0350.00714.64
7.0.140.0070.07321.95
7.0.110.0100.08019.95
7.0.100.0000.04019.99
7.0.90.0030.08019.92
7.0.80.0000.08319.97
7.0.70.0070.08019.87
7.0.60.0030.08320.01
7.0.50.0070.08320.43
7.0.40.0030.08720.26
7.0.30.0070.08320.19
7.0.20.0070.08720.15
7.0.10.0000.09020.23
7.0.00.0070.08320.19
5.6.280.0030.07721.02
5.6.250.0030.04020.74
5.6.240.0100.07720.70
5.6.230.0100.04720.57
5.6.220.0030.05020.68
5.6.210.0030.04020.80
5.6.200.0070.08721.19
5.6.190.0130.07721.29
5.6.180.0130.08020.93
5.6.170.0100.05021.09
5.6.160.0100.07721.28
5.6.150.0100.05720.93
5.6.140.0100.07021.00
5.6.130.0100.08321.29
5.6.120.0030.05721.00
5.6.110.0100.04721.13
5.6.100.0030.06721.07
5.6.90.0100.07720.90
5.6.80.0070.07720.31
5.6.70.0100.07320.50
5.6.60.0130.03720.45
5.6.50.0100.06320.52
5.6.40.0170.07020.49
5.6.30.0030.08020.49
5.6.20.0130.07320.37
5.6.10.0100.07020.34
5.6.00.0130.07720.48
5.5.380.0030.08320.36
5.5.370.0200.06320.32
5.5.360.0130.08020.52
5.5.350.0070.08720.45
5.5.340.0130.07020.84
5.5.330.0070.08020.74
5.5.320.0170.07020.95
5.5.310.0170.07020.80
5.5.300.0100.07320.88
5.5.290.0100.08320.96
5.5.280.0130.07720.91
5.5.270.0000.08320.66
5.5.260.0130.07320.95
5.5.250.0130.07320.62
5.5.240.0100.07320.33
5.5.230.0000.07320.28
5.5.220.0070.07020.24
5.5.210.0130.07320.32
5.5.200.0030.08020.13
5.5.190.0070.07020.15
5.5.180.0030.09020.21
5.5.160.0170.07320.20
5.5.150.0130.07020.04
5.5.140.0030.08320.15
5.5.130.0200.06720.30
5.5.120.0100.07320.23
5.5.110.0070.05720.22
5.5.100.0130.07320.25
5.5.90.0130.07320.02
5.5.80.0170.06720.25
5.5.70.0100.07320.18
5.5.60.0130.07320.09
5.5.50.0130.07720.08
5.5.40.0170.07020.12
5.5.30.0130.06320.08
5.5.20.0170.06720.06
5.5.10.0100.07320.20
5.5.00.0070.07720.05
5.4.450.0100.05019.28
5.4.440.0100.04719.44
5.4.430.0070.08019.36
5.4.420.0230.06319.57
5.4.410.0100.07719.18
5.4.400.0100.06719.08
5.4.390.0030.07719.12
5.4.380.0070.06319.03
5.4.370.0070.07719.01
5.4.360.0070.05319.00
5.4.350.0100.03719.17
5.4.340.0200.06319.10
5.4.320.0100.07019.00
5.4.310.0100.07319.09
5.4.300.0100.07019.07
5.4.290.0030.07019.13
5.4.280.0170.07318.98
5.4.270.0130.07019.11
5.4.260.0100.03719.00
5.4.250.0200.06319.16
5.4.240.0070.08319.11
5.4.230.0030.07019.15
5.4.220.0100.07319.28
5.4.210.0100.07319.00
5.4.200.0130.07319.00
5.4.190.0030.08019.16
5.4.180.0100.06719.11
5.4.170.0030.07719.00
5.4.160.0030.07719.14
5.4.150.0130.07019.07
5.4.140.0100.07016.26
5.4.130.0130.06716.26
5.4.120.0030.07016.46
5.4.110.0070.07016.38
5.4.100.0030.07016.49
5.4.90.0070.06716.53
5.4.80.0030.07016.46
5.4.70.0030.07016.39
5.4.60.0070.07716.38
5.4.50.0100.04316.50
5.4.40.0130.07016.55
5.4.30.0070.07316.37
5.4.20.0100.06316.47
5.4.10.0070.07016.37
5.4.00.0030.04315.64
5.3.290.0070.08314.60
5.3.280.0070.04314.61
5.3.270.0100.07314.68
5.3.260.0070.07714.60
5.3.250.0030.07014.54
5.3.240.0070.07014.67
5.3.230.0130.07014.62
5.3.220.0100.06714.56
5.3.210.0100.07014.59
5.3.200.0100.06714.45
5.3.190.0100.07714.36
5.3.180.0030.07714.63
5.3.170.0030.04714.46
5.3.160.0030.07714.66
5.3.150.0070.07014.58
5.3.140.0000.08014.39
5.3.130.0070.05714.38
5.3.120.0070.08014.34
5.3.110.0000.08314.52
5.3.100.0100.07313.98
5.3.90.0000.07313.93
5.3.80.0070.07314.13
5.3.70.0130.07013.95
5.3.60.0070.04314.02
5.3.50.0000.04713.83
5.3.40.0100.07013.97
5.3.30.0030.07313.74
5.3.20.0070.07013.59
5.3.10.0200.05713.75
5.3.00.0030.06313.50
5.2.170.0030.06011.06
5.2.160.0030.06311.09
5.2.150.0100.06011.16
5.2.140.0130.05011.07
5.2.130.0070.05711.02
5.2.120.0030.06311.02
5.2.110.0170.05011.09
5.2.100.0030.03711.05
5.2.90.0100.05311.05
5.2.80.0070.06310.98
5.2.70.0030.06710.98
5.2.60.0070.06010.97
5.2.50.0030.03710.80
5.2.40.0070.06010.77
5.2.30.0000.04010.90
5.2.20.0000.06710.91
5.2.10.0170.04710.80
5.2.00.0070.06010.71
5.1.60.0100.04710.66
5.1.50.0100.04710.66
5.1.40.0030.04010.66
5.1.30.0100.03710.66
5.1.20.0070.05010.66
5.1.10.0030.05710.66
5.1.00.0070.05310.66
5.0.50.0030.04010.66
5.0.40.0070.04310.66
5.0.30.0030.06710.66
5.0.20.0030.04310.66
5.0.10.0030.04710.66
5.0.00.0000.03710.66
4.4.90.0000.02710.66
4.4.80.0030.02010.66
4.4.70.0000.04010.66
4.4.60.0030.03310.66
4.4.50.0070.03010.66
4.4.40.0030.05010.66
4.4.30.0070.03010.66
4.4.20.0070.03010.66
4.4.10.0070.03010.66
4.4.00.0000.05310.66
4.3.110.0030.03710.66
4.3.100.0000.02010.66
4.3.90.0030.01710.66
4.3.80.0030.05010.66
4.3.70.0130.02310.66
4.3.60.0030.03010.66
4.3.50.0000.03710.66
4.3.40.0100.04310.66
4.3.30.0030.03310.66
4.3.20.0000.03710.66
4.3.10.0030.03010.66
4.3.00.0070.02710.66

preferences:
88.81 ms | 401 KiB | 5 Q