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); var_dump(get_defined_vars()); 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.0090.01218.39
8.3.50.0140.00521.15
8.3.40.0000.01518.85
8.3.30.0000.01518.52
8.3.20.0030.00520.33
8.3.10.0060.00323.70
8.3.00.0000.00820.16
8.2.180.0060.01318.41
8.2.170.0120.00322.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0090.00017.63
8.2.110.0030.00622.25
8.2.100.0060.00617.75
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0000.00819.52
8.2.30.0070.00020.52
8.2.20.0000.00817.80
8.2.10.0040.00418.05
8.2.00.0000.00718.04
8.1.280.0070.00725.92
8.1.270.0120.00323.97
8.1.260.0050.00526.35
8.1.250.0000.00828.09
8.1.240.0080.00322.53
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0100.00017.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0050.00518.57
8.1.160.0050.00322.01
8.1.150.0000.00718.75
8.1.140.0040.00417.45
8.1.130.0070.00017.60
8.1.120.0040.00417.39
8.1.110.0000.00717.48
8.1.100.0000.00917.45
8.1.90.0040.00417.48
8.1.80.0060.00317.44
8.1.70.0000.00717.45
8.1.60.0040.00417.43
8.1.50.0000.00817.53
8.1.40.0030.00617.39
8.1.30.0040.00417.62
8.1.20.0030.00617.68
8.1.10.0040.00417.57
8.1.00.0000.00817.45
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00317.19
8.0.260.0030.00317.16
8.0.250.0000.00717.04
8.0.240.0000.00717.02
8.0.230.0040.00417.07
8.0.220.0070.00016.91
8.0.210.0030.00516.92
8.0.200.0040.00416.90
8.0.190.0050.00317.05
8.0.180.0000.00716.93
8.0.170.0090.00316.96
8.0.160.0000.00716.95
8.0.150.0000.00716.84
8.0.140.0080.00016.94
8.0.130.0000.00613.33
8.0.120.0030.00516.94
8.0.110.0050.00316.95
8.0.100.0070.00016.80
8.0.90.0000.00717.00
8.0.80.0150.00016.90
8.0.70.0000.00716.86
8.0.60.0040.00416.82
8.0.50.0040.00416.92
8.0.30.0120.00617.12
8.0.20.0150.00717.40
8.0.10.0000.00717.07
8.0.00.0110.00816.87
7.4.330.0000.00515.08
7.4.320.0000.00716.61
7.4.300.0030.00316.60
7.4.290.0030.00316.52
7.4.280.0000.00816.51
7.4.270.0030.00316.52
7.4.260.0030.00316.39
7.4.250.0000.00816.47
7.4.240.0050.00216.53
7.4.230.0000.00716.50
7.4.220.0170.01016.61
7.4.210.0040.01116.54
7.4.200.0040.00416.39
7.4.160.0150.00316.27
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0170.00716.59
7.4.120.0090.01016.61
7.4.110.0070.01016.53
7.4.100.0120.01216.62
7.4.90.0140.01216.51
7.4.80.0130.01319.39
7.4.70.0110.00716.66
7.4.60.0090.01016.33
7.4.50.0090.00416.43
7.4.40.0110.00816.54
7.4.30.0130.00416.40
7.4.20.0030.02016.28
7.4.10.0100.01316.50
7.4.00.0080.01015.71
7.3.330.0030.00313.08
7.3.320.0050.00013.26
7.3.310.0040.00416.23
7.3.300.0030.00316.24
7.3.290.0110.00616.39
7.3.280.0120.00716.40
7.3.270.0040.01317.40
7.3.260.0080.01016.44
7.3.250.0090.00816.43
7.3.240.0030.01616.46
7.3.230.0070.01016.39
7.3.210.0090.00916.43
7.3.200.0090.00916.46
7.3.190.0070.01016.43
7.3.180.0100.00816.37
7.3.170.0100.00716.23
7.3.160.0130.00716.28
7.3.150.0150.00316.36
7.3.140.0130.00316.39
7.3.130.0100.00716.42
7.3.120.0190.00316.37
7.3.110.0160.00616.31
7.3.100.0170.00916.31
7.3.90.0100.01216.26
7.3.80.0120.01216.40
7.3.70.0100.01116.41
7.3.60.0120.00716.24
7.3.50.0060.01616.48
7.3.40.0180.00716.43
7.3.30.0110.00816.52
7.3.20.0170.00716.28
7.3.10.0110.01116.39
7.3.00.0160.00616.35
7.2.330.0110.00716.44
7.2.320.0090.00916.31
7.2.310.0070.01116.34
7.2.300.0040.01416.41
7.2.290.0090.00916.65
7.2.280.0070.01016.47
7.2.270.0130.01016.22
7.2.260.0070.01116.39
7.2.250.0030.01716.57
7.2.240.0070.01616.37
7.2.230.0160.00816.73
7.2.220.0110.00916.39
7.2.210.0090.01116.61
7.2.200.0100.01016.43
7.2.190.0140.00916.46
7.2.180.0130.01016.49
7.2.170.0040.01616.38
7.2.160.0090.01216.49
7.2.150.0100.01916.68
7.2.140.0070.01816.56
7.2.130.0110.00816.55
7.2.120.0140.01016.54
7.2.110.0130.00616.54
7.2.100.0090.01416.47
7.2.90.0130.00716.44
7.2.80.0140.00716.51
7.2.70.0070.01416.39
7.2.60.0100.00816.61
7.2.50.0110.01016.75
7.2.40.0120.00616.59
7.2.30.0060.01316.48
7.2.20.0150.00716.49
7.2.10.0110.00816.44
7.2.00.0060.01117.97
7.1.330.0140.00615.39
7.1.320.0110.01115.26
7.1.310.0200.00715.41
7.1.300.0150.00615.48
7.1.290.0150.00515.34
7.1.280.0130.01315.37
7.1.270.0110.00715.51
7.1.260.0170.00615.47
7.1.250.0030.02115.44
7.1.240.0100.00815.57
7.1.230.0080.01315.36
7.1.220.0070.01315.48
7.1.210.0060.01715.50
7.1.200.0070.01015.66
7.1.190.0130.00615.37
7.1.180.0100.01015.30
7.1.170.0150.00415.44
7.1.160.0030.01515.42
7.1.150.0090.00915.41
7.1.140.0090.00915.34
7.1.130.0130.00315.26
7.1.120.0100.01015.37
7.1.110.0070.01015.36
7.1.100.0090.01016.91
7.1.90.0090.00915.42
7.1.80.0060.01715.40
7.1.70.0060.00816.37
7.1.60.0090.00917.39
7.1.50.0090.01616.26
7.1.40.0060.01315.42
7.1.30.0120.01115.54
7.1.20.0120.00615.57
7.1.10.0030.01315.53
7.1.00.0030.04618.88
7.0.330.0130.00714.95
7.0.320.0100.00715.22
7.0.310.0130.00615.13
7.0.300.0190.00015.05
7.0.290.0100.00715.04
7.0.280.0030.01714.79
7.0.270.0160.00015.06
7.0.260.0080.00815.14
7.0.250.0130.00315.15
7.0.240.0100.00715.07
7.0.230.0110.00715.12
7.0.220.0090.01214.97
7.0.210.0110.01315.28
7.0.200.0080.00715.84
7.0.190.0140.00415.12
7.0.180.0140.00615.06
7.0.170.0150.00915.05
7.0.160.0130.00315.29
7.0.150.0100.00615.21
7.0.140.0070.01015.24
7.0.130.0140.00714.95
7.0.120.0190.00315.18
7.0.110.0130.00615.21
7.0.100.0090.01215.03
7.0.90.0140.00315.01
7.0.80.0150.00314.98
7.0.70.0070.01115.29
7.0.60.0110.04517.56
7.0.50.0070.04816.45
7.0.40.0050.03317.52
7.0.30.0170.04217.53
7.0.20.0130.02617.51
7.0.10.0140.02317.55
7.0.00.0070.02517.66
5.6.400.0070.02015.95
5.6.390.0130.00715.91
5.6.380.0120.01215.91
5.6.370.0150.00915.79
5.6.360.0090.01216.07
5.6.350.0070.01715.86
5.6.340.0130.00715.90
5.6.330.0150.00315.79
5.6.320.0070.01715.69
5.6.310.0120.01215.71
5.6.300.0080.01215.76
5.6.290.0160.00415.68
5.6.280.0100.03118.22
5.6.270.0190.00715.79
5.6.260.0130.01015.89
5.6.250.0040.01715.63
5.6.240.0150.00615.77
5.6.230.0130.00915.82
5.6.220.0090.01215.77
5.6.210.0080.04318.15
5.6.200.0040.04416.88
5.6.190.0080.02818.12
5.6.180.0170.03618.27
5.6.170.0100.03118.15
5.6.160.0090.04118.10
5.6.150.0110.03116.91
5.6.140.0070.04416.89
5.6.130.0090.04616.90
5.6.120.0080.02518.38
5.6.110.0100.05218.43
5.6.100.0090.04118.42
5.6.90.0130.04318.35
5.6.80.0080.04617.98
5.6.70.0110.00815.76
5.6.60.0090.00915.58
5.6.50.0070.01215.72
5.6.40.0070.01015.64
5.6.30.0090.01015.54
5.6.20.0120.00615.71
5.6.10.0110.00815.61
5.6.00.0060.01215.62
5.5.380.0120.01515.54
5.5.370.0170.00715.63
5.5.360.0140.01015.54
5.5.350.0030.05417.95
5.5.340.0100.03216.82
5.5.330.0070.04217.96
5.5.320.1950.02617.99
5.5.310.0290.03318.04
5.5.300.0120.04116.70
5.5.290.0090.04216.74
5.5.280.0100.02818.20
5.5.270.0080.04018.09
5.5.260.0060.02818.18
5.5.250.0130.04318.21
5.5.240.0110.04017.95
5.5.230.0090.01515.73
5.5.220.0060.01315.46
5.5.210.0030.01515.55
5.5.200.0120.00615.54
5.5.190.0130.00615.61
5.5.180.0030.01415.60
5.5.170.0080.01115.34
5.5.160.0080.01115.63
5.5.150.0030.01415.55
5.5.140.0070.01015.53
5.5.130.0140.00915.55
5.5.120.0060.01415.53
5.5.110.0060.01315.63
5.5.100.0140.00615.76
5.5.90.0120.01215.68
5.5.80.0120.00915.64
5.5.70.0090.00915.43
5.5.60.0040.01215.80
5.5.50.0060.01115.78
5.5.40.0110.00815.84
5.5.30.0080.01115.59
5.5.20.0040.01515.57
5.5.10.0070.01415.61
5.5.00.0090.01515.46
5.4.450.0120.04315.91
5.4.440.0280.03515.88
5.4.430.0130.04115.96
5.4.420.0150.03615.97
5.4.410.0420.03116.04
5.4.400.0140.03215.61
5.4.390.0320.03815.73
5.4.380.0400.03315.86
5.4.370.0380.03315.83
5.4.360.0270.04015.68
5.4.350.0300.03215.83
5.4.340.0350.03315.64
5.4.330.0030.01012.32
5.4.320.0300.03515.73
5.4.310.0300.03215.57
5.4.300.0340.03415.79
5.4.290.0290.03715.81
5.4.280.0180.03015.89
5.4.270.0100.03515.92
5.4.260.0330.03315.64
5.4.250.0510.02815.81
5.4.240.0280.04515.87
5.4.230.0120.03015.80
5.4.220.0250.03415.54
5.4.210.0370.02915.78
5.4.200.0140.03015.58
5.4.190.0430.03115.66
5.4.180.0370.04215.55
5.4.170.0520.04015.68
5.4.160.0440.03415.76
5.4.150.0440.04015.78
5.4.140.0400.03714.33
5.4.130.0390.02914.46
5.4.120.0340.03214.53
5.4.110.0390.03314.41
5.4.100.0410.02614.22
5.4.90.0470.02014.43
5.4.80.0330.04714.37
5.4.70.0200.03614.43
5.4.60.0040.04414.48
5.4.50.0080.02714.32
5.4.40.0150.03114.47
5.4.30.0210.03414.34
5.4.20.0080.02714.43
5.4.10.0130.00312.46
5.4.00.0130.00312.35

preferences:
53.24 ms | 401 KiB | 5 Q