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) % 2 == 0) { echo $one . ' + ' . $two . ' + ' . $three; } /*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.60.0110.00716.75
8.3.50.0110.00822.01
8.3.40.0150.00318.45
8.3.30.0110.00318.96
8.3.20.0040.00420.34
8.3.10.0040.00421.60
8.3.00.0000.00720.83
8.2.180.0030.01418.16
8.2.170.0130.00722.96
8.2.160.0110.00420.46
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00920.99
8.2.110.0030.00722.20
8.2.100.0070.00419.34
8.2.90.0000.00919.23
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0000.00817.91
8.2.30.0030.00519.15
8.2.20.0000.00817.66
8.2.10.0060.00318.06
8.2.00.0060.00317.59
8.1.280.0040.01125.92
8.1.270.0050.00520.73
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.91
8.1.230.0110.00019.15
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0030.00618.59
8.1.160.0040.00422.01
8.1.150.0040.00418.73
8.1.140.0050.00317.44
8.1.130.0000.00717.73
8.1.120.0040.00417.46
8.1.110.0000.00817.48
8.1.100.0000.00717.32
8.1.90.0040.00317.42
8.1.80.0070.00017.41
8.1.70.0030.00317.45
8.1.60.0000.00817.60
8.1.50.0060.00317.57
8.1.40.0030.00517.52
8.1.30.0050.00317.63
8.1.20.0060.00317.50
8.1.10.0000.00717.29
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00317.13
8.0.260.0070.00018.43
8.0.250.0030.00316.98
8.0.240.0030.00316.91
8.0.230.0000.00716.88
8.0.220.0030.00316.77
8.0.210.0000.00816.76
8.0.200.0000.00616.97
8.0.190.0000.00816.98
8.0.180.0050.00316.84
8.0.170.0000.00816.81
8.0.160.0030.00316.92
8.0.150.0050.00216.79
8.0.140.0000.00816.84
8.0.130.0000.00513.34
8.0.120.0000.00816.73
8.0.110.0000.00816.72
8.0.100.0040.00416.99
8.0.90.0040.00416.79
8.0.80.0100.00616.89
8.0.70.0040.00416.92
8.0.60.0030.00416.76
8.0.50.0070.00016.66
8.0.30.0110.01116.98
8.0.20.0150.01317.40
8.0.10.0080.00016.88
8.0.00.0130.00616.60
7.4.330.0050.00315.03
7.4.320.0050.00216.59
7.4.300.0000.00716.58
7.4.290.0030.00316.60
7.4.280.0030.00816.57
7.4.270.0000.00716.58
7.4.260.0030.00316.61
7.4.250.0060.00316.61
7.4.240.0040.00316.62
7.4.230.0030.00316.66
7.4.220.0050.01416.50
7.4.210.0040.01316.54
7.4.200.0070.00016.59
7.4.160.0060.01016.28
7.4.150.0150.00517.40
7.4.140.0100.01117.86
7.4.130.0110.00916.47
7.4.120.0130.00716.54
7.4.110.0140.00316.59
7.4.100.0110.00816.60
7.4.90.0100.00616.50
7.4.80.0100.00619.39
7.4.70.0100.00616.36
7.4.60.0040.01216.50
7.4.50.0020.00216.46
7.4.40.0050.01716.43
7.4.30.0090.00916.50
7.4.00.0040.01114.81
7.3.330.0000.00613.15
7.3.320.0000.00513.03
7.3.310.0000.00716.40
7.3.300.0030.00316.29
7.3.290.0000.00716.26
7.3.280.0080.00916.25
7.3.270.0090.01617.40
7.3.260.0110.00616.50
7.3.250.0070.01316.47
7.3.240.0120.00416.40
7.3.230.0230.01116.54
7.3.210.0130.00316.21
7.3.200.0140.00316.32
7.3.190.0070.01416.45
7.3.180.0090.01216.34
7.3.170.0120.00816.57
7.3.160.0100.00716.52
7.3.120.0050.01114.83
7.3.110.0060.01214.85
7.3.100.0100.00714.80
7.3.90.0090.00514.83
7.3.80.0090.00614.87
7.3.70.0050.00914.81
7.3.60.0090.00614.92
7.3.50.0090.00314.83
7.3.40.0080.00514.69
7.3.30.0080.00714.62
7.3.20.0060.01016.37
7.3.10.0050.00916.70
7.3.00.0070.00716.77
7.2.330.0120.00616.66
7.2.320.0100.01016.54
7.2.310.0080.01516.71
7.2.300.0100.00616.44
7.2.290.0090.00916.80
7.2.250.0110.00914.91
7.2.240.0060.01414.96
7.2.230.0090.00815.11
7.2.220.0030.01215.06
7.2.210.0110.00615.28
7.2.200.0030.01014.97
7.2.190.0070.00914.93
7.2.180.0040.01114.87
7.2.170.0060.00914.89
7.2.60.0060.00616.87
7.2.00.0000.01219.61
7.1.330.0100.00315.54
7.1.320.0070.00715.85
7.1.310.0080.00815.72
7.1.300.0040.01015.75
7.1.290.0080.00515.50
7.1.280.0080.00615.75
7.1.270.0070.00815.63
7.1.260.0050.01315.80
7.1.200.0100.00315.68
7.1.100.0000.01218.14
7.1.70.0040.01116.86
7.1.60.0100.00319.46
7.1.50.0070.01016.69
7.1.00.0070.07322.28
7.0.200.0070.00714.66
7.0.140.0070.07021.95
7.0.110.0230.02719.92
7.0.100.0270.03319.93
7.0.90.0030.03719.94
7.0.80.0270.03020.01
7.0.70.0100.07319.89
7.0.60.0030.08720.05
7.0.50.0170.06320.03
7.0.40.0170.06719.85
7.0.30.0100.08019.66
7.0.20.0070.04019.70
7.0.10.0100.06019.84
7.0.00.0000.08719.70
5.6.280.0030.07321.09
5.6.260.0070.03720.50
5.6.250.0000.03720.65
5.6.240.0030.03720.69
5.6.230.0070.03020.68
5.6.220.0100.07320.54
5.6.210.0000.08320.72
5.6.200.0030.08020.65
5.6.190.0130.07320.84
5.6.180.0100.03320.70
5.6.170.0100.07720.55
5.6.160.0130.06720.57
5.6.150.0100.04720.61
5.6.140.0070.05020.54
5.6.130.0200.03720.60
5.6.120.0030.09320.54
5.6.110.0100.08320.55
5.6.100.0030.08320.63
5.6.90.0100.03320.55
5.6.80.0130.04719.94
5.6.70.0130.06319.94
5.6.60.0100.08020.17
5.6.50.0070.07720.00
5.6.40.0100.07320.20
5.6.30.0100.03319.82
5.6.20.0030.08019.90
5.6.10.0100.07020.00
5.6.00.0100.06319.88
5.5.380.0030.03317.45
5.5.370.0000.04717.54
5.5.360.0030.06717.55
5.5.350.0130.07317.64
5.5.340.0100.07717.89
5.5.330.0100.06717.89
5.5.320.0100.07718.03
5.5.310.0000.08317.86
5.5.300.0100.03018.15
5.5.290.0030.03717.77
5.5.280.0000.06717.88
5.5.270.0070.09018.09
5.5.260.0070.08018.09
5.5.250.0030.09317.65
5.5.240.0100.06717.48
5.5.230.0130.07017.50
5.5.220.0100.03317.21
5.5.210.0070.05317.47
5.5.200.0000.05017.22
5.5.190.0000.07017.22
5.5.180.0030.07717.33
5.5.160.0030.07717.34
5.5.150.0070.05017.35
5.5.140.0070.04017.19
5.5.130.0070.07317.46
5.5.120.0100.07317.50
5.5.110.0130.06017.21
5.5.100.0070.07017.24
5.5.90.0000.04317.25
5.5.80.0070.04017.23
5.5.70.0000.06017.34
5.5.60.0130.03717.37
5.5.50.0000.08017.00
5.5.40.0000.04317.49
5.5.30.0100.06017.24
5.5.20.0100.05317.40
5.5.10.0100.06717.10
5.5.00.0030.05717.25
5.4.450.0000.04719.40
5.4.440.0100.05319.42
5.4.430.0100.06319.43
5.4.420.0070.04719.40
5.4.410.0030.07719.27
5.4.400.0070.08018.95
5.4.390.0100.05719.00
5.4.380.0130.03718.93
5.4.370.0130.06019.03
5.4.360.0100.06719.05
5.4.350.0100.06318.94
5.4.340.0030.08019.17
5.4.320.0170.05018.93
5.4.310.0000.07019.10
5.4.300.0100.06719.14
5.4.290.0030.07319.07
5.4.280.0070.05319.25
5.4.270.0030.08018.93
5.4.260.0070.07018.93
5.4.250.0100.06719.25
5.4.240.0030.08018.95
5.4.230.0170.06319.09
5.4.220.0030.07719.01
5.4.210.0070.04019.00
5.4.200.0030.06319.06
5.4.190.0000.04319.09
5.4.180.0070.06719.25
5.4.170.0070.03318.96
5.4.160.0030.04718.98
5.4.150.0070.06018.90
5.4.140.0030.06016.31
5.4.130.0000.08016.21
5.4.120.0130.06716.37
5.4.110.0070.07016.53
5.4.100.0000.04716.39
5.4.90.0030.07316.49
5.4.80.0030.03716.21
5.4.70.0100.04016.38
5.4.60.0130.05716.50
5.4.50.0100.06716.48
5.4.40.0030.04016.50
5.4.30.0030.04016.50
5.4.20.0070.05016.44
5.4.10.0130.06316.33
5.4.00.0000.04315.85
5.3.290.0030.04014.73
5.3.280.0030.07714.63
5.3.270.0030.04714.49
5.3.260.0100.06714.39
5.3.250.0070.08014.50
5.3.240.0100.04014.68
5.3.230.0100.07314.54
5.3.220.0100.06714.66
5.3.210.0130.05314.58
5.3.200.0070.04014.51
5.3.190.0200.06014.66
5.3.180.0100.07314.45
5.3.170.0100.06314.41
5.3.160.0030.04714.50
5.3.150.0070.06714.67
5.3.140.0130.07014.55
5.3.130.0030.07714.34
5.3.120.0030.07714.41
5.3.110.0070.07014.39
5.3.100.0070.05014.13
5.3.90.0100.04013.95
5.3.80.0070.04313.91
5.3.70.0100.04014.04
5.3.60.0130.06313.94
5.3.50.0030.05013.88
5.3.40.0030.07013.84
5.3.30.0070.05713.85
5.3.20.0030.08713.63
5.3.10.0030.04013.59
5.3.00.0130.07713.64
5.2.170.0000.04311.91
5.2.160.0130.05311.91
5.2.150.0070.06011.91
5.2.140.0070.02711.91
5.2.130.0000.06711.91
5.2.120.0070.05311.91
5.2.110.0100.03011.91
5.2.100.0030.04011.91
5.2.90.0000.03011.91
5.2.80.0070.03311.91
5.2.70.0030.06311.91
5.2.60.0100.03711.91
5.2.50.0000.04711.91
5.2.40.0030.06311.91
5.2.30.0070.04711.91
5.2.20.0070.05711.91
5.2.10.0030.03311.91
5.2.00.0030.03711.91
5.1.60.0000.03711.91
5.1.50.0000.02711.91
5.1.40.0030.03311.91
5.1.30.0000.04011.91
5.1.20.0100.02311.91
5.1.10.0000.03311.91
5.1.00.0030.06011.91
5.0.50.0030.02311.91
5.0.40.0100.03711.91
5.0.30.0000.03311.91
5.0.20.0000.03711.91
5.0.10.0000.02711.91
5.0.00.0030.03711.91
4.4.90.0130.02311.91
4.4.80.0000.01711.91
4.4.70.0000.02011.91
4.4.60.0030.02011.91
4.4.50.0000.01711.91
4.4.40.0030.02711.91
4.4.30.0070.02311.91
4.4.20.0000.02311.91
4.4.10.0070.02311.91
4.4.00.0030.04011.91
4.3.110.0030.01711.91
4.3.100.0000.02011.91
4.3.90.0000.02011.91
4.3.80.0000.03711.91
4.3.70.0000.02011.91
4.3.60.0000.01711.91
4.3.50.0000.03711.91
4.3.40.0000.03311.91
4.3.30.0030.03711.91
4.3.20.0030.03011.91
4.3.10.0000.03711.91
4.3.00.0000.02711.91

preferences:
49.04 ms | 401 KiB | 5 Q