3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://localhost/img/'; $dir = 'C:\Program Files\Apache Group\Apache2\htdocs\img'; $max = 5; $images = array( 'a.jpg', 'b.GIF', 'C.png', 'd.JPEG', 'e.jpg', 'f.tiff', 'g.png', 'h.bmp', 'i.jpg', 'j.GIF', 'k.png', ); array_walk($images, function (&$v) use ($url) { $v = $url . $v; }); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>画像</title> </head> <body> <h1><?=$dir?>内の画像一覧</h1> <?php if (!$images): ?> <p>表示する画像はありません</p> <?php else: ?> <table> <tr> <?php foreach ($images as $i => $img): ?> <?php if ($i !== 0 && $i % $max === 0): ?> </tr> <tr> <?php endif; ?> <td><img src="<?=$img?>"></td> <?php endforeach; ?> </tr> </table> <?php endif; ?> </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.0130.00716.73
8.3.50.0150.00616.47
8.3.40.0070.01418.90
8.3.30.0110.00418.54
8.3.20.0050.00318.53
8.3.10.0040.00420.45
8.3.00.0120.00919.10
8.2.180.0120.00616.75
8.2.170.0060.00922.96
8.2.160.0030.01421.06
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0050.00319.77
8.2.110.0000.00920.96
8.2.100.0040.00817.78
8.2.90.0040.00419.48
8.2.80.0000.00719.47
8.2.70.0030.00517.37
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0050.00218.09
8.2.20.0080.00017.69
8.2.10.0050.00317.80
8.2.00.0040.00417.82
8.1.280.0030.01025.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0060.00620.89
8.1.220.0060.00317.74
8.1.210.0030.00518.85
8.1.200.0000.00817.35
8.1.190.0030.00617.66
8.1.180.0000.00818.10
8.1.170.0000.00818.84
8.1.160.0040.00418.95
8.1.150.0000.00718.54
8.1.140.0040.00417.51
8.1.130.0000.00717.85
8.1.120.0070.00017.51
8.1.110.0040.00417.37
8.1.100.0000.00717.41
8.1.90.0070.00017.52
8.1.80.0000.00717.42
8.1.70.0040.00417.45
8.1.60.0080.00017.61
8.1.50.0030.00617.40
8.1.40.0040.00417.50
8.1.30.0030.00517.57
8.1.20.0000.00917.68
8.1.10.0040.00417.52
8.1.00.0000.00717.48
8.0.300.0000.00719.89
8.0.290.0060.00316.75
8.0.280.0070.00018.52
8.0.270.0030.00517.27
8.0.260.0040.00416.85
8.0.250.0040.00416.88
8.0.240.0020.00517.03
8.0.230.0000.00716.88
8.0.220.0050.00216.91
8.0.210.0000.00716.93
8.0.200.0040.00416.89
8.0.190.0000.00716.86
8.0.180.0030.00316.94
8.0.170.0080.00016.80
8.0.160.0070.00016.90
8.0.150.0050.00316.88
8.0.140.0040.00716.76
8.0.130.0040.00413.37
8.0.120.0050.00316.86
8.0.110.0070.00016.96
8.0.100.0030.00616.79
8.0.90.0040.00316.90
8.0.80.0030.01216.89
8.0.70.0040.00416.82
8.0.60.0000.00717.02
8.0.50.0000.00816.79
8.0.30.0140.00917.36
8.0.20.0090.01017.15
8.0.10.0040.00417.07
8.0.00.0090.00916.81
7.4.330.0050.00013.00
7.4.320.0000.00616.59
7.4.300.0060.00016.44
7.4.290.0000.00716.47
7.4.280.0000.00816.53
7.4.270.0040.00416.56
7.4.260.0060.00013.32
7.4.250.0060.00316.46
7.4.240.0000.00816.62
7.4.230.0040.00416.42
7.4.220.0060.01316.39
7.4.210.0060.00916.61
7.4.200.0000.00716.62
7.4.190.0000.00716.55
7.4.160.0130.01016.47
7.4.150.0080.00916.56
7.4.140.0080.00916.53
7.4.130.0050.01116.52
7.4.120.0100.00816.63
7.4.110.0120.00616.58
7.4.100.0100.00716.37
7.4.90.0090.00916.58
7.4.80.0060.01016.35
7.4.70.0120.00316.54
7.4.60.0090.00916.48
7.4.50.0030.00616.38
7.4.40.0100.00316.62
7.4.30.0040.01116.66
7.4.00.0060.00614.72
7.3.330.0000.00613.30
7.3.320.0060.00013.16
7.3.310.0000.00716.23
7.3.300.0030.00316.23
7.3.290.0070.01016.34
7.3.280.0070.01016.35
7.3.270.0090.00916.57
7.3.260.0050.01316.38
7.3.250.0150.00916.53
7.3.240.0140.00816.36
7.3.230.0070.01016.39
7.3.210.0080.00816.57
7.3.200.0100.01319.39
7.3.190.0070.01016.29
7.3.180.0040.01216.60
7.3.170.0090.00616.42
7.3.160.0060.01616.40
7.3.120.0100.00314.79
7.2.330.0100.01016.75
7.2.320.0150.00616.65
7.2.310.0030.01516.77
7.2.300.0110.00816.45
7.2.290.0000.01616.77
7.2.00.0070.00719.54
7.1.100.0040.01118.41
7.1.70.0070.00717.09
7.1.60.0070.01719.40
7.1.50.0070.01317.04
7.1.00.0030.07722.32
7.0.200.0000.01416.94
7.0.140.0070.07021.99
7.0.120.0100.06022.13
7.0.60.0170.06719.92
7.0.50.0070.05317.87
7.0.40.0130.04319.96
7.0.30.0370.07720.34
7.0.20.0100.05720.24
7.0.10.0070.04320.09
7.0.00.0100.09020.16
5.6.280.0070.06720.99
5.6.210.0070.03720.71
5.6.200.0030.07718.19
5.6.190.0200.07720.42
5.6.180.0330.05020.47
5.6.170.0230.05720.54
5.6.160.0070.08720.52
5.6.150.0070.08018.20
5.6.140.0200.04018.15
5.6.130.0030.09018.19
5.6.120.0000.04721.15
5.6.110.0170.07720.99
5.6.100.0100.03721.09
5.6.90.0030.04321.12
5.6.80.0100.07720.51
5.5.350.0330.07020.33
5.5.340.0070.07717.96
5.5.330.0000.08720.29
5.5.320.0170.03720.31
5.5.310.0300.06020.19
5.5.300.0000.04017.98
5.5.290.0070.07717.97
5.5.280.0130.04720.98
5.5.270.0030.04020.73
5.5.260.0100.07020.88
5.5.250.0000.07320.47
5.5.240.0130.07020.22
5.4.450.0030.05319.32
5.4.440.0030.05319.57
5.4.430.0070.04719.56
5.4.420.0000.06719.17
5.4.410.0070.03719.40
5.4.400.0030.05019.15
5.4.390.0030.08018.92
5.4.380.0100.04319.12
5.4.370.0170.03719.15
5.4.360.0030.04019.15
5.4.350.0000.04719.20
5.4.340.0130.03018.92
5.4.320.0100.03319.10
5.4.310.0070.03719.08
5.4.300.0130.07318.95
5.4.290.0130.07018.84
5.4.280.0130.06719.14
5.4.270.0130.06719.00
5.4.260.0030.07719.19
5.4.250.0030.07719.23
5.4.240.0000.06019.11
5.4.230.0170.05719.14
5.4.220.0230.05018.88
5.4.210.0130.05018.91
5.4.200.0070.07719.15
5.4.190.0070.07318.84
5.4.180.0100.07019.14
5.4.170.0100.04318.97
5.4.160.0100.06718.86
5.4.150.0130.04018.96
5.4.140.0100.07016.41
5.4.130.0070.06016.34
5.4.120.0070.05316.53
5.4.110.0100.06016.28
5.4.100.0030.07016.44
5.4.90.0100.07016.34
5.4.80.0030.04716.42
5.4.70.0070.07016.28
5.4.60.0000.05016.51
5.4.50.0030.07016.51
5.4.40.0070.03716.52
5.4.30.0130.06716.26
5.4.20.0030.06716.39
5.4.10.0000.04316.46
5.4.00.0100.05715.87
5.3.290.0100.04014.83
5.3.280.0030.07714.74
5.3.270.0100.05714.75
5.3.260.0100.07314.54
5.3.250.0030.06014.61
5.3.240.0030.06314.66
5.3.230.0070.05314.63
5.3.220.0000.08014.58
5.3.210.0030.07014.72
5.3.200.0030.08014.48
5.3.190.0030.05314.71
5.3.180.0100.07014.61
5.3.170.0070.05714.48
5.3.160.0100.05314.61
5.3.150.0030.04714.57
5.3.140.0070.07714.57
5.3.130.0070.07714.61
5.3.120.0000.07314.55
5.3.110.0030.04314.60
5.3.100.0100.07713.97
5.3.90.0030.05014.07
5.3.80.0030.04014.09
5.3.70.0070.07714.20
5.3.60.0070.07713.97
5.3.50.0070.03714.10
5.3.40.0000.06313.89
5.3.30.0000.07713.89
5.3.20.0030.06313.74
5.3.10.0030.04013.68
5.3.00.0130.06313.64
5.2.170.0100.04010.97
5.2.160.0100.05711.14
5.2.150.0030.07011.10
5.2.140.0070.04311.30
5.2.130.0070.06011.11
5.2.120.0030.03311.09
5.2.110.0030.06011.07
5.2.100.0130.04711.09
5.2.90.0030.06011.03
5.2.80.0070.05711.03
5.2.70.0070.05710.95
5.2.60.0070.06010.95
5.2.50.0030.03311.00
5.2.40.0030.03010.85
5.2.30.0000.03010.96
5.2.20.0000.03010.90
5.2.10.0030.02710.86
5.2.00.0000.03310.70
5.1.60.0030.0239.97
5.1.50.0000.02710.07
5.1.40.0000.0239.99
5.1.30.0000.02710.33
5.1.20.0000.02710.34
5.1.10.0000.02710.15
5.1.00.0100.03010.04
5.0.50.0000.0208.50
5.0.40.0000.0208.37
5.0.30.0000.0308.19
5.0.20.0030.0178.26
5.0.10.0030.0178.18
5.0.00.0000.0308.22
4.4.90.0100.0277.79
4.4.80.0030.0177.79
4.4.70.0000.0177.79
4.4.60.0030.0137.79
4.4.50.0070.0107.79
4.4.40.0000.0237.79
4.4.30.0000.0177.79
4.4.20.0030.0137.82
4.4.10.0070.0107.84
4.4.00.0000.0277.84
4.3.110.0000.0177.84
4.3.100.0000.0177.84
4.3.90.0030.0137.85
4.3.80.0000.0237.86
4.3.70.0000.0237.86
4.3.60.0000.0137.86
4.3.50.0000.0137.86
4.3.40.0000.0237.86
4.3.30.0000.0177.87
4.3.20.0030.0137.87
4.3.10.0000.0137.87
4.3.00.0000.0137.87

preferences:
33.14 ms | 401 KiB | 5 Q