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="<?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.0070.01016.50
8.3.50.0090.00821.98
8.3.40.0110.00818.71
8.3.30.0100.00319.09
8.3.20.0040.00420.31
8.3.10.0080.00023.60
8.3.00.0080.00022.39
8.2.180.0180.00416.50
8.2.170.0180.00322.96
8.2.160.0040.01220.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00822.14
8.2.110.0000.00922.16
8.2.100.0080.00317.78
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0070.00418.07
8.2.40.0060.00319.34
8.2.30.0000.00718.06
8.2.20.0000.00717.68
8.2.10.0040.00417.64
8.2.00.0000.00717.70
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.76
8.1.230.0080.00419.16
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.49
8.1.180.0000.00818.10
8.1.170.0060.00318.72
8.1.160.0030.00622.10
8.1.150.0040.00418.56
8.1.140.0060.00317.47
8.1.130.0000.00720.30
8.1.120.0000.00717.50
8.1.110.0000.00717.44
8.1.100.0050.00217.52
8.1.90.0080.00017.46
8.1.80.0040.00417.43
8.1.70.0030.00317.42
8.1.60.0050.00517.67
8.1.50.0040.00417.50
8.1.40.0000.00817.47
8.1.30.0030.00517.60
8.1.20.0040.00417.63
8.1.10.0000.00717.39
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0000.00717.04
8.0.280.0050.00318.36
8.0.270.0030.00317.25
8.0.260.0000.00618.49
8.0.250.0030.00316.93
8.0.240.0070.00016.98
8.0.230.0040.00416.86
8.0.220.0030.00316.86
8.0.210.0000.00716.89
8.0.200.0050.00516.89
8.0.190.0040.00416.97
8.0.180.0030.00516.85
8.0.170.0040.00416.82
8.0.160.0050.00216.85
8.0.150.0040.00416.91
8.0.140.0000.00716.92
8.0.130.0000.00613.32
8.0.120.0040.00416.82
8.0.110.0030.00516.91
8.0.100.0000.00716.93
8.0.90.0040.00416.80
8.0.80.0030.01616.79
8.0.70.0000.00716.85
8.0.60.0040.00416.86
8.0.50.0040.00416.94
8.0.30.0110.01016.96
8.0.20.0140.00717.40
8.0.10.0040.00417.06
8.0.00.0090.01216.70
7.4.330.0050.00015.00
7.4.320.0000.00616.57
7.4.300.0000.00716.46
7.4.290.0000.00716.62
7.4.280.0000.00716.52
7.4.270.0030.00316.52
7.4.260.0000.00716.55
7.4.250.0040.00416.58
7.4.240.0020.00516.54
7.4.230.0080.00016.71
7.4.220.0070.01116.41
7.4.210.0040.01216.66
7.4.200.0070.00016.64
7.4.190.0000.00716.61
7.4.160.0150.00016.33
7.4.150.0100.01017.40
7.4.140.0160.00517.86
7.4.130.0110.01016.44
7.4.120.0090.01216.68
7.4.110.0120.00616.67
7.4.100.0080.01016.41
7.4.90.0150.00416.53
7.4.80.0120.00619.39
7.4.70.0030.01516.54
7.4.60.0080.00816.56
7.4.50.0000.00816.37
7.4.40.0090.00622.77
7.4.30.0140.00316.65
7.4.10.0080.00815.16
7.4.00.0130.00314.88
7.3.330.0000.00613.45
7.3.320.0050.00013.14
7.3.310.0000.00716.26
7.3.300.0040.00416.25
7.3.290.0100.00716.32
7.3.280.0130.00516.35
7.3.270.0080.01117.40
7.3.260.0090.01216.47
7.3.250.0100.01216.37
7.3.240.0070.01016.44
7.3.230.0040.01516.39
7.3.210.0140.00316.37
7.3.200.0100.00719.39
7.3.190.0110.01116.34
7.3.180.0120.00416.35
7.3.170.0060.00916.32
7.3.160.0060.00916.42
7.3.130.0070.01014.91
7.3.120.0020.01114.82
7.3.110.0060.01314.91
7.3.100.0040.01114.54
7.3.90.0040.01114.84
7.3.80.0090.00614.65
7.3.70.0040.00814.41
7.3.60.0040.01114.92
7.3.50.0040.01114.71
7.3.40.0000.01614.70
7.3.30.0040.00814.61
7.3.20.0040.00716.49
7.3.10.0030.00716.26
7.3.00.0030.00616.70
7.2.330.0080.01116.77
7.2.320.0090.00916.75
7.2.310.0070.01116.58
7.2.300.0100.00716.73
7.2.290.0080.00816.39
7.2.260.0070.01014.93
7.2.250.0040.01514.69
7.2.240.0030.01314.75
7.2.230.0060.00615.11
7.2.220.0040.01214.91
7.2.210.0070.00715.01
7.2.200.0060.00615.04
7.2.190.0070.00314.97
7.2.180.0070.00715.02
7.2.170.0030.01114.86
7.2.160.0000.00915.07
7.2.150.0030.01016.77
7.2.140.0110.00616.38
7.2.130.0060.00617.04
7.2.120.0030.00916.72
7.2.110.0100.00616.65
7.2.100.0120.00416.60
7.2.90.0060.01016.92
7.2.80.0000.01716.63
7.2.70.0070.01016.71
7.2.60.0090.00616.88
7.2.50.0030.01116.58
7.2.40.0100.00716.88
7.2.30.0080.00616.76
7.2.20.0120.00017.03
7.2.10.0120.00416.79
7.2.00.0070.00818.06
7.1.330.0060.00615.83
7.1.320.0030.01015.74
7.1.310.0030.01315.41
7.1.300.0080.00815.55
7.1.290.0030.01015.68
7.1.280.0110.00415.54
7.1.270.0000.01015.79
7.1.260.0000.01415.36
7.1.250.0030.00915.75
7.1.240.0060.00615.87
7.1.230.0080.00415.69
7.1.220.0040.01115.71
7.1.210.0060.01215.85
7.1.200.0050.00615.60
7.1.190.0130.00015.52
7.1.180.0050.00515.54
7.1.170.0060.00915.65
7.1.160.0060.00615.69
7.1.150.0090.00615.79
7.1.140.0060.00615.70
7.1.130.0040.00415.82
7.1.120.0030.01016.02
7.1.110.0100.00315.68
7.1.100.0080.00516.96
7.1.90.0030.00815.82
7.1.80.0120.00315.67
7.1.70.0050.00616.54
7.1.60.0110.00717.52
7.1.50.0050.01216.49
7.1.40.0040.00815.60
7.1.30.0090.00615.84
7.1.20.0040.00415.91
7.1.10.0090.00015.68
7.1.00.0060.04119.15
7.0.330.0040.00715.24
7.0.320.0030.01015.38
7.0.310.0040.01115.19
7.0.300.0000.00815.38
7.0.290.0060.00315.07
7.0.280.0070.00415.11
7.0.270.0030.01015.29
7.0.260.0030.00715.45
7.0.250.0050.00315.45
7.0.240.0090.00315.41
7.0.230.0100.00315.16
7.0.220.0070.00715.19
7.0.210.0100.00315.08
7.0.200.0000.00916.15
7.0.190.0030.00714.93
7.0.180.0040.01115.33
7.0.170.0000.01415.23
7.0.160.0030.01015.56
7.0.150.0030.00915.37
7.0.140.0100.03318.74
7.0.130.0070.00715.41
7.0.120.0040.00815.51
7.0.110.0060.00615.31
7.0.100.0070.03017.60
7.0.90.0020.02617.71
7.0.80.0030.02717.68
7.0.70.0050.02217.65
7.0.60.0070.02317.82
7.0.50.0020.02617.95
7.0.40.0040.02616.70
7.0.30.0110.02216.83
7.0.20.0030.02816.80
7.0.10.0040.02116.63
7.0.00.0070.02416.70
5.6.400.0040.01414.19
5.6.390.0070.00414.59
5.6.380.0030.00914.55
5.6.370.0030.01314.36
5.6.360.0090.00614.46
5.6.350.0070.00414.25
5.6.340.0030.00714.18
5.6.330.0090.00614.62
5.6.320.0070.00714.24
5.6.310.0040.00714.02
5.6.300.0080.00314.52
5.6.290.0070.00714.13
5.6.280.0030.04317.54
5.6.270.0070.00714.39
5.6.260.0040.00414.45
5.6.250.0030.03517.49
5.6.240.0060.02417.38
5.6.230.0070.02317.20
5.6.220.0030.02417.39
5.6.210.0050.02417.46
5.6.200.0060.02517.57
5.6.190.0160.01617.52
5.6.180.0070.02417.58
5.6.170.0030.02717.90
5.6.160.0070.02217.74
5.6.150.0050.02417.67
5.6.140.0050.02517.71
5.6.130.0030.02717.57
5.6.120.0070.02217.53
5.6.110.0070.01917.74
5.6.100.0110.01517.78
5.6.90.0080.02017.77
5.6.80.0060.03617.29
5.6.70.0080.04117.22
5.6.60.0060.02617.34
5.6.50.0110.03917.19
5.6.40.0060.02117.30
5.6.30.0130.03517.38
5.6.20.0050.03717.35
5.6.10.0060.02017.27
5.6.00.0080.04317.29
5.5.380.0100.02717.30
5.5.370.0050.02517.32
5.5.360.0070.02217.50
5.5.350.0070.02417.28
5.5.340.0030.02417.43
5.5.330.0090.02017.54
5.5.320.0080.02317.45
5.5.310.0070.02417.25
5.5.300.0070.02017.37
5.5.290.0050.02517.38
5.5.280.0080.02217.50
5.5.270.0050.02417.36
5.5.260.0030.02317.65
5.5.250.0090.02017.25
5.5.240.0090.02316.86
5.5.230.0030.05217.21
5.5.220.0040.02516.98
5.5.210.0050.04416.95
5.5.200.0090.03817.29
5.5.190.0090.03917.07
5.5.180.0080.03817.22
5.5.170.0000.00914.44
5.5.160.0070.04017.10
5.5.150.0080.03317.16
5.5.140.0070.03417.21
5.5.130.0100.04217.16
5.5.120.0090.03317.16
5.5.110.0070.03917.32
5.5.100.0100.02817.25
5.5.90.0050.03917.04
5.5.80.0030.04517.19
5.5.70.0080.03016.95
5.5.60.0050.03017.13
5.5.50.0120.03517.22
5.5.40.0080.02717.17
5.5.30.0080.04017.18
5.5.20.0070.04717.12
5.5.10.0050.02517.12
5.5.00.0030.03017.16
5.4.450.0030.01815.44
5.4.440.0000.02615.35
5.4.430.0040.02015.33
5.4.420.0060.01815.46
5.4.410.0050.04015.31
5.4.400.0110.02815.35
5.4.390.0050.02515.30
5.4.380.0000.02515.25
5.4.370.0030.02315.32
5.4.360.0050.02315.17
5.4.350.0050.03815.28
5.4.340.0050.03415.31
5.4.330.0030.00911.47
5.4.320.0040.03115.30
5.4.310.0080.03815.34
5.4.300.0030.04315.29
5.4.290.0050.04215.30
5.4.280.0070.02015.25
5.4.270.0050.04215.25
5.4.260.0030.04215.29
5.4.250.0070.03515.29
5.4.240.0080.03615.20
5.4.230.0040.02715.26
5.4.220.0060.04215.29
5.4.210.0020.04415.18
5.4.200.0060.02015.34
5.4.190.0080.04015.27
5.4.180.0100.03815.29
5.4.170.0130.03315.25
5.4.160.0060.03415.30
5.4.150.0080.03915.31
5.4.140.0060.03513.94
5.4.130.0030.02713.95
5.4.120.0100.03513.95
5.4.110.0040.02213.97
5.4.100.0010.02313.90
5.4.90.0080.02513.93
5.4.80.0060.02513.94
5.4.70.0030.02313.86
5.4.60.0050.04013.89
5.4.50.0070.03913.97
5.4.40.0050.04013.95
5.4.30.0090.03313.93
5.4.20.0030.02613.93
5.4.10.0040.02813.95
5.4.00.0050.03213.68
5.3.290.0050.03713.08
5.3.280.0020.04513.04
5.3.270.0050.04713.07
5.3.260.0070.04013.04
5.3.250.0080.03813.01
5.3.240.0040.02413.02
5.3.230.0040.02713.09
5.3.220.0050.02613.01
5.3.210.0050.02813.02
5.3.200.0110.03613.08
5.3.190.0070.04013.09
5.3.180.0050.04213.07
5.3.170.0060.04212.98
5.3.160.0020.03013.05
5.3.150.0020.02513.06
5.3.140.0070.03513.02
5.3.130.0060.03612.98
5.3.120.0060.04013.08
5.3.110.0080.02913.03
5.3.100.0120.02212.80
5.3.90.0040.03812.77
5.3.80.0090.03512.77
5.3.70.0070.03712.74
5.3.60.0030.02412.80
5.3.50.0070.03912.67
5.3.40.0020.03812.74
5.3.30.0060.03112.74
5.3.20.0030.02212.61
5.3.10.0030.03812.53
5.3.00.0050.02212.52
5.2.170.0030.06711.21
5.2.160.0030.06011.18
5.2.150.0070.06011.12
5.2.140.0030.05711.20
5.2.130.0070.05711.08
5.2.120.0070.06011.06
5.2.110.0130.04710.93
5.2.100.0070.03310.93
5.2.90.0030.03010.91
5.2.80.0070.05711.08
5.2.70.0070.04711.09
5.2.60.0130.03010.91
5.2.50.0070.06011.08
5.2.40.0000.03710.92
5.2.30.0070.06010.96
5.2.20.0000.05711.01
5.2.10.0070.03010.93
5.2.00.0070.04310.74
5.1.60.0070.02310.00
5.1.50.0000.03010.08
5.1.40.0000.05010.00
5.1.30.0070.02710.25
5.1.20.0000.06010.26
5.1.10.0130.04010.09
5.1.00.0030.0539.91
5.0.50.0070.0379.81
5.0.40.0130.0139.81
5.0.30.0000.0539.81
5.0.20.0030.0239.81
5.0.10.0070.0409.81
5.0.00.0070.0609.81
4.4.90.0000.0379.81
4.4.80.0030.0239.81
4.4.70.0000.0309.81
4.4.60.0000.0379.81
4.4.50.0000.0179.81
4.4.40.0070.0339.81
4.4.30.0000.0209.81
4.4.20.0130.0239.81
4.4.10.0070.0209.81
4.4.00.0070.0509.81
4.3.110.0070.0309.81
4.3.100.0030.0339.81
4.3.90.0000.0409.81
4.3.80.0070.0209.81
4.3.70.0000.0279.81
4.3.60.0000.0209.81
4.3.50.0030.0179.81
4.3.40.0000.0279.81
4.3.30.0030.0339.81
4.3.20.0000.0279.81
4.3.10.0000.0379.81
4.3.00.0030.0309.81

preferences:
40.96 ms | 401 KiB | 5 Q