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><?=$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.0040.01118.68
8.3.50.0100.00821.09
8.3.40.0110.00418.95
8.3.30.0090.00618.71
8.3.20.0040.00418.90
8.3.10.0090.00021.08
8.3.00.0090.00023.69
8.2.180.0110.00716.63
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0050.00520.91
8.2.100.0080.00317.84
8.2.90.0040.00419.24
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00617.93
8.2.50.0050.00318.10
8.2.40.0040.00417.91
8.2.30.0030.00519.55
8.2.20.0050.00317.82
8.2.10.0000.00717.82
8.2.00.0000.00717.88
8.1.280.0100.01025.92
8.1.270.0070.00023.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00623.84
8.1.230.0060.00617.83
8.1.220.0030.00517.79
8.1.210.0030.00618.77
8.1.200.0100.00017.47
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0050.00318.63
8.1.160.0070.00018.94
8.1.150.0000.00718.70
8.1.140.0040.00417.41
8.1.130.0030.00317.79
8.1.120.0000.00817.43
8.1.110.0030.00517.53
8.1.100.0000.00717.52
8.1.90.0080.00017.47
8.1.80.0040.00417.52
8.1.70.0000.00717.40
8.1.60.0000.01017.64
8.1.50.0040.00417.53
8.1.40.0090.00017.57
8.1.30.0040.00417.73
8.1.20.0000.00817.67
8.1.10.0000.00817.62
8.1.00.0030.00617.48
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0040.00418.41
8.0.270.0000.00717.31
8.0.260.0000.00616.94
8.0.250.0000.00717.14
8.0.240.0030.00617.08
8.0.230.0000.00717.05
8.0.220.0000.00717.03
8.0.210.0000.00717.00
8.0.200.0030.00317.11
8.0.190.0050.00317.00
8.0.180.0030.00416.97
8.0.170.0040.00717.02
8.0.160.0000.00816.94
8.0.150.0050.00316.97
8.0.140.0000.00816.97
8.0.130.0060.00013.39
8.0.120.0040.00615.16
8.0.110.0070.00415.15
8.0.100.0040.00715.19
8.0.90.0080.00315.14
8.0.80.0070.00915.17
8.0.70.0040.00515.10
8.0.60.0070.00315.19
8.0.50.0080.00215.21
8.0.30.0080.00915.91
8.0.20.0090.00816.13
8.0.10.0080.00415.31
8.0.00.0030.01115.73
7.4.330.0000.00514.84
7.4.320.0000.00816.66
7.4.300.0000.00716.57
7.4.290.0000.00716.56
7.4.280.0080.00016.67
7.4.270.0000.00816.52
7.4.260.0030.00313.32
7.4.250.0110.00114.95
7.4.240.0100.00214.94
7.4.230.0050.00314.85
7.4.220.0140.00315.01
7.4.210.0060.00815.99
7.4.200.0030.00514.92
7.4.190.0040.00415.12
7.4.180.0030.00613.36
7.4.160.0060.00714.92
7.4.150.0030.00915.35
7.4.140.0090.00616.31
7.4.130.0050.00915.43
7.4.120.0080.00615.40
7.4.110.0080.00614.90
7.4.100.0080.00714.94
7.4.90.0060.00715.03
7.4.80.0050.00816.33
7.4.70.0040.00714.84
7.4.60.0050.00814.92
7.4.50.0030.00514.88
7.4.40.0050.00917.88
7.4.30.0150.00014.88
7.4.20.0040.00413.23
7.4.10.0040.00813.27
7.4.00.0080.00514.31
7.3.330.0050.00013.28
7.3.320.0050.00013.45
7.3.310.0040.00714.88
7.3.300.0090.00114.85
7.3.290.0110.00414.84
7.3.280.0090.00715.64
7.3.270.0110.00515.44
7.3.260.0090.00816.57
7.3.250.0110.00715.46
7.3.240.0100.00814.86
7.3.230.0090.00614.93
7.3.220.0090.00413.38
7.3.210.0120.00514.87
7.3.200.0090.00716.36
7.3.190.0110.00614.97
7.3.180.0140.00214.96
7.3.170.0070.00814.95
7.3.160.0090.00414.96
7.3.150.0090.00313.32
7.3.140.0110.00013.24
7.3.130.0110.00513.38
7.3.120.0100.00514.28
7.3.110.0110.00413.12
7.3.100.0070.00713.09
7.3.90.0140.00013.58
7.3.80.0140.00013.35
7.3.70.0080.00713.31
7.3.60.0130.00313.34
7.3.50.0110.00413.38
7.3.40.0090.00413.29
7.3.30.0100.00313.51
7.3.20.0080.00815.13
7.3.10.0140.00415.71
7.3.00.0090.00815.55
7.2.340.0070.00713.30
7.2.330.0100.00615.02
7.2.320.0070.01014.92
7.2.310.0120.00514.83
7.2.300.0070.00814.95
7.2.290.0120.00514.85
7.2.280.0130.00013.36
7.2.270.0100.00313.27
7.2.260.0140.00013.32
7.2.250.0100.00213.12
7.2.240.0090.00313.37
7.2.230.0110.00313.32
7.2.220.0120.00013.32
7.2.210.0090.00613.30
7.2.200.0080.00813.54
7.2.190.0110.00413.31
7.2.180.0100.00313.39
7.2.170.0120.00013.38
7.2.160.0150.00013.42
7.2.150.0140.00015.36
7.2.140.0090.00315.36
7.2.130.0150.00315.76
7.2.120.0100.00815.87
7.2.110.0120.00415.91
7.2.100.0100.00815.85
7.2.90.0140.00315.88
7.2.80.0130.00415.96
7.2.70.0160.00415.98
7.2.60.0110.00515.66
7.2.50.0100.00815.80
7.2.40.0110.00815.71
7.2.30.0110.00716.11
7.2.20.0110.00815.92
7.2.10.0100.00515.88
7.2.00.0110.01016.13
7.1.330.0130.00014.40
7.1.320.0100.00314.48
7.1.310.0080.00514.38
7.1.300.0060.00614.23
7.1.290.0100.00314.16
7.1.280.0120.00014.39
7.1.270.0110.00314.21
7.1.260.0100.00314.38
7.1.250.0110.00514.74
7.1.240.0100.00314.29
7.1.230.0070.00514.34
7.1.220.0090.00314.22
7.1.210.0100.00214.33
7.1.200.0120.00014.38
7.1.190.0100.00314.36
7.1.180.0090.00314.33
7.1.170.0080.00414.34
7.1.160.0120.00014.20
7.1.150.0120.00214.33
7.1.140.0130.00014.28
7.1.130.0080.00514.34
7.1.120.0080.00614.29
7.1.110.0120.00414.21
7.1.100.0130.00014.11
7.1.90.0050.00914.28
7.1.80.0060.00614.35
7.1.70.0100.00215.68
7.1.60.0120.00816.88
7.1.50.0190.00724.51
7.1.40.0000.01314.32
7.1.30.0070.00514.34
7.1.20.0090.00414.21
7.1.10.0100.00314.10
7.1.00.0050.02018.29
7.0.330.0090.00314.21
7.0.320.0080.00414.13
7.0.310.0040.00814.18
7.0.300.0130.00014.13
7.0.290.0130.00014.25
7.0.280.0060.00614.16
7.0.270.0090.00214.06
7.0.260.0080.00414.08
7.0.250.0040.00814.28
7.0.240.0050.00514.33
7.0.230.0050.00614.45
7.0.220.0090.00414.28
7.0.210.0130.00014.39
7.0.200.0060.00315.45
7.0.190.0080.00414.29
7.0.180.0120.00014.25
7.0.170.0090.00514.38
7.0.160.0120.00014.32
7.0.150.0060.00614.09
7.0.140.0080.03718.05
7.0.130.0040.00914.10
7.0.120.0120.00014.20
7.0.110.0120.00014.15
7.0.100.0080.00414.07
7.0.90.0120.00014.09
7.0.80.0000.01213.99
7.0.70.0110.03817.94
7.0.60.0130.03817.99
7.0.50.0070.03918.10
7.0.40.0090.04317.04
7.0.30.0080.04517.15
7.0.20.0030.02617.15
7.0.10.0070.02317.07
7.0.00.0070.05317.09
5.6.400.0070.00512.74
5.6.390.0080.00412.61
5.6.380.0060.00512.52
5.6.370.0110.00012.66
5.6.360.0070.00412.73
5.6.350.0090.00312.60
5.6.340.0070.00712.68
5.6.330.0120.00012.41
5.6.320.0050.00512.52
5.6.310.0100.00212.46
5.6.300.0060.00612.39
5.6.290.0060.00612.61
5.6.280.0110.03416.65
5.6.270.0040.00912.64
5.6.260.0120.00012.56
5.6.250.0060.00612.64
5.6.240.0120.00012.75
5.6.230.0110.00012.93
5.6.220.0070.03616.72
5.6.210.0050.04316.72
5.6.200.0020.04916.93
5.6.190.0070.03917.04
5.6.180.0080.04216.88
5.6.170.0050.04316.95
5.6.160.0090.02116.91
5.6.150.0080.02017.08
5.6.140.0050.02316.95
5.6.130.0040.02316.90
5.6.120.0080.02017.08
5.6.110.0090.04216.95
5.6.100.0080.02216.83
5.6.90.0040.02716.80
5.6.80.0060.02416.60
5.6.70.0040.02116.55
5.6.60.0080.01516.54
5.6.50.0030.02316.44
5.6.40.0060.03016.45
5.6.30.0070.02016.48
5.6.20.0050.03516.61
5.6.10.0090.01316.48
5.6.00.0030.01916.52
5.5.380.0090.00312.61
5.5.370.0040.00712.82
5.5.360.0090.04116.45
5.5.350.0050.04316.51
5.5.340.0040.02716.76
5.5.330.0130.03516.81
5.5.320.0070.04016.72
5.5.310.0050.03316.73
5.5.300.0090.01816.77
5.5.290.0040.02416.78
5.5.280.0050.02316.78
5.5.270.0120.01316.75
5.5.260.0020.02616.73
5.5.250.0060.02016.61
5.5.240.0040.02116.46
5.5.230.0080.03016.35
5.5.220.0030.02316.38
5.5.210.0050.02716.42
5.5.200.0030.02616.36
5.5.190.0020.02616.32
5.5.180.0060.01916.51
5.5.170.0100.00312.59
5.5.160.0070.01816.22
5.5.150.0050.01916.26
5.5.140.0050.02716.27
5.5.130.0030.02016.28
5.5.120.0070.01816.36
5.5.110.0040.02516.41
5.5.100.0050.02116.42
5.5.90.0050.02716.39
5.5.80.0090.03516.36
5.5.70.0060.03316.30
5.5.60.0080.03316.32
5.5.50.0030.04416.32
5.5.40.0080.03616.38
5.5.30.0110.03516.33
5.5.20.0090.03716.30
5.5.10.0060.04016.45
5.5.00.0040.04616.31
5.4.450.0060.02016.15
5.4.440.0060.02016.11
5.4.430.0080.01715.94
5.4.420.0030.02916.07
5.4.410.0050.02915.95
5.4.400.0060.02115.81
5.4.390.0060.01715.99
5.4.380.0080.02515.85
5.4.370.0090.01515.86
5.4.360.0070.02015.85
5.4.350.0060.02015.69
5.4.340.0000.02515.78
5.4.330.0120.00012.59
5.4.320.0040.02115.86
5.4.310.0040.01915.88
5.4.300.0030.01815.89
5.4.290.0000.02315.76
5.4.280.0070.01615.91
5.4.270.0060.01915.69
5.4.260.0000.02615.66
5.4.250.0020.02215.93
5.4.240.0050.04115.75
5.4.230.0100.03515.64
5.4.220.0060.04115.68
5.4.210.0100.04315.73
5.4.200.0080.04015.76
5.4.190.0040.04215.76
5.4.180.0060.04315.88
5.4.170.0070.04015.75
5.4.160.0080.03315.54
5.4.150.0050.04015.87
5.4.140.0070.03814.43
5.4.130.0050.04014.40
5.4.120.0070.03514.58
5.4.110.0090.02514.51
5.4.100.0060.03914.60
5.4.90.0070.03114.60
5.4.80.0060.03814.54
5.4.70.0060.04014.59
5.4.60.0050.03614.59
5.4.50.0050.03714.48
5.4.40.0060.03614.46
5.4.30.0080.03714.52
5.4.20.0060.03114.65
5.4.10.0050.04014.59
5.4.00.0030.04114.23
5.3.290.0040.02213.78
5.3.280.0030.03913.89
5.3.270.0080.03013.82
5.3.260.0090.03813.84
5.3.250.0080.03813.75
5.3.240.0070.02513.75
5.3.230.0060.03613.74
5.3.220.0070.04013.77
5.3.210.0040.04113.76
5.3.200.0040.02313.83
5.3.190.0030.04313.77
5.3.180.0090.02813.86
5.3.170.0080.03713.74
5.3.160.0040.02813.86
5.3.150.0030.03913.80
5.3.140.0110.03513.75
5.3.130.0080.03913.81
5.3.120.0050.04513.86
5.3.110.0060.03113.69
5.3.100.0070.02513.62
5.3.90.0050.03313.47
5.3.80.0020.02213.41
5.3.70.0040.03413.41
5.3.60.0030.04113.49
5.3.50.0080.03013.42
5.3.40.0050.04013.38
5.3.30.0050.03913.53
5.3.20.0040.02913.28
5.3.10.0030.03413.18
5.3.00.0070.01713.04
5.2.170.0040.02312.05
5.2.160.0070.03011.93
5.2.150.0060.03212.05
5.2.140.0000.03611.89
5.2.130.0020.03311.92
5.2.120.0020.03212.05
5.2.110.0040.02311.92
5.2.100.0000.03412.00
5.2.90.0020.02111.92
5.2.80.0060.01911.98
5.2.70.0020.01811.91
5.2.60.0030.03511.94
5.2.50.0020.03611.88
5.2.40.0020.02711.92
5.2.30.0080.02912.00
5.2.20.0050.02511.81
5.2.10.0060.02611.75
5.2.00.0060.03011.87
5.1.60.0020.02611.55
5.1.50.0030.03111.45
5.1.40.0040.02711.49
5.1.30.0040.02411.65
5.1.20.0040.03011.57
5.1.10.0030.01411.54
5.1.00.0000.01711.49
5.0.50.0050.02311.14
5.0.40.0030.02311.14
5.0.30.0030.03011.14
5.0.20.0060.02011.14
5.0.10.0020.02211.14
5.0.00.0050.03211.14
4.4.90.0030.01811.14
4.4.80.0030.00711.14
4.4.70.0020.02011.14
4.4.60.0000.01811.14
4.4.50.0020.01711.14
4.4.40.0020.02811.14
4.4.30.0000.02011.14
4.4.20.0010.01111.14
4.4.10.0000.02011.14
4.4.00.0020.02711.14
4.3.110.0010.01311.14
4.3.100.0020.01711.14
4.3.90.0020.01711.14
4.3.80.0050.02511.14
4.3.70.0020.01711.14
4.3.60.0040.01711.14
4.3.50.0050.01511.14
4.3.40.0000.02011.14
4.3.30.0020.01311.14
4.3.20.0030.01811.14
4.3.10.0020.01411.14
4.3.00.0000.01511.14

preferences:
52.22 ms | 401 KiB | 5 Q