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', ); $images = preg_grep('/\.(?:jpe?g|gif|png)\z/i', $images); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>画像</title> </head> <body> <h1><?php echo $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.4.20.0100.01017.77
8.4.10.0090.00017.71
8.3.150.0060.00318.98
8.3.140.0000.00519.00
8.3.130.0030.00618.40
8.3.120.0050.00520.81
8.3.110.0040.00418.40
8.3.100.0000.00818.71
8.3.90.0110.00716.61
8.3.80.0040.00718.56
8.3.70.0070.00716.75
8.3.60.0140.00418.43
8.3.50.0270.00422.02
8.3.40.0070.00719.02
8.3.30.0180.00018.90
8.3.20.0040.00420.33
8.3.10.0040.00421.96
8.3.00.0060.00322.58
8.2.270.0060.01217.20
8.2.260.0040.00418.74
8.2.250.0030.00616.68
8.2.240.0070.01116.95
8.2.230.0080.00020.94
8.2.220.0060.00324.06
8.2.210.0000.00826.77
8.2.200.0070.00418.41
8.2.190.0110.00420.31
8.2.180.0100.00718.29
8.2.170.0090.00922.96
8.2.160.0150.00320.84
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0110.00026.16
8.2.120.0040.00417.63
8.2.110.0050.00521.24
8.2.100.0120.00019.22
8.2.90.0080.00018.03
8.2.80.0000.00917.97
8.2.70.0000.01117.80
8.2.60.0000.00818.09
8.2.50.0030.00518.07
8.2.40.0030.00518.09
8.2.30.0060.00317.97
8.2.20.0000.00717.80
8.2.10.0060.00317.91
8.2.00.0000.00817.78
8.1.310.0150.00016.67
8.1.300.0070.01018.26
8.1.290.0080.00318.88
8.1.280.0120.00325.92
8.1.270.0080.00022.14
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00722.45
8.1.230.0050.00521.04
8.1.220.0000.00817.74
8.1.210.0040.00418.85
8.1.200.0000.00817.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00722.05
8.1.150.0020.00518.75
8.1.140.0070.00017.61
8.1.130.0070.00017.74
8.1.120.0040.00417.61
8.1.110.0000.00817.50
8.1.100.0030.00517.63
8.1.90.0050.00317.64
8.1.80.0000.00817.63
8.1.70.0040.00417.61
8.1.60.0060.00317.64
8.1.50.0060.00317.70
8.1.40.0070.00017.75
8.1.30.0030.00617.82
8.1.20.0080.00017.80
8.1.10.0000.00917.69
8.1.00.0020.00517.60
8.0.300.0070.00019.77
8.0.290.0000.00816.88
8.0.280.0000.00718.48
8.0.270.0000.00717.20
8.0.260.0030.00316.89
8.0.250.0040.00417.11
8.0.240.0000.01117.09
8.0.230.0000.00717.09
8.0.220.0000.00716.95
8.0.210.0030.00517.00
8.0.200.0030.00517.12
8.0.190.0040.00417.17
8.0.180.0040.00417.09
8.0.170.0060.00317.10
8.0.160.0040.00417.09
8.0.150.0040.00417.00
8.0.140.0030.00517.05
8.0.130.0030.00313.49
8.0.120.0040.00417.03
8.0.110.0030.00516.87
8.0.100.0000.00817.11
8.0.90.0030.00516.93
8.0.80.0080.00817.00
8.0.70.0070.00017.02
8.0.60.0000.00716.83
8.0.50.0000.00717.01
8.0.30.0100.01317.21
8.0.20.0130.00517.40
8.0.10.0050.00317.12
8.0.00.0110.00917.09
7.4.330.0030.00315.17
7.4.320.0060.00016.86
7.4.300.0000.00616.72
7.4.290.0030.00316.81
7.4.280.0000.00716.82
7.4.270.0050.00216.75
7.4.260.0100.00016.80
7.4.250.0040.00416.72
7.4.240.0060.00216.79
7.4.230.0030.00316.57
7.4.220.0070.01116.73
7.4.210.0070.00716.86
7.4.200.0040.00416.92
7.4.190.0040.00416.91
7.4.160.0070.01616.44
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0130.00716.61
7.4.120.0110.00516.71
7.4.110.0100.01016.82
7.4.100.0140.00316.74
7.4.90.0070.01016.68
7.4.80.0060.01819.39
7.4.70.0130.00516.55
7.4.60.0100.00616.57
7.4.50.0040.00416.47
7.4.40.0030.01022.77
7.4.30.0080.00816.85
7.4.10.0030.01716.61
7.4.00.0080.00815.88
7.3.330.0030.00313.39
7.3.320.0060.00013.27
7.3.310.0040.00416.49
7.3.300.0070.00016.48
7.3.290.0120.00316.48
7.3.280.0110.00716.48
7.3.270.0120.00617.40
7.3.260.0130.01016.64
7.3.250.0060.01516.68
7.3.240.0120.01216.57
7.3.230.0050.01116.70
7.3.210.0060.01116.78
7.3.200.0100.00619.39
7.3.190.0120.00616.46
7.3.180.0160.00316.84
7.3.170.0070.01016.83
7.3.160.0000.01516.69
7.3.130.0070.01016.48
7.3.120.0040.01315.77
7.3.110.0090.00616.71
7.3.100.0030.01016.55
7.3.90.0100.01016.73
7.3.80.0060.01016.44
7.3.70.0060.00816.63
7.3.60.0030.01216.62
7.3.50.0070.00716.54
7.3.40.0100.00716.52
7.3.30.0000.01616.44
7.3.20.0100.00718.45
7.3.10.0120.00618.24
7.3.00.0090.00618.38
7.2.330.0120.00617.00
7.2.320.0060.01616.93
7.2.310.0040.01816.82
7.2.300.0060.01216.79
7.2.290.0070.01016.81
7.2.260.0120.00616.68
7.2.250.0100.01016.74
7.2.240.0120.00616.66
7.2.230.0060.01216.81
7.2.220.0070.01316.63
7.2.210.0060.00816.66
7.2.200.0000.01516.73
7.2.190.0100.00316.87
7.2.180.0030.00716.77
7.2.170.0060.00816.69
7.2.160.0040.00716.45
7.2.150.0060.00618.59
7.2.140.0070.01018.49
7.2.130.0110.00518.55
7.2.120.0030.00918.74
7.2.110.0040.01418.50
7.2.100.0040.01418.58
7.2.90.0040.01218.64
7.2.80.0080.00418.68
7.2.70.0100.00618.60
7.2.60.0060.01218.68
7.2.50.0070.00718.69
7.2.40.0060.00618.65
7.2.30.0040.01218.56
7.2.20.0100.00318.61
7.2.10.0070.00718.57
7.2.00.0060.00819.08
7.1.330.0070.00717.50
7.1.320.0030.01017.46
7.1.310.0090.00917.63
7.1.300.0070.00717.36
7.1.290.0070.00317.46
7.1.280.0090.00917.52
7.1.270.0100.00717.55
7.1.260.0100.00617.51
7.1.250.0000.01617.52
7.1.240.0050.00817.28
7.1.230.0110.00717.51
7.1.220.0060.01317.49
7.1.210.0000.01417.43
7.1.200.0040.01116.79
7.1.190.0070.00717.59
7.1.180.0030.00917.64
7.1.170.0030.00917.47
7.1.160.0030.01017.38
7.1.150.0070.01017.61
7.1.140.0030.00717.55
7.1.130.0040.01117.51
7.1.120.0140.00317.61
7.1.110.0070.00717.58
7.1.100.0030.01218.08
7.1.90.0030.00617.56
7.1.80.0060.01017.53
7.1.70.0000.01117.33
7.1.60.0030.01418.76
7.1.50.0090.01117.33
7.1.40.0110.00817.38
7.1.30.0100.01017.49
7.1.20.0110.00617.41
7.1.10.0100.00717.46
7.1.00.0040.04219.93
7.0.330.0040.01116.95
7.0.320.0000.01317.30
7.0.310.0040.00816.91
7.0.300.0060.00917.13
7.0.290.0030.00917.23
7.0.280.0050.00517.24
7.0.270.0070.01017.27
7.0.260.0100.00317.07
7.0.250.0070.00717.25
7.0.240.0080.00817.30
7.0.230.0070.00517.28
7.0.220.0110.00516.89
7.0.210.0160.00017.28
7.0.200.0050.00516.88
7.0.190.0060.01217.01
7.0.180.0130.00717.29
7.0.170.0030.01617.12
7.0.160.0040.01017.20
7.0.150.0050.01516.96
7.0.140.0060.04019.55
7.0.130.0040.00817.18
7.0.120.0060.00617.16
7.0.110.0100.00717.22
7.0.100.0160.03318.51
7.0.90.0120.04218.61
7.0.80.0120.04018.53
7.0.70.0030.03118.55
7.0.60.0100.04118.52
7.0.50.0050.05018.79
7.0.40.0090.02917.68
7.0.30.0130.03217.69
7.0.20.0030.04117.61
7.0.10.0080.04317.68
7.0.00.0120.04017.54
5.6.400.0030.01016.05
5.6.390.0040.01115.94
5.6.380.0120.00315.94
5.6.370.0030.01316.27
5.6.360.0030.00916.00
5.6.350.0070.00715.83
5.6.340.0060.00815.93
5.6.330.0030.01015.66
5.6.320.0130.00316.02
5.6.310.0060.01016.02
5.6.300.0090.00616.02
5.6.290.0130.00915.82
5.6.280.0070.03818.55
5.6.270.0030.01315.89
5.6.260.0030.01015.97
5.6.250.0030.03918.37
5.6.240.0100.04318.23
5.6.230.0060.02718.24
5.6.220.0070.04718.24
5.6.210.0030.04918.22
5.6.200.0120.04518.38
5.6.190.0080.04318.39
5.6.180.0070.04018.39
5.6.170.0070.04618.43
5.6.160.0050.03818.59
5.6.150.0060.04518.30
5.6.140.0000.04118.48
5.6.130.0080.04118.55
5.6.120.0040.04918.40
5.6.110.0130.03818.49
5.6.100.0050.04218.38
5.6.90.0090.04618.53
5.6.80.0080.02618.11
5.6.70.0060.04318.14
5.6.60.0070.04218.04
5.6.50.0080.04318.10
5.6.40.0110.03818.10
5.6.30.0030.05118.17
5.6.20.0090.02418.14
5.6.10.0080.04518.04
5.6.00.0050.03018.11
5.5.380.0070.03318.18
5.5.370.0070.04418.15
5.5.360.0120.04117.98
5.5.350.0080.04618.14
5.5.340.0050.04018.36
5.5.330.0080.04318.37
5.5.320.0120.02918.33
5.5.310.0080.04518.35
5.5.300.0070.04318.38
5.5.290.0130.02218.34
5.5.280.0080.03618.27
5.5.270.0080.04518.36
5.5.260.0150.03318.37
5.5.250.0060.03818.28
5.5.240.0070.04517.96
5.5.230.0060.02818.15
5.5.220.0100.03718.07
5.5.210.0130.02118.13
5.5.200.0050.04817.98
5.5.190.0130.03818.00
5.5.180.0030.04717.88
5.5.170.0120.00015.85
5.5.160.0080.04618.02
5.5.150.0080.04218.04
5.5.140.0050.03817.94
5.5.130.0170.02718.01
5.5.120.0020.05118.01
5.5.110.0160.03217.80
5.5.100.0020.05017.87
5.5.90.0120.04017.95
5.5.80.0020.03418.10
5.5.70.0030.03817.98
5.5.60.0070.03717.88
5.5.50.0100.04017.91
5.5.40.0100.03717.97
5.5.30.0060.04317.92
5.5.20.0080.04317.84
5.5.10.0080.03517.96
5.5.00.0080.04017.91
5.4.450.0110.04016.06
5.4.440.0080.04716.15
5.4.430.0110.02516.29
5.4.420.0170.03216.05
5.4.410.0060.04316.11
5.4.400.0060.02216.02
5.4.390.0120.03616.06
5.4.380.0080.04215.95
5.4.370.0100.04215.99
5.4.360.0090.04216.07
5.4.350.0030.04316.06
5.4.340.0130.04215.98
5.4.330.0080.01113.00
5.4.320.0090.03116.03
5.4.310.0140.02416.04
5.4.300.0150.03516.02
5.4.290.0040.04415.95
5.4.280.0110.03716.01
5.4.270.0100.02316.05
5.4.260.0050.02615.89
5.4.250.0090.03815.98
5.4.240.0090.04115.90
5.4.230.0050.04516.01
5.4.220.0070.03916.02
5.4.210.0070.02516.06
5.4.200.0080.03416.02
5.4.190.0110.02316.03
5.4.180.0050.04615.99
5.4.170.0090.04415.89
5.4.160.0100.03916.06
5.4.150.0140.03716.01
5.4.140.0080.03314.65
5.4.130.0080.03914.56
5.4.120.0080.03714.68
5.4.110.0040.04314.65
5.4.100.0060.04214.69
5.4.90.0060.04114.63
5.4.80.0100.03714.70
5.4.70.0110.03614.60
5.4.60.0110.04614.65
5.4.50.0030.02314.70
5.4.40.0100.04514.62
5.4.30.0120.03714.70
5.4.20.0100.02214.59
5.4.10.0100.04014.64
5.4.00.0150.03314.41
5.3.290.0120.04113.76
5.3.280.0050.04213.78
5.3.270.0110.03613.78
5.3.260.0070.03913.80
5.3.250.0050.04113.72
5.3.240.0100.03413.80
5.3.230.0100.04213.84
5.3.220.0100.03013.70
5.3.210.0040.04213.77
5.3.200.0100.03813.85
5.3.190.0100.03013.73
5.3.180.0070.02613.74
5.3.170.0110.04213.83
5.3.160.0080.04013.71
5.3.150.0090.01713.86
5.3.140.0120.03313.77
5.3.130.0110.03813.82
5.3.120.0100.02713.70
5.3.110.0130.03713.72
5.3.100.0100.02513.52
5.3.90.0070.04413.53
5.3.80.0080.04013.51
5.3.70.0110.03613.44
5.3.60.0050.04013.52
5.3.50.0080.02813.44
5.3.40.0080.04213.46
5.3.30.0080.02113.39
5.3.20.0060.03913.36
5.3.10.0100.01913.30
5.3.00.0130.03613.31
5.2.170.0070.06011.54
5.2.160.0030.04311.54
5.2.150.0170.05711.54
5.2.140.0030.06711.54
5.2.130.0030.03311.54
5.2.120.0130.04711.54
5.2.110.0030.04311.54
5.2.100.0000.06311.54
5.2.90.0030.05311.54
5.2.80.0030.06311.54
5.2.70.0070.05711.54
5.2.60.0030.07311.54
5.2.50.0030.06011.54
5.2.40.0030.06711.54
5.2.30.0030.03711.54
5.2.20.0130.05311.54
5.2.10.0030.06011.54
5.2.00.0130.04711.54
5.1.60.0000.05711.54
5.1.50.0030.05311.54
5.1.40.0130.04311.54
5.1.30.0000.03311.54
5.1.20.0070.04711.54
5.1.10.0000.05711.54
5.1.00.0070.03011.54
5.0.50.0070.04311.54
5.0.40.0000.04711.54
5.0.30.0070.06311.54
5.0.20.0070.03011.54
5.0.10.0000.02011.54
5.0.00.0070.05011.54
4.4.90.0100.03011.54
4.4.80.0030.03311.54
4.4.70.0000.03711.54
4.4.60.0070.03011.54
4.4.50.0030.03311.54
4.4.40.0070.05011.54
4.4.30.0070.01711.54
4.4.20.0000.03711.54
4.4.10.0000.03311.54
4.4.00.0070.03011.54
4.3.110.0030.03711.54
4.3.100.0030.02711.54
4.3.90.0000.02311.54
4.3.80.0030.05011.54
4.3.70.0000.02311.54
4.3.60.0000.03011.54
4.3.50.0000.02011.54
4.3.40.0070.04311.54
4.3.30.0000.02711.54
4.3.20.0000.02711.54
4.3.10.0000.03011.54
4.3.00.0000.01711.54

preferences:
30.97 ms | 403 KiB | 5 Q