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 = preg_grep('/\.(?:jpe?g|gif|png)\z/i', scandir($dir)); array_walk($images, function (&$v) { $v = $url . $v; }); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head> <body> <h1><?=$path?>内の画像一覧</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.40.0150.00018.84
8.3.30.0110.00318.79
8.3.20.0080.00018.85
8.3.10.0000.00821.05
8.3.00.0080.00023.70
8.2.170.0120.00322.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00421.11
8.2.110.0030.00622.30
8.2.100.0000.01117.91
8.2.90.0050.00219.09
8.2.80.0080.00018.03
8.2.70.0090.00017.38
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0040.00419.66
8.2.20.0020.00517.82
8.2.10.0060.00317.78
8.2.00.0040.00417.78
8.1.270.0040.00423.99
8.1.260.0110.00726.35
8.1.250.0050.00228.09
8.1.240.0060.00322.31
8.1.230.0090.00320.65
8.1.220.0060.00318.77
8.1.210.0040.00418.83
8.1.200.0000.00917.34
8.1.190.0000.00817.55
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0000.00818.94
8.1.150.0040.00418.62
8.1.140.0000.00817.46
8.1.130.0000.00717.88
8.1.120.0040.00417.48
8.1.110.0040.00417.43
8.1.100.0030.00417.46
8.1.90.0070.00317.49
8.1.80.0020.00517.42
8.1.70.0030.00317.47
8.1.60.0030.00517.63
8.1.50.0070.00017.47
8.1.40.0050.00217.56
8.1.30.0030.00517.66
8.1.20.0030.00517.63
8.1.10.0040.00417.53
8.1.00.0030.01017.47
8.0.300.0040.00420.02
8.0.290.0040.00417.05
8.0.280.0030.00318.31
8.0.270.0040.00417.19
8.0.260.0000.00716.75
8.0.250.0030.00316.92
8.0.240.0030.00617.03
8.0.230.0000.00716.93
8.0.220.0070.00016.83
8.0.210.0040.00416.96
8.0.200.0060.00017.00
8.0.190.0050.00217.02
8.0.180.0070.00316.98
8.0.170.0090.00016.99
8.0.160.0040.00416.91
8.0.150.0080.00316.84
8.0.140.0000.00716.79
8.0.130.0070.00013.30
8.0.120.0060.00115.10
8.0.110.0060.00315.07
8.0.100.0050.00515.18
8.0.90.0060.00315.13
8.0.80.0080.00515.11
8.0.70.0060.00415.03
8.0.60.0050.00515.16
8.0.50.0060.00415.03
8.0.30.0100.00715.94
8.0.20.0070.01016.06
8.0.10.0040.00515.27
8.0.00.0100.00315.77
7.4.330.0000.00514.81
7.4.320.0040.00416.47
7.4.300.0060.00016.68
7.4.290.0000.00716.50
7.4.280.0000.00816.65
7.4.270.0040.00416.65
7.4.260.0030.00313.27
7.4.250.0090.00214.92
7.4.240.0000.01114.95
7.4.230.0070.00314.89
7.4.220.0080.00615.02
7.4.210.0070.00815.97
7.4.200.0040.00614.87
7.4.190.0020.00815.00
7.4.180.0060.00613.48
7.4.160.0100.00415.01
7.4.150.0090.00515.33
7.4.140.0140.00316.31
7.4.130.0090.00615.52
7.4.120.0160.00215.44
7.4.110.0100.00514.92
7.4.100.0090.00614.95
7.4.90.0080.00714.91
7.4.80.0090.00316.31
7.4.70.0050.00814.92
7.4.60.0090.00614.90
7.4.50.0050.00614.92
7.4.40.0100.00417.68
7.4.30.0130.00314.87
7.4.20.0070.00613.13
7.4.10.0100.00313.32
7.4.00.0090.00514.23
7.3.330.0050.00013.29
7.3.320.0030.00313.45
7.3.310.0060.00414.86
7.3.300.0090.00214.96
7.3.290.0090.00414.94
7.3.280.0080.00815.67
7.3.270.0060.00915.33
7.3.260.0110.00516.62
7.3.250.0120.00415.36
7.3.240.0060.00714.91
7.3.230.0070.00815.00
7.3.220.0060.00613.18
7.3.210.0020.01114.94
7.3.200.0070.00716.28
7.3.190.0020.01214.89
7.3.180.0060.00614.92
7.3.170.0080.00514.76
7.3.160.0050.00714.87
7.3.150.0080.00213.10
7.3.140.0050.00513.18
7.3.130.0080.00412.89
7.3.120.0060.00614.07
7.3.110.0110.00013.08
7.3.100.0020.00712.78
7.3.90.0090.00013.38
7.3.80.0090.00012.91
7.3.70.0090.00013.19
7.3.60.0080.00013.21
7.3.50.0060.00213.06
7.3.40.0090.00013.20
7.3.30.0000.00913.07
7.3.20.0040.00414.96
7.3.10.0000.01015.02
7.3.00.0040.00415.03
7.2.340.0090.00313.34
7.2.330.0090.00714.99
7.2.320.0050.01314.91
7.2.310.0090.00815.02
7.2.300.0130.00415.00
7.2.290.0060.01214.96
7.2.280.0080.00413.14
7.2.270.0120.00013.14
7.2.260.0090.00413.25
7.2.250.0040.00913.32
7.2.240.0100.00213.16
7.2.230.0060.00613.34
7.2.220.0120.00013.27
7.2.210.0080.00413.22
7.2.200.0110.00313.32
7.2.190.0080.00513.36
7.2.180.0090.00313.33
7.2.170.0060.00613.57
7.2.160.0120.00013.45
7.2.150.0100.00315.11
7.2.140.0090.00315.34
7.2.130.0080.00515.49
7.2.120.0100.00215.36
7.2.110.0120.00015.41
7.2.100.0100.00315.48
7.2.90.0100.00315.33
7.2.80.0100.00315.39
7.2.70.0110.00215.19
7.2.60.0130.00015.32
7.2.50.0090.00515.33
7.2.40.0080.00415.33
7.2.30.0070.00715.39
7.2.20.0070.00715.46
7.2.10.0070.00715.40
7.2.00.0070.00717.48
7.1.330.0090.00214.31
7.1.320.0060.00614.43
7.1.310.0060.00614.32
7.1.300.0060.00614.29
7.1.290.0100.00214.36
7.1.280.0110.00014.43
7.1.270.0090.00314.29
7.1.260.0110.00014.29
7.1.250.0100.00314.26
7.1.240.0110.00014.14
7.1.230.0120.00014.18
7.1.220.0060.00614.22
7.1.210.0080.00414.37
7.1.200.0080.00414.43
7.1.190.0040.00814.18
7.1.180.0090.00314.37
7.1.170.0070.00514.36
7.1.160.0060.00614.37
7.1.150.0120.00014.12
7.1.140.0100.00214.30
7.1.130.0000.01214.13
7.1.120.0060.00614.28
7.1.110.0040.00714.06
7.1.100.0070.00516.21
7.1.90.0120.00014.18
7.1.80.0120.00014.38
7.1.70.0080.00615.75
7.1.60.0070.01316.87
7.1.50.0080.01015.54
7.1.40.0120.00014.38
7.1.30.0120.00014.26
7.1.20.0000.01214.25
7.1.10.0060.00614.13
7.1.00.0020.03418.32
7.0.330.0060.00614.14
7.0.320.0080.00314.21
7.0.310.0110.00013.96
7.0.300.0090.00314.15
7.0.290.0090.00313.95
7.0.280.0000.01113.95
7.0.270.0120.00014.17
7.0.260.0080.00314.00
7.0.250.0060.00614.16
7.0.240.0080.00414.37
7.0.230.0090.00314.34
7.0.220.0000.01314.19
7.0.210.0120.00014.36
7.0.200.0080.00414.67
7.0.190.0080.00414.29
7.0.180.0120.00014.21
7.0.170.0090.00314.38
7.0.160.0100.00314.15
7.0.150.0090.00314.00
7.0.140.0090.03518.19
7.0.130.0080.00414.39
7.0.120.0060.00614.21
7.0.110.0000.01214.09
7.0.100.0050.00614.21
7.0.90.0080.00413.99
7.0.80.0090.00314.11
7.0.70.0080.03817.86
7.0.60.0050.04317.93
7.0.50.0090.04017.99
7.0.40.0090.03817.08
7.0.30.0060.04517.00
7.0.20.0060.04117.05
7.0.10.0060.04517.08
7.0.00.0060.03017.02
5.6.400.0080.00512.65
5.6.390.0040.00812.55
5.6.380.0060.00612.71
5.6.370.0060.00612.60
5.6.360.0110.00012.45
5.6.350.0110.00012.72
5.6.340.0110.00012.61
5.6.330.0080.00312.71
5.6.320.0030.00712.79
5.6.310.0060.00612.55
5.6.300.0050.00512.31
5.6.290.0080.00412.55
5.6.280.0090.03516.76
5.6.270.0090.00212.82
5.6.260.0050.00512.43
5.6.250.0060.00612.61
5.6.240.0080.00312.61
5.6.230.0080.00412.84
5.6.220.0030.03316.63
5.6.210.0090.03016.78
5.6.200.0040.04716.89
5.6.190.0090.04216.95
5.6.180.0140.03316.97
5.6.170.0020.04516.97
5.6.160.0070.03216.83
5.6.150.0090.04417.07
5.6.140.0030.04616.78
5.6.130.0070.03416.87
5.6.120.0040.04516.98
5.6.110.0060.04316.89
5.6.100.0020.04716.88
5.6.90.0130.03716.76
5.6.80.0050.04216.44
5.6.70.0110.03516.67
5.6.60.0050.03516.61
5.6.50.0020.04716.49
5.6.40.0030.04416.55
5.6.30.0110.03016.55
5.6.20.0070.03816.51
5.6.10.0100.03716.56
5.6.00.0100.03516.59
5.5.380.0110.00012.58
5.5.370.0080.00312.81
5.5.360.0030.02916.50
5.5.350.0040.04616.50
5.5.340.0150.03516.68
5.5.330.0080.03316.62
5.5.320.0120.02716.68
5.5.310.0070.03416.81
5.5.300.0060.03216.72
5.5.290.0060.04316.81
5.5.280.0080.03216.66
5.5.270.0110.03816.80
5.5.260.0060.04216.72
5.5.250.0060.04016.59
5.5.240.0040.04216.36
5.5.230.0110.03816.37
5.5.220.0110.03516.50
5.5.210.0080.04216.48
5.5.200.0060.04416.34
5.5.190.0100.03816.35
5.5.180.0120.02816.31
5.5.170.0050.00512.63
5.5.160.0040.03916.31
5.5.150.0070.02616.18
5.5.140.0100.03316.24
5.5.130.0090.03516.27
5.5.120.0030.04316.21
5.5.110.0100.03216.23
5.5.100.0090.04016.31
5.5.90.0080.03916.33
5.5.80.0070.04216.36
5.5.70.0070.04016.46
5.5.60.0030.04216.32
5.5.50.0070.03516.30
5.5.40.0030.04116.31
5.5.30.0040.03316.27
5.5.20.0030.03016.37
5.5.10.0080.03216.30
5.5.00.0050.03316.28
5.4.450.0040.04115.89
5.4.440.0070.04315.83
5.4.430.0100.03315.97
5.4.420.0070.04016.04
5.4.410.0060.03916.01
5.4.400.0090.03015.75
5.4.390.0090.04015.70
5.4.380.0070.03715.74
5.4.370.0060.03915.96
5.4.360.0090.03615.72
5.4.350.0030.03915.72
5.4.340.0060.03115.92
5.4.330.0110.00012.70
5.4.320.0030.03815.89
5.4.310.0090.02815.73
5.4.300.0040.03815.79
5.4.290.0050.03715.70
5.4.280.0090.03315.95
5.4.270.0090.03315.76
5.4.260.0070.03815.82
5.4.250.0110.02815.77
5.4.240.0090.03515.90
5.4.230.0070.04015.78
5.4.220.0060.03815.78
5.4.210.0070.04015.67
5.4.200.0070.02215.69
5.4.190.0050.04315.78
5.4.180.0050.02615.69
5.4.170.0050.04015.71
5.4.160.0040.02815.77
5.4.150.0060.02415.80
5.4.140.0060.02814.58
5.4.130.0070.03514.52
5.4.120.0060.03014.50
5.4.110.0060.03714.55
5.4.100.0050.03714.46
5.4.90.0060.03514.45
5.4.80.0050.03914.63
5.4.70.0070.03214.60
5.4.60.0050.02514.50
5.4.50.0050.03214.45
5.4.40.0050.03314.58
5.4.30.0070.03014.63
5.4.20.0030.03314.47
5.4.10.0070.03814.55
5.4.00.0040.03614.24
5.3.290.0030.04113.96
5.3.280.0050.03713.76
5.3.270.0040.03813.80
5.3.260.0070.03413.85
5.3.250.0060.03413.83
5.3.240.0040.03013.85
5.3.230.0070.01813.67
5.3.220.0060.03813.78
5.3.210.0060.03913.73
5.3.200.0030.04213.70
5.3.190.0100.03213.71
5.3.180.0040.03413.83
5.3.170.0080.03313.82
5.3.160.0020.04313.82
5.3.150.0060.03713.67
5.3.140.0060.03813.91
5.3.130.0090.03813.76
5.3.120.0070.03513.69
5.3.110.0110.03313.72
5.3.100.0100.03513.42
5.3.90.0050.03713.56
5.3.80.0040.04213.37
5.3.70.0030.03313.52
5.3.60.0020.03913.41
5.3.50.0070.02313.34
5.3.40.0050.03513.48
5.3.30.0050.03713.31
5.3.20.0070.03513.24
5.3.10.0050.03713.25
5.3.00.0060.03613.17
5.2.170.0050.03011.40
5.2.160.0010.03511.53
5.2.150.0050.03211.43
5.2.140.0070.03011.40
5.2.130.0050.03011.51
5.2.120.0060.02311.51
5.2.110.0060.03311.51
5.2.100.0030.02311.37
5.2.90.0060.02511.43
5.2.80.0040.03311.36
5.2.70.0050.03011.38
5.2.60.0030.03611.40
5.2.50.0020.02611.45
5.2.40.0030.02411.38
5.2.30.0060.03311.47
5.2.20.0040.03211.39
5.2.10.0000.03311.37
5.2.00.0060.03011.22
5.1.60.0020.02411.02
5.1.50.0070.02310.91
5.1.40.0090.02010.91
5.1.30.0000.03011.07
5.1.20.0060.03011.02
5.1.10.0020.02811.04
5.1.00.0050.02710.81
5.0.50.0030.01810.63
5.0.40.0000.02310.60
5.0.30.0050.03110.60
5.0.20.0030.02310.60
5.0.10.0030.02010.60
5.0.00.0060.02810.60
4.4.90.0020.01810.65
4.4.80.0020.01710.65
4.4.70.0020.01710.65
4.4.60.0020.01510.65
4.4.50.0040.01810.65
4.4.40.0020.02710.65
4.4.30.0030.01710.65
4.4.20.0020.01810.60
4.4.10.0000.01510.60
4.4.00.0010.02910.60
4.3.110.0020.01810.60
4.3.100.0020.01710.60
4.3.90.0020.01510.60
4.3.80.0020.02710.60
4.3.70.0050.01510.60
4.3.60.0020.01910.60
4.3.50.0020.01710.60
4.3.40.0020.02810.60
4.3.30.0020.01810.60
4.3.20.0010.01810.60
4.3.10.0020.01810.60
4.3.00.0030.01510.60

preferences:
83.41 ms | 400 KiB | 5 Q