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', ); ?> <!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="<?php echo $url.$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.0100.00716.63
8.3.50.0140.00517.45
8.3.40.0110.00418.71
8.3.30.0110.00418.72
8.3.20.0040.00418.57
8.3.10.0040.00420.34
8.3.00.0080.00017.50
8.2.180.0070.01116.75
8.2.170.0140.00718.78
8.2.160.0120.00622.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0070.00321.18
8.2.100.0030.00917.60
8.2.90.0030.00519.12
8.2.80.0070.00317.97
8.2.70.0030.00517.50
8.2.60.0080.00018.04
8.2.50.0110.00018.10
8.2.40.0030.00618.22
8.2.30.0000.00718.05
8.2.20.0070.00017.59
8.2.10.0000.00917.66
8.2.00.0030.00617.81
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0130.00322.10
8.1.230.0030.00919.16
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0000.00718.74
8.1.150.0000.00818.63
8.1.140.0000.00817.42
8.1.130.0000.00717.88
8.1.120.0040.00417.52
8.1.110.0050.00217.44
8.1.100.0040.00417.29
8.1.90.0000.00717.41
8.1.80.0000.00717.46
8.1.70.0000.00717.47
8.1.60.0000.00717.59
8.1.50.0080.00017.52
8.1.40.0040.00417.41
8.1.30.0050.00317.70
8.1.20.0000.00817.64
8.1.10.0000.00717.41
8.1.00.0030.00517.30
8.0.300.0020.00519.09
8.0.290.0050.00316.58
8.0.280.0000.00718.44
8.0.270.0030.00317.29
8.0.260.0070.00016.87
8.0.250.0000.00716.96
8.0.240.0000.00816.94
8.0.230.0040.00416.97
8.0.220.0040.00416.87
8.0.210.0030.00316.95
8.0.200.0060.00016.95
8.0.190.0040.00417.02
8.0.180.0030.00516.88
8.0.170.0030.00516.96
8.0.160.0000.00716.90
8.0.150.0000.01016.91
8.0.140.0050.00516.84
8.0.130.0060.00013.32
8.0.120.0050.00316.77
8.0.110.0030.00516.93
8.0.100.0040.00416.72
8.0.90.0000.00716.80
8.0.80.0130.00716.93
8.0.70.0000.00717.00
8.0.60.0000.00816.75
8.0.50.0040.00416.95
8.0.30.0070.01417.25
8.0.20.0090.01217.15
8.0.10.0040.00416.96
8.0.00.0110.00916.78
7.4.330.0020.00212.90
7.4.320.0000.00616.48
7.4.300.0000.00616.44
7.4.290.0030.00316.51
7.4.280.0060.00316.39
7.4.270.0070.00316.51
7.4.260.0030.00513.20
7.4.250.0040.00416.38
7.4.240.0070.00016.43
7.4.230.0000.00716.35
7.4.220.0160.01016.58
7.4.210.0060.01216.60
7.4.200.0000.00716.35
7.4.190.0050.00316.72
7.4.160.0100.00516.55
7.4.150.0030.01716.39
7.4.140.0130.00516.53
7.4.130.0140.00716.48
7.4.120.0110.00816.36
7.4.110.0120.00616.59
7.4.100.0100.00716.47
7.4.90.0090.00916.54
7.4.80.0090.01216.52
7.4.70.0130.00716.44
7.4.60.0060.01116.37
7.4.50.0060.00316.38
7.4.40.0120.00316.38
7.4.30.0100.00716.30
7.4.00.0100.00714.85
7.3.330.0000.00613.25
7.3.320.0000.00613.14
7.3.310.0030.00316.17
7.3.300.0000.00716.21
7.3.290.0030.01016.27
7.3.280.0110.00416.33
7.3.270.0130.00316.36
7.3.260.0100.00916.37
7.3.250.0120.00916.53
7.3.240.0150.00416.39
7.3.230.0170.00616.36
7.3.210.0090.00916.65
7.3.200.0120.00919.39
7.3.190.0120.00616.38
7.3.180.0070.00816.32
7.3.170.0100.00716.46
7.3.160.0070.01016.61
7.3.120.0030.01314.59
7.2.330.0070.01316.83
7.2.320.0130.00416.70
7.2.310.0210.01116.43
7.2.300.0100.00716.37
7.2.290.0040.01316.57
7.2.00.0030.01319.17
7.1.100.0000.01018.29
7.1.70.0040.00417.29
7.1.60.0140.01119.40
7.1.50.0090.00316.95
7.1.00.0030.06722.43
7.0.200.0910.00414.83
7.0.140.0100.06722.15
7.0.120.0070.06022.15
7.0.60.0070.08319.91
7.0.50.0070.07017.80
7.0.40.0170.06720.24
7.0.30.0300.06720.02
7.0.20.0170.08720.04
7.0.10.0330.06020.30
7.0.00.0100.03720.13
5.6.280.0000.08021.07
5.6.210.0000.08720.76
5.6.200.0100.07718.11
5.6.190.0070.04320.61
5.6.180.0030.08020.61
5.6.170.0330.07720.49
5.6.160.0170.07320.54
5.6.150.0030.03718.18
5.6.140.0100.05718.20
5.6.130.0100.08318.18
5.6.120.0100.05721.14
5.6.110.0130.07021.02
5.6.100.0070.08021.00
5.6.90.0070.04020.98
5.6.80.0070.08020.42
5.6.70.4270.03720.42
5.5.350.0100.06320.33
5.5.340.0030.06317.93
5.5.330.0030.05020.21
5.5.320.0400.07720.24
5.5.310.0500.06320.29
5.5.300.0100.07317.98
5.5.290.0100.03317.96
5.5.280.0130.06720.73
5.5.270.0200.07320.79
5.5.260.0070.07320.76
5.5.250.0030.07720.55
5.5.240.0130.05720.27
5.4.450.0370.07019.47
5.4.440.4030.03719.10
5.4.430.0130.07719.46
5.4.420.0130.07319.35
5.4.410.0000.06319.15
5.4.400.0100.05319.16
5.4.390.0200.06019.05
5.4.380.0130.06018.72
5.4.370.0300.05018.57
5.4.360.2900.04018.49
5.4.350.0040.04011.98
5.4.340.0060.03511.97
5.4.320.0060.03512.46
5.4.310.0040.03912.45
5.4.300.0110.04112.46
5.4.290.0110.04512.46
5.4.280.0060.04812.35
5.4.270.0070.04412.36
5.4.260.0090.04312.36
5.4.250.0070.04612.35
5.4.240.0070.04812.35
5.4.230.0080.04912.35
5.4.220.0090.04312.34
5.4.210.0070.04012.35
5.4.200.0070.03912.34
5.4.190.0050.04412.34
5.4.180.0060.04312.34
5.4.170.0060.04312.35
5.4.160.0080.03712.35
5.4.150.0080.03612.35
5.4.140.0060.03912.03
5.4.130.0080.03812.02
5.4.120.0080.04311.97
5.4.110.0080.04011.97
5.4.100.0070.03711.97
5.4.90.0080.04211.97
5.4.80.0110.03911.97
5.4.70.0050.04211.96
5.4.60.0080.04011.96
5.4.50.0060.04511.96
5.4.40.0080.05011.95
5.4.30.0080.04011.95
5.4.20.0070.03711.95
5.4.10.0090.03511.95
5.4.00.0080.04211.44
5.3.290.0040.04412.80
5.3.280.0070.04412.71
5.3.270.0050.04912.72
5.3.260.0080.04412.72
5.3.250.0070.04512.72
5.3.240.0060.04412.72
5.3.230.0050.04612.71
5.3.220.0090.04112.68
5.3.210.0070.04212.68
5.3.200.0070.04412.68
5.3.190.0070.04512.67
5.3.180.0070.03912.67
5.3.170.0080.05112.67
5.3.160.0110.04912.67
5.3.150.0070.03812.67
5.3.140.0060.04212.66
5.3.130.0060.04312.66
5.3.120.0070.04412.66
5.3.110.0050.04412.66
5.3.100.0050.04112.12
5.3.90.0070.03612.08
5.3.80.0050.03812.08
5.3.70.0050.03812.07
5.3.60.0080.04012.07
5.3.50.0050.04212.00
5.3.40.0060.04712.00
5.3.30.0100.04411.94

preferences:
55.72 ms | 401 KiB | 5 Q