3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recommendations = array(); ?><html> <body> <h1>Flavor Recommendations</h1> <?php if(!empty($recommendations)) { ?> <ul> <?php foreach($recommendations as $flavor) { ?> <li><?php echo $flavor; ?></li> <?php } ?> </ul> /* I added a paragraph */ <?php } else { ?> <p> <?php echo 'There are no flavor recommendations for you.'; ?> </p> <?php } ?> </body> </html>

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.0000.01416.50
8.3.50.0170.00322.95
8.3.40.0090.00918.59
8.3.30.0070.00719.11
8.3.20.0040.00420.29
8.3.10.0000.00823.70
8.3.00.0050.00319.26
8.2.180.0070.01116.63
8.2.170.0110.00422.96
8.2.160.0100.00618.79
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0150.00026.16
8.2.120.0040.00420.96
8.2.110.0030.00622.12
8.2.100.0000.01218.09
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0000.00817.74
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0000.00818.09
8.2.30.0040.00418.02
8.2.20.0060.00317.57
8.2.10.0040.00418.00
8.2.00.0070.00017.60
8.1.280.0040.01125.92
8.1.270.0030.00624.01
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.12
8.1.230.0080.00419.21
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0090.00017.34
8.1.190.0040.00417.38
8.1.180.0000.00818.10
8.1.170.0060.00318.56
8.1.160.0040.00421.94
8.1.150.0070.00018.82
8.1.140.0000.00817.46
8.1.130.0050.00317.88
8.1.120.0040.00417.46
8.1.110.0040.00417.39
8.1.100.0100.00017.34
8.1.90.0040.00417.41
8.1.80.0000.00717.50
8.1.70.0030.00317.41
8.1.60.0050.00617.64
8.1.50.0030.00517.50
8.1.40.0050.00317.33
8.1.30.0000.00817.48
8.1.20.0060.00317.71
8.1.10.0040.00417.54
8.1.00.0000.00717.34
8.0.300.0090.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0000.00717.16
8.0.260.0080.00017.25
8.0.250.0070.00016.89
8.0.240.0000.00716.80
8.0.230.0000.00816.92
8.0.220.0040.00416.83
8.0.210.0030.00616.88
8.0.200.0030.00316.84
8.0.190.0030.00616.91
8.0.180.0050.00316.81
8.0.170.0040.00416.96
8.0.160.0000.00716.79
8.0.150.0020.00516.77
8.0.140.0000.00716.71
8.0.130.0050.00013.41
8.0.120.0080.00016.91
8.0.110.0000.00716.80
8.0.100.0000.00716.88
8.0.90.0070.00016.84
8.0.80.0040.01116.89
8.0.70.0070.00016.83
8.0.60.0040.00416.78
8.0.50.0040.00416.89
8.0.30.0090.01117.26
8.0.20.0090.00917.40
8.0.10.0070.00016.89
8.0.00.0110.01016.71
7.4.330.0030.00315.00
7.4.320.0060.00016.52
7.4.300.0030.00316.36
7.4.290.0000.00716.61
7.4.280.0000.00816.61
7.4.270.0030.00316.62
7.4.260.0030.00316.51
7.4.250.0080.00016.44
7.4.240.0000.00816.43
7.4.230.0000.00716.34
7.4.220.0030.01816.65
7.4.210.0040.01116.54
7.4.200.0070.00016.60
7.4.160.0160.00616.63
7.4.150.0080.01517.40
7.4.140.0060.01117.86
7.4.130.0100.00716.44
7.4.120.0120.00416.36
7.4.110.0120.00616.60
7.4.100.0030.01316.39
7.4.90.0130.01016.37
7.4.80.0130.01219.39
7.4.70.0100.01316.65
7.4.60.0090.00916.60
7.4.50.0030.00516.44
7.4.40.0070.01716.45
7.4.30.0130.00316.54
7.4.00.0070.01115.02
7.3.330.0050.00013.02
7.3.320.0000.00513.08
7.3.310.0030.00316.25
7.3.300.0030.00316.04
7.3.290.0080.01216.14
7.3.280.0090.00816.09
7.3.270.0090.01617.40
7.3.260.0210.00316.51
7.3.250.0110.00916.39
7.3.240.0180.00016.53
7.3.230.0170.00016.39
7.3.210.0110.00416.16
7.3.200.0140.00919.39
7.3.190.0120.01016.11
7.3.180.0090.00616.27
7.3.170.0060.00916.27
7.3.160.0030.01216.19
7.3.00.0140.00316.39
7.2.330.0130.01116.66
7.2.320.0060.01516.26
7.2.310.0130.00316.66
7.2.300.0080.01616.58
7.2.290.0140.00916.64
7.2.130.0030.01616.64
7.2.120.0080.00316.64
7.2.110.0090.00316.65
7.2.100.0080.00816.68
7.2.90.0070.01016.34
7.2.80.0060.00916.45
7.2.70.0070.00716.64
7.2.60.0040.01116.29
7.2.50.0040.00816.59
7.2.40.0110.00716.70
7.2.30.0000.01116.77
7.2.20.0030.01416.65
7.2.10.0070.01016.65
7.2.00.0100.01017.69
7.1.250.0090.00915.46
7.1.240.0100.00715.25
7.1.230.0030.01015.35
7.1.220.0100.00715.11
7.1.210.0140.00015.17
7.1.200.0090.00615.59
7.1.190.0060.00615.10
7.1.180.0090.00615.51
7.1.170.0060.00615.47
7.1.160.0060.01015.38
7.1.150.0120.00315.63
7.1.140.0070.00715.54
7.1.130.0030.00915.59
7.1.120.0090.00615.43
7.1.110.0030.01215.68
7.1.100.0100.00416.60
7.1.90.0040.00815.74
7.1.80.0060.01015.51
7.1.70.0060.00416.00
7.1.60.0160.00417.40
7.1.50.0030.01115.98
7.1.40.0120.00315.35
7.1.30.0030.01015.49
7.1.20.0060.00615.18
7.1.10.0210.00015.54
7.1.00.0050.04218.76
7.0.330.0070.00714.77
7.0.320.0080.00415.24
7.0.310.0090.00314.93
7.0.300.0130.00315.20
7.0.290.0040.01115.00
7.0.280.0110.00614.77
7.0.270.0050.00815.21
7.0.260.0080.00714.79
7.0.250.0150.00014.79
7.0.240.0070.00715.11
7.0.230.0070.00715.29
7.0.220.0130.00314.92
7.0.210.0100.00314.65
7.0.200.0050.00615.81
7.0.190.0120.00315.14
7.0.180.0090.00614.87
7.0.170.0070.01315.21
7.0.160.0130.00315.16
7.0.150.0130.00515.09
7.0.140.0090.04018.59
7.0.130.0080.00815.15
7.0.120.0140.00415.14
7.0.110.0110.03817.61
7.0.100.0270.03017.56
7.0.90.0400.01817.63
7.0.80.0340.03817.48
7.0.70.0070.03917.55
7.0.60.0130.03317.53
7.0.50.0200.02817.76
7.0.40.0040.03116.43
7.0.30.0110.03816.44
7.0.20.0070.04416.37
7.0.10.0030.03516.55
7.0.00.0070.04316.34
5.6.380.0090.00614.13
5.6.370.0030.00714.25
5.6.360.0040.00813.94
5.6.350.0070.00714.30
5.6.340.0060.00914.05
5.6.330.0040.00713.97
5.6.320.0030.00914.05
5.6.310.0160.00013.82
5.6.300.0100.00814.51
5.6.290.0000.00914.17
5.6.280.0100.03517.44
5.6.270.0080.00313.95
5.6.260.0070.02817.32
5.6.250.0030.03817.32
5.6.240.0070.04217.15
5.6.230.0070.02217.29
5.6.220.0020.02517.36
5.6.210.0060.03017.27
5.6.200.0030.03017.25
5.6.190.0020.04917.30
5.6.180.0060.04117.27
5.6.170.0070.02217.16
5.6.160.0070.03517.18
5.6.150.0080.04017.32
5.6.140.0020.04717.29
5.6.130.0100.04217.52
5.6.120.0040.04217.25
5.6.110.0050.02317.34
5.6.100.0080.03517.26
5.6.90.0110.01717.25
5.6.80.0070.02717.01
5.6.70.0070.02516.92
5.6.60.0050.03416.90
5.6.50.0090.02016.93
5.6.40.0070.04017.00
5.6.30.0100.02716.84
5.6.20.0030.02216.88
5.6.10.0000.02217.11
5.6.00.0050.02516.93
5.5.380.0070.03414.38
5.5.370.0120.02214.36
5.5.360.0050.03214.35
5.5.350.0050.03414.40
5.5.340.0080.02514.52
5.5.330.0080.02114.67
5.5.320.0070.04714.65
5.5.310.0070.04314.52
5.5.300.0050.04314.52
5.5.290.0020.02814.51
5.5.280.0090.02014.58
5.5.270.0050.02514.51
5.5.260.0000.02714.66
5.5.250.0030.04014.62
5.5.240.0030.03414.21
5.5.230.0060.02014.29
5.5.220.0030.02314.22
5.5.210.0020.02214.34
5.5.200.0030.04014.19
5.5.190.0020.02214.14
5.5.180.0020.02314.28
5.5.170.0030.00911.18
5.5.160.0020.02014.31
5.5.150.0090.03114.20
5.5.140.0050.03814.18
5.5.130.0000.04514.21
5.5.120.0000.03014.19
5.5.110.0090.02914.34
5.5.100.0020.02914.15
5.5.90.0080.04014.14
5.5.80.0020.04214.22
5.5.70.0050.03214.26
5.5.60.0000.02114.29
5.5.50.0020.02114.22
5.5.40.0030.04514.33
5.5.30.0060.04314.14
5.5.20.0120.03714.21
5.5.10.0050.02314.28
5.5.00.0030.01814.13
5.4.450.0050.04015.27
5.4.440.0030.03815.29
5.4.430.0010.04415.34
5.4.420.0050.01815.29
5.4.410.0040.02715.31
5.4.400.0060.02015.14
5.4.390.0050.04315.16
5.4.380.0040.01815.09
5.4.370.0030.02515.06
5.4.360.0050.01915.14
5.4.350.0020.03415.14
5.4.340.0070.01915.14
5.4.330.0030.00611.18
5.4.320.0030.02215.05
5.4.310.0000.02615.14
5.4.300.0020.03515.13
5.4.290.0080.03715.21
5.4.280.0080.02615.14
5.4.270.0010.02115.13
5.4.260.0070.02215.10
5.4.250.0040.03615.16
5.4.240.0050.03715.18
5.4.230.0100.03815.05
5.4.220.0050.03015.13
5.4.210.0060.03215.09
5.4.200.0080.02215.14
5.4.190.0050.04015.08
5.4.180.0080.02215.13
5.4.170.0030.03015.09
5.4.160.0020.04215.15
5.4.150.0050.03815.13
5.4.140.0050.02413.82
5.4.130.0050.03313.73
5.4.120.0020.02213.78
5.4.110.0070.02513.79
5.4.100.0030.03013.83
5.4.90.0030.03213.82
5.4.80.0050.03313.72
5.4.70.0030.02213.64
5.4.60.0070.03313.81
5.4.50.0020.02713.81
5.4.40.0010.03613.85
5.4.30.0110.03013.67
5.4.20.0050.03513.77
5.4.10.0020.02113.74
5.4.00.0030.03013.50
5.3.290.0030.03512.85
5.3.280.0000.02912.85
5.3.270.0060.03612.80
5.3.260.0050.02312.88
5.3.250.0070.03512.89
5.3.240.0020.03612.89
5.3.230.0030.02812.85
5.3.220.0000.02912.78
5.3.210.0000.02412.81
5.3.200.0080.03512.80
5.3.190.0030.02512.90
5.3.180.0090.03512.83
5.3.170.0070.03812.84
5.3.160.0070.02012.91
5.3.150.0030.02012.80
5.3.140.0030.02012.90
5.3.130.0010.02512.89
5.3.120.0070.02512.81
5.3.110.0050.02112.77
5.3.100.0070.03712.60
5.3.90.0080.02912.54
5.3.80.0110.03312.61
5.3.70.0040.03012.51
5.3.60.0070.03812.62
5.3.50.0030.03512.61
5.3.40.0050.03712.59
5.3.30.0050.03212.43
5.3.20.0020.02312.34
5.3.10.0050.02612.34
5.3.00.0050.03512.45
5.2.170.0100.02211.54
5.2.160.0070.02011.54
5.2.150.0010.02111.54
5.2.140.0020.01811.54
5.2.130.0010.02111.54
5.2.120.0030.03811.54
5.2.110.0040.02611.54
5.2.100.0100.02311.54
5.2.90.0000.02311.54
5.2.80.0030.03211.54
5.2.70.0020.02011.54
5.2.60.0030.03011.54
5.2.50.0070.02511.54
5.2.40.0030.01311.54
5.2.30.0050.03211.54
5.2.20.0020.02011.54
5.2.10.0030.03311.54
5.2.00.0030.03311.54
5.1.60.0060.02811.54
5.1.50.0000.02011.54
5.1.40.0050.01311.54
5.1.30.0050.03011.54
5.1.20.0030.02011.54
5.1.10.0020.02011.54
5.1.00.0060.02711.54
5.0.50.0000.02211.54
5.0.40.0020.01411.54
5.0.30.0020.03111.54
5.0.20.0030.01111.54
5.0.10.0040.01211.54
5.0.00.0030.01711.54
4.4.90.0020.01211.54
4.4.80.0030.00711.54
4.4.70.0000.01711.54
4.4.60.0050.01511.54
4.4.50.0000.02311.54
4.4.40.0020.01911.54
4.4.30.0020.01911.54
4.4.20.0030.01811.54
4.4.10.0000.01811.54
4.4.00.0000.02711.54
4.3.110.0000.01111.54
4.3.100.0050.00711.54
4.3.90.0000.01011.54
4.3.80.0010.01411.54
4.3.70.0020.00911.54
4.3.60.0020.01011.54
4.3.50.0030.00811.54
4.3.40.0010.01311.54
4.3.30.0070.00511.54
4.3.20.0030.01011.54
4.3.10.0000.01011.54
4.3.00.0000.01011.54

preferences:
58.77 ms | 401 KiB | 5 Q