3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*The task is to print out numbers 1 through 100 but for multiples of 3 print out “Fizz” instead of the number and for multiples of 5 print “Buzz” instead. If the number happens to be divisble by both 3 and 5 print out “FizzBuzz” instead of the number.*/ for ($i = 1; $i <= 100; $i++) { $Fizz = ($i % 3 === 0); $Buzz = ($i % 5 === 0); $FizzBuzz = ($Fizz === true && $Buzz === true); foreach (array_splice(get_defined_vars(), 0, 2) as $var) { var_dump($var); } die; echo $var, PHP_EOL; }

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.0140.00718.39
8.3.50.0130.00521.25
8.3.40.0000.01518.52
8.3.30.0140.00018.67
8.3.20.0040.00422.10
8.3.10.0080.00023.48
8.3.00.0000.00820.21
8.2.180.0090.00618.42
8.2.170.0100.00722.96
8.2.160.0080.00520.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00417.75
8.2.110.0000.01120.91
8.2.100.0060.00619.76
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0000.01018.03
8.2.50.0060.00618.07
8.2.40.0000.00719.13
8.2.30.0070.00020.66
8.2.20.0040.00417.75
8.2.10.0060.00318.07
8.2.00.0040.00417.99
8.1.280.0070.00725.92
8.1.270.0150.00323.84
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.80
8.1.230.0080.00417.42
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0000.00917.47
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0100.00018.60
8.1.160.0070.00022.02
8.1.150.0050.00318.98
8.1.140.0000.00917.36
8.1.130.0000.00817.57
8.1.120.0040.00417.43
8.1.110.0000.00717.51
8.1.100.0060.00317.34
8.1.90.0040.00417.51
8.1.80.0040.00417.38
8.1.70.0000.00717.46
8.1.60.0000.00717.61
8.1.50.0040.00417.55
8.1.40.0040.00417.48
8.1.30.0040.00417.54
8.1.20.0080.00017.58
8.1.10.0060.00317.54
8.1.00.0040.00417.46
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0030.00317.17
8.0.260.0060.00017.17
8.0.250.0040.00416.99
8.0.240.0030.00317.05
8.0.230.0000.00717.05
8.0.220.0030.00316.93
8.0.210.0080.00016.88
8.0.200.0040.00417.02
8.0.190.0000.00817.00
8.0.180.0050.00216.86
8.0.170.0070.00316.88
8.0.160.0000.00716.92
8.0.150.0030.00316.86
8.0.140.0070.00016.93
8.0.130.0030.00313.38
8.0.120.0090.00016.87
8.0.110.0020.00516.81
8.0.100.0000.00716.80
8.0.90.0080.00016.97
8.0.80.0080.01216.98
8.0.70.0000.00816.83
8.0.60.0040.00416.86
8.0.50.0040.00417.00
8.0.30.0140.00517.13
8.0.20.0080.01217.40
8.0.10.0040.00416.98
8.0.00.0100.00816.77
7.4.330.0050.00015.23
7.4.320.0000.00616.40
7.4.300.0030.00316.48
7.4.290.0000.00716.50
7.4.280.0050.00316.63
7.4.270.0040.00416.62
7.4.260.0040.00416.60
7.4.250.0040.00416.59
7.4.240.0020.00516.61
7.4.230.0040.00416.41
7.4.220.0090.01716.53
7.4.210.0090.00616.52
7.4.200.0030.00316.40
7.4.160.0100.00716.59
7.4.150.0100.01017.40
7.4.140.0070.01717.86
7.4.130.0110.01116.60
7.4.120.0100.00816.57
7.4.110.0130.00416.55
7.4.100.0170.00016.40
7.4.90.0060.01216.65
7.4.80.0150.00619.39
7.4.70.0110.00516.51
7.4.60.0060.00916.54
7.4.50.0080.00016.42
7.4.40.0110.00616.56
7.4.30.0120.00616.30
7.4.00.0080.01014.99
7.3.330.0000.00513.11
7.3.320.0000.00613.13
7.3.310.0000.00716.36
7.3.300.0000.00716.39
7.3.290.0070.00816.38
7.3.280.0110.00616.42
7.3.270.0130.00317.40
7.3.260.0120.00816.58
7.3.250.0080.00916.31
7.3.240.0110.00616.54
7.3.230.0030.01416.39
7.3.210.0030.01416.50
7.3.200.0100.00616.36
7.3.190.0070.01116.60
7.3.180.0070.01016.41
7.3.170.0100.00716.34
7.3.160.0110.00516.33
7.3.120.0040.01414.69
7.3.110.0060.01315.04
7.3.100.0070.00714.86
7.3.90.0070.00714.84
7.3.80.0030.01014.86
7.3.70.0070.01014.77
7.3.60.0090.00615.01
7.3.50.0070.01014.85
7.3.40.0100.00314.90
7.3.30.0060.01014.80
7.3.20.0060.00616.89
7.3.10.0060.01016.36
7.3.00.0080.00816.46
7.2.330.0110.00716.45
7.2.320.0120.00416.34
7.2.310.0170.00016.44
7.2.300.0090.01016.76
7.2.290.0130.00516.60
7.2.250.0060.01314.93
7.2.240.0100.01014.65
7.2.230.0030.01614.73
7.2.220.0070.01114.88
7.2.210.0030.00914.80
7.2.200.0000.01114.78
7.2.190.0030.00715.16
7.2.180.0090.00614.89
7.2.170.0090.00615.03
7.2.130.0140.01216.37
7.2.120.0150.00616.38
7.2.110.0120.00816.11
7.2.100.0180.00416.47
7.2.90.0150.00616.47
7.2.80.0230.00016.28
7.2.70.0160.01016.70
7.2.60.0070.01316.69
7.2.50.0060.01016.46
7.2.40.0150.01516.65
7.2.30.0100.01616.28
7.2.20.0190.00316.29
7.2.10.0150.00716.27
7.2.00.0100.01018.08
7.1.330.0120.00315.83
7.1.320.0000.01015.73
7.1.310.0000.01515.78
7.1.300.0100.00715.82
7.1.290.0000.01215.59
7.1.280.0000.01115.91
7.1.270.0000.01515.99
7.1.260.0040.00715.57
7.1.250.0170.00315.39
7.1.200.0050.00515.61
7.1.100.0060.00618.07
7.1.70.0060.00317.15
7.1.60.0130.00719.29
7.1.50.0070.01016.99
7.1.00.0000.08022.44
7.0.200.0030.00516.64
7.0.60.0100.07320.00
7.0.50.0100.05017.87
7.0.40.0030.09319.96
7.0.30.0330.07720.34
7.0.20.0170.08720.08
7.0.10.0100.07720.09
7.0.00.0170.06720.19
5.6.280.0000.07021.07
5.6.210.0100.07720.72
5.6.200.0000.06318.13
5.6.190.0030.06320.39
5.6.180.0300.07720.41
5.6.170.0270.08320.47
5.6.160.0130.08020.49
5.6.150.0070.03718.12
5.6.140.0100.08018.20
5.6.130.0100.08018.16
5.6.120.0200.07021.09
5.6.110.0030.04020.99
5.6.100.0070.08720.95
5.6.90.0000.05020.97
5.6.80.0130.06720.45
5.5.350.0030.08020.52
5.5.340.0100.03717.91
5.5.330.0070.08720.21
5.5.320.2500.04020.28
5.5.310.0170.04020.26
5.5.300.0100.08018.01
5.5.290.0170.05717.90
5.5.280.0130.07720.64
5.5.270.0170.07320.84
5.5.260.0100.06720.95
5.5.250.0030.07020.70
5.5.240.0130.03020.04
5.4.450.0770.06719.09
5.4.440.0700.06319.58
5.4.430.0700.06019.48
5.4.420.0700.06019.63
5.4.410.0800.06319.28
5.4.400.0900.05319.19
5.4.390.0770.05719.26
5.4.380.0800.05719.31
5.4.370.0670.06019.07
5.4.360.0770.04319.08
5.4.350.1000.05319.16
5.4.340.0830.06019.15
5.4.320.0770.06019.15
5.4.310.0670.05319.08
5.4.300.0700.05319.30
5.4.290.0900.07019.10
5.4.280.0730.05719.06
5.4.270.0770.05318.95
5.4.260.0800.04719.28
5.4.250.0670.06019.21
5.4.240.0670.05719.27
5.4.230.0870.04018.79
5.4.220.0900.05019.07
5.4.210.0900.07019.16
5.4.200.0800.05719.06
5.4.190.0770.05019.30
5.4.180.0730.06019.27
5.4.170.0700.06018.89
5.4.160.0730.06019.29
5.4.150.0770.06719.23
5.4.140.0800.05016.34
5.4.130.0630.05016.39
5.4.120.0530.06016.45
5.4.110.0630.05316.55
5.4.100.0630.04716.39
5.4.90.0530.06016.19
5.4.80.0630.05016.05
5.4.70.0170.04016.37
5.4.60.0030.05016.38
5.4.50.0030.06716.12
5.4.40.0170.07016.36
5.4.30.0270.06716.40
5.4.20.0100.06316.36

preferences:
59.28 ms | 401 KiB | 5 Q