3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 100; $i++) { $isFizz = (0 === $i % 3); $isBuzz = (0 === $i % 5); if (!$isFizz && !$isBuzz) { echo $i . PHP_EOL; continue; } if ($isFizz) { echo 'Fizz'; } if ($isBuzz) { echo 'Buzz'; } echo 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.4.10.0080.00019.72
8.3.140.0040.00416.72
8.3.130.0040.00418.27
8.3.120.0060.00318.79
8.3.110.0090.00618.18
8.3.100.0080.00324.06
8.3.90.0100.01026.77
8.3.80.0060.00316.63
8.3.70.0040.01416.50
8.3.60.0100.00718.43
8.3.50.0140.00718.26
8.3.40.0170.00819.55
8.3.30.0130.00818.94
8.3.20.0100.00821.83
8.3.10.0090.00821.55
8.3.00.0110.00719.18
8.2.260.0150.00019.08
8.2.250.0050.00516.73
8.2.240.0110.00019.03
8.2.230.0070.00720.94
8.2.220.0090.00037.54
8.2.210.0050.00326.77
8.2.200.0000.00916.75
8.2.190.0070.01416.58
8.2.180.0120.00318.16
8.2.170.0120.01118.76
8.2.160.0150.00820.65
8.2.150.0120.00720.10
8.2.140.0070.01021.27
8.2.130.0090.01021.58
8.2.120.0100.00519.52
8.2.110.0110.00720.05
8.2.100.0110.00719.29
8.2.90.0160.00718.66
8.2.80.0130.00619.26
8.2.70.0140.00618.75
8.2.60.0110.00718.63
8.2.50.0120.00618.95
8.2.40.0130.00718.87
8.2.30.0120.00618.63
8.2.20.0130.00518.41
8.2.10.0100.00818.54
8.2.00.0110.00718.56
8.1.300.0030.00717.63
8.1.290.0070.00330.84
8.1.280.0040.01425.92
8.1.270.0090.00922.98
8.1.260.0100.00622.81
8.1.250.0100.00623.22
8.1.240.0140.00619.11
8.1.230.0110.00718.85
8.1.220.0110.00718.65
8.1.210.0120.00418.74
8.1.200.0120.00718.38
8.1.190.0090.00618.29
8.1.180.0130.00418.32
8.1.170.0100.00718.61
8.1.160.0060.00818.48
8.1.150.0110.00718.86
8.1.140.0110.00418.58
8.1.130.0100.00618.82
8.1.120.0130.00418.26
8.1.110.0100.00518.43
8.1.100.0100.00418.94
8.1.90.0120.00518.21
8.1.80.0100.00618.57
8.1.70.0100.00618.39
8.1.60.0110.00718.37
8.1.50.0130.00818.29
8.1.40.0080.00718.17
8.1.30.0120.00618.42
8.1.20.0130.00518.91
8.1.10.0090.00818.11
8.1.00.0100.00518.06
8.0.300.0090.00818.20
8.0.290.0170.00617.61
8.0.280.0180.00717.89
8.0.270.0140.00517.68
8.0.260.0160.00617.99
8.0.250.0160.00617.69
8.0.240.0140.00917.61
8.0.230.0150.00717.80
8.0.220.0200.00617.64
8.0.210.0180.00417.59
8.0.200.0150.00617.71
8.0.190.0180.00517.71
8.0.180.0130.00717.70
8.0.170.0170.00617.56
8.0.160.0160.00417.59
8.0.150.0180.00717.52
8.0.140.0190.00517.44
8.0.130.0160.00517.10
8.0.120.0160.00717.45
8.0.110.0140.00617.43
8.0.100.0140.00617.47
8.0.90.0180.00417.44
8.0.80.0150.00617.44
8.0.70.0080.00717.40
8.0.60.0150.00617.44
8.0.50.0150.00617.45
8.0.30.0100.00717.42
8.0.20.0150.00717.42
8.0.10.0150.00917.48
8.0.00.0130.00818.62
7.4.330.0130.00417.06
7.4.320.0190.00517.37
7.4.300.0210.00417.61
7.4.290.0180.00717.57
7.4.280.0170.00717.18
7.4.270.0170.00517.38
7.4.260.0180.00417.12
7.4.250.0180.00517.10
7.4.240.0180.00617.32
7.4.230.0170.00617.10
7.4.220.0170.00617.37
7.4.210.0170.00517.16
7.4.200.0140.00617.37
7.4.190.0140.00717.28
7.4.180.0150.00617.45
7.4.160.0160.00717.12
7.4.150.0140.00817.22
7.4.140.0150.00717.31
7.4.130.0170.00616.92
7.4.120.0150.00716.86
7.4.110.0180.00816.91
7.4.100.0190.00616.92
7.4.90.0150.00816.87
7.4.80.0170.00717.04
7.4.70.0180.00616.87
7.4.60.0160.00516.82
7.4.50.0170.00816.79
7.4.40.0150.00916.79
7.4.30.0130.00916.96
7.4.20.0160.00616.88
7.4.10.0150.00716.78
7.4.00.0110.00916.53
7.3.330.0190.00516.67
7.3.320.0190.00516.59
7.3.310.0170.00716.96
7.3.300.0170.00617.15
7.3.290.0170.00616.81
7.3.280.0140.00616.63
7.3.270.0200.00516.89
7.3.260.0180.00716.78
7.3.250.0170.00616.81
7.3.240.0180.00716.74
7.3.230.0180.00616.77
7.3.220.0200.00716.77
7.3.210.0190.00716.68
7.3.200.0210.00716.70
7.3.190.0180.00716.73
7.3.180.0170.00816.69
7.3.170.0170.00716.84
7.3.160.0170.00816.68
7.3.150.0200.00516.75
7.3.140.0180.00916.72
7.3.130.0160.00916.55
7.3.120.0140.00716.25
7.3.110.0160.00616.33
7.3.100.0160.00616.21
7.3.90.0150.00716.32
7.3.80.0150.00716.14
7.3.70.0140.00616.30
7.3.60.0130.00715.85
7.3.50.0140.00815.85
7.3.40.0130.00715.80
7.3.30.0120.00815.75
7.3.20.0150.00716.59
7.3.10.0230.00916.51
7.3.00.0200.00816.57
7.2.340.0160.00816.95
7.2.330.0170.00916.90
7.2.320.0180.00916.89
7.2.310.0190.00716.78
7.2.300.0160.00816.77
7.2.290.0180.00816.88
7.2.280.0170.00916.87
7.2.270.0180.00916.85
7.2.260.0170.00816.73
7.2.250.0170.00716.52
7.2.240.0160.00916.40
7.2.230.0180.00716.31
7.2.220.0160.00716.19
7.2.210.0140.00816.19
7.2.200.0150.00716.24
7.2.190.0140.00816.01
7.2.180.0140.00816.00
7.2.170.0150.00716.06
7.2.160.0140.00615.94
7.2.150.0230.00816.83
7.2.140.0160.00716.79
7.2.130.0160.00716.82
7.2.120.0220.00716.70
7.2.110.0250.00816.76
7.2.100.0460.00716.79
7.2.90.0480.00916.82
7.2.80.0330.00716.80
7.2.70.0440.00816.69
7.2.60.0450.00816.67
7.2.50.0420.00916.66
7.2.40.0410.00916.75
7.2.30.0410.00916.72
7.2.20.0470.00816.69
7.2.10.0390.00816.75
7.2.00.0250.00916.74
7.1.330.0180.00616.29
7.1.320.0180.00516.14
7.1.310.0180.00616.13
7.1.300.0140.00715.80
7.1.290.0160.00615.83
7.1.280.0310.00715.83
7.1.270.0140.00715.83
7.1.260.0150.00715.69
7.1.250.0210.00615.66
7.1.240.0190.00815.72
7.1.230.0440.00715.71
7.1.220.0450.00615.69
7.1.210.0390.00815.69
7.1.200.0400.00815.63
7.1.190.0500.00715.63
7.1.180.0480.00715.62
7.1.170.0520.00715.57
7.1.160.0430.00815.72
7.1.150.0430.00715.53
7.1.140.0420.00815.56
7.1.130.0330.00815.61
7.1.120.0310.00715.60
7.1.110.0250.00715.57
7.1.100.0280.00715.60
7.1.90.0220.00815.50
7.1.80.0250.00615.66
7.1.70.0300.00815.55
7.1.60.0230.00917.31
7.1.50.0240.00917.52
7.1.40.0230.00917.32
7.1.30.0220.00817.35
7.1.20.0220.00817.38
7.1.10.0240.00815.53
7.1.00.0220.00715.51
7.0.330.0240.00815.36
7.0.320.0370.00715.40
7.0.310.0490.00715.29
7.0.300.0450.00815.22
7.0.290.0410.00715.29
7.0.280.0400.00715.32
7.0.270.0310.00615.31
7.0.260.0280.00715.28
7.0.250.0350.00815.33
7.0.240.0360.00615.33
7.0.230.0280.00715.33
7.0.220.0200.00915.29
7.0.210.0210.00715.29
7.0.200.0220.00715.30
7.0.190.0230.00715.35
7.0.180.0240.00815.23
7.0.170.0330.00815.35
7.0.160.0240.00815.29
7.0.150.0260.00715.34
7.0.140.0260.00815.32
7.0.130.0220.00815.33
7.0.120.0310.00615.34
7.0.110.0210.00815.46
7.0.100.0250.00715.28
7.0.90.0220.00815.27
7.0.80.0270.00715.28
7.0.70.0230.00815.24
7.0.60.0230.00815.25
7.0.50.0250.00815.27
7.0.40.0210.00715.33
7.0.30.0170.00715.35
7.0.20.0200.00815.30
7.0.10.0270.00715.30
7.0.00.0220.00715.30
5.6.400.0150.00815.28
5.6.390.0180.00715.27
5.6.380.0150.00815.19
5.6.370.0180.00815.68
5.6.360.0170.00915.64
5.6.350.0170.00815.74
5.6.340.0190.00715.69
5.6.330.0170.00815.70
5.6.320.0180.00715.65
5.6.310.0170.00715.65
5.6.300.0170.01216.00
5.6.290.0160.01316.05
5.6.280.0180.01116.09
5.6.270.0170.01316.08
5.6.260.0160.01516.02
5.6.250.0160.01416.03
5.6.240.0180.01516.12
5.6.230.0180.01316.09
5.6.220.0180.01316.10
5.6.210.0180.01316.07
5.6.200.0180.01416.16
5.6.190.0170.01316.12
5.6.180.0180.01216.12
5.6.170.0160.01316.12
5.6.160.0190.01216.07
5.6.150.0150.01416.10
5.6.140.0160.01316.10
5.6.130.0180.01316.07
5.6.120.0160.01516.08
5.6.110.0170.01416.06
5.6.100.0170.01516.04
5.6.90.0150.01316.04
5.6.80.0150.01216.00
5.6.70.0170.01116.03
5.6.60.0140.01416.02
5.6.50.0150.01315.98
5.6.40.0150.01416.01
5.6.30.0150.01416.00
5.6.20.0180.01215.98
5.6.10.0150.01315.96
5.6.00.0140.01315.96

preferences:
32.81 ms | 403 KiB | 5 Q