3v4l.org

run code in 300+ PHP versions simultaneously
<?php header ("Content-type: image/png"); $string = DigitalPortfolio; $font = 15; $width = 300; $height = 350; $image = imagecreate($width, $height); $back = ImageColorAllocate($image, 255, 255, 255); $border = ImageColorAllocate($image, 0, 0, 0); ImageFilledRectangle($image, 0, 0, $width, $height, $border); ImageFilledRectangle($image, 1, 1, $width-2, $height-2, $back); $text_color = imagecolorallocate($image, 255, 0, 0); ImageStringWrap($image, $font, 3, 2, $string, $text_color, $width-2 ); imagepng($image); function ImageStringWrap($image, $font, $x, $y, $text, $color, $maxwidth) { $fontwidth = ImageFontWidth($font); $fontheight = ImageFontHeight($font); if ($maxwidth != NULL) { $maxcharsperline = floor($maxwidth / $fontwidth); $text = wordwrap($text, $maxcharsperline, "\n", false); } while (list($numl, $line) = each($lines)) { ImageString($image, $font, $x, $y, $line, $color); $y += $fontheight; } }

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.0140.00718.31
8.3.50.0130.00521.08
8.3.40.0070.01118.84
8.3.30.0070.00720.21
8.3.20.0080.00020.34
8.3.10.0040.00420.96
8.3.00.0000.00822.32
8.2.180.0030.01716.63
8.2.170.0070.01022.96
8.2.160.0030.01020.27
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00020.67
8.2.110.0080.00419.21
8.2.100.0000.01318.03
8.2.90.0030.00619.08
8.2.80.0060.00318.03
8.2.70.0000.00917.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0000.00918.21
8.2.30.0000.00719.46
8.2.20.0050.00217.75
8.2.10.0000.00717.83
8.2.00.0000.00817.83
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01022.42
8.1.230.0080.00321.04
8.1.220.0040.00418.77
8.1.210.0080.00019.00
8.1.200.0090.00017.48
8.1.190.0040.00417.54
8.1.180.0110.00018.10
8.1.170.0000.00818.51
8.1.160.0050.00318.87
8.1.150.0050.00318.60
8.1.140.0040.00417.41
8.1.130.0070.00017.79
8.1.120.0040.00417.34
8.1.110.0040.00417.45
8.1.100.0000.00717.46
8.1.90.0000.00717.39
8.1.80.0000.00717.25
8.1.70.0000.00717.30
8.1.60.0040.00417.58
8.1.50.0000.00717.45
8.1.40.0030.00617.44
8.1.30.0040.00417.56
8.1.20.0040.00417.52
8.1.10.0000.00817.45
8.1.00.0000.00817.34
8.0.300.0020.00519.84
8.0.290.0000.00817.04
8.0.280.0040.00418.53
8.0.270.0000.00717.38
8.0.260.0000.00916.85
8.0.250.0030.00316.91
8.0.240.0040.00417.07
8.0.230.0040.00417.04
8.0.220.0030.00316.86
8.0.210.0000.00816.85
8.0.200.0070.00017.05
8.0.190.0000.00817.00
8.0.180.0040.00416.90
8.0.170.0000.00817.04
8.0.160.0050.00316.89
8.0.150.0000.00716.91
8.0.140.0030.00517.01
8.0.130.0000.00913.44
8.0.120.0040.00416.99
8.0.110.0040.00416.84
8.0.100.0000.00717.02
8.0.90.0040.00416.98
8.0.80.0090.00616.93
8.0.70.0080.00016.90
8.0.60.0000.00817.05
8.0.50.0060.00316.93
8.0.30.0110.00817.13
8.0.20.0110.00817.40
8.0.10.0000.00717.05
8.0.00.0120.00816.77
7.4.330.0020.00216.70
7.4.320.0000.00716.58
7.4.300.0030.00316.68
7.4.290.0070.00016.66
7.4.280.0040.00416.68
7.4.270.0000.00716.46
7.4.260.0070.00013.35
7.4.250.0070.00016.63
7.4.240.0070.00016.58
7.4.230.0070.00016.65
7.4.220.0100.01016.53
7.4.210.0070.00716.64
7.4.200.0030.00316.74
7.4.190.0000.00716.79
7.4.160.0090.00616.85
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0080.00916.66
7.4.120.0070.01016.59
7.4.110.0100.00716.65
7.4.100.0070.01116.72
7.4.90.0130.00916.82
7.4.80.0130.00319.39
7.4.70.0030.01316.43
7.4.60.0070.01016.57
7.4.50.0040.00416.47
7.4.40.0070.00722.77
7.4.30.0080.00916.38
7.4.00.0060.00915.02
7.3.330.0030.00313.28
7.3.320.0020.00213.28
7.3.310.0040.00416.31
7.3.300.0030.00316.37
7.3.290.0070.00716.36
7.3.280.0120.00716.35
7.3.270.0070.01017.40
7.3.260.0140.00518.24
7.3.250.0070.01116.54
7.3.240.0100.00716.66
7.3.230.0100.00916.60
7.3.210.0060.01116.64
7.3.200.0120.00619.39
7.3.190.0060.01016.50
7.3.180.0030.01716.58
7.3.170.0100.01016.42
7.3.160.0040.01216.39
7.3.120.0090.00615.06
7.3.10.0070.00616.43
7.3.00.0100.00716.45
7.2.330.0030.01316.36
7.2.320.0040.01316.66
7.2.310.0140.00916.41
7.2.300.0090.01216.40
7.2.290.0060.01016.80
7.2.130.0110.00716.43
7.2.120.0180.00316.54
7.2.110.0030.01516.30
7.2.100.0040.00416.54
7.2.90.0070.01016.75
7.2.80.0120.00916.66
7.2.70.0140.00716.68
7.2.60.0100.00716.86
7.2.50.0090.00616.75
7.2.40.0070.00316.36
7.2.30.0150.00616.44
7.2.20.0070.00716.64
7.2.10.0190.00016.73
7.2.00.0050.01018.01
7.1.250.0040.00715.45
7.1.200.0030.00715.64
7.1.100.0000.01018.16
7.1.70.0000.01017.14
7.1.60.0120.01219.17
7.1.50.0090.01516.65
7.1.00.0030.07022.57
7.0.200.0050.00316.78
7.0.140.0000.07722.12
7.0.70.0100.08020.00
7.0.60.0070.08320.09
7.0.50.0070.08320.37
7.0.40.0030.07020.18
7.0.30.0000.09020.18
7.0.20.0170.08320.17
7.0.10.0100.08319.99
7.0.00.0000.05720.14
5.6.280.0030.07321.05
5.6.220.0070.08720.50
5.6.210.0100.08020.68
5.6.200.0070.06321.13
5.6.190.0130.06021.02
5.6.180.0070.09020.97
5.6.170.0070.08321.12
5.6.160.0000.09021.02
5.6.150.0070.08321.14
5.6.140.0070.06321.11
5.6.130.0030.09320.96
5.6.120.0030.09320.96
5.6.110.0030.07021.02
5.6.100.0100.08020.97
5.6.90.0100.05021.04
5.6.80.0100.08020.36
5.6.70.0030.07720.41
5.6.60.0100.05720.48
5.6.50.0070.08720.39
5.6.40.0000.08020.37
5.6.30.0130.07320.43
5.6.20.0030.05320.46
5.6.10.0130.07320.34
5.6.00.0130.07720.52
5.5.360.0100.07720.37
5.5.350.0130.07320.43
5.5.340.0000.07720.85
5.5.330.0030.04720.89
5.5.320.0070.06320.89
5.5.310.0200.07720.77
5.5.300.0070.07720.84
5.5.290.0070.08320.84
5.5.280.0070.08720.87
5.5.270.0030.09020.91
5.5.260.0070.08320.83
5.5.250.0130.07320.70
5.5.240.0130.07320.17
5.5.230.0000.06720.22
5.5.220.0070.04720.30
5.5.210.0070.05020.19
5.5.200.0100.06720.29
5.5.190.0100.05720.27
5.5.180.0070.08720.26
5.5.160.0070.08320.27
5.5.150.0130.07320.00
5.5.140.0000.07720.15
5.5.130.0030.08320.13
5.5.120.0070.05020.18
5.5.110.0000.04720.18
5.5.100.0100.03320.02
5.5.90.0130.07020.05
5.5.80.0100.08020.10
5.5.70.0030.07320.16
5.5.60.0000.08320.08
5.5.50.0130.07320.11
5.5.40.0100.05320.14
5.5.30.0030.05720.06
5.5.20.0100.08020.06
5.5.10.0030.05320.04
5.5.00.0030.08719.98
5.4.450.0170.07019.46
5.4.440.0070.07319.17
5.4.430.0100.07319.37
5.4.420.0070.05719.20
5.4.410.0070.06319.34
5.4.400.0100.07019.18
5.4.390.0030.08319.21
5.4.380.0030.08318.82
5.4.370.0030.07018.95
5.4.360.0000.05019.03
5.4.350.0070.06019.23
5.4.340.0100.05319.23
5.4.320.0000.08719.09
5.4.310.0030.08318.94
5.4.300.0200.06719.04
5.4.290.0070.08319.20
5.4.280.0030.07318.87
5.4.270.0070.04318.87
5.4.260.0130.02719.04
5.4.250.0070.07719.13
5.4.240.0100.07019.04
5.4.230.0070.04319.20
5.4.220.0070.06319.17
5.4.210.0070.07319.23
5.4.200.0030.06319.22
5.4.190.0030.08319.11
5.4.180.0070.06719.17
5.4.170.0070.06319.12
5.4.160.0070.08019.03
5.4.150.0030.06019.21
5.4.140.0100.06716.35
5.4.130.0030.06316.41
5.4.120.0100.07016.53
5.4.110.0100.07716.33
5.4.100.0030.07716.49
5.4.90.0100.06716.43
5.4.80.0100.05716.48
5.4.70.0130.03716.47
5.4.60.0030.06016.39
5.4.50.0070.03716.36
5.4.40.0070.03716.39
5.4.30.0070.03316.31
5.4.20.0130.03316.36
5.4.10.0200.04316.30
5.4.00.0030.07715.77
5.3.290.0070.06314.73
5.3.280.0070.08014.74
5.3.270.0130.07014.74
5.3.260.0130.06714.69
5.3.250.0030.07714.75
5.3.240.0100.07714.74
5.3.230.0100.08014.64
5.3.220.0170.06714.59
5.3.210.0030.08314.69
5.3.200.0000.08014.64
5.3.190.0130.07714.68
5.3.180.0100.07714.59
5.3.170.0070.07314.53
5.3.160.0170.07014.55
5.3.150.0100.06014.70
5.3.140.0100.05714.60
5.3.130.0030.06014.58
5.3.120.0100.07314.57
5.3.110.0030.05314.52
5.3.100.0070.08013.97
5.3.90.0000.08014.05
5.3.80.0030.08013.95
5.3.70.0170.06314.04
5.3.60.0000.08014.08
5.3.50.0000.05013.88
5.3.40.0030.08014.02
5.3.30.0070.03713.80
5.3.20.0130.06713.79
5.3.10.0100.07013.69
5.3.00.0030.07713.66
5.2.170.0000.06011.99
5.2.160.0070.05312.00
5.2.150.0030.05012.02
5.2.140.0070.06312.04
5.2.130.0030.06312.08
5.2.120.0130.03312.11
5.2.110.0130.05012.12
5.2.100.0030.06312.14
5.2.90.0100.06012.15
5.2.80.0000.05712.16
5.2.70.0000.05712.17
5.2.60.0000.05712.20
5.2.50.0130.05712.20
5.2.40.0000.04712.20
5.2.30.0070.04012.20
5.2.20.0000.04712.20
5.2.10.0070.05712.20
5.2.00.0030.06012.20
5.1.60.0070.05312.20
5.1.50.0000.06012.20
5.1.40.0030.05712.20
5.1.30.0070.04312.20
5.1.20.0070.05312.20
5.1.10.0170.04712.20
5.1.00.0030.03312.20
5.0.50.0030.04712.20
5.0.40.0070.04012.20
5.0.30.0030.06312.20
5.0.20.0030.02712.20
5.0.10.0000.04012.20
5.0.00.0000.07012.20
4.4.90.0030.02712.18
4.4.80.0030.03312.20
4.4.70.0030.02712.20
4.4.60.0000.03312.20
4.4.50.0030.03312.20
4.4.40.0000.05312.20
4.4.30.0000.04012.20
4.4.20.0070.02012.20
4.4.10.0000.03712.20
4.4.00.0070.05312.20
4.3.110.0030.03712.20
4.3.100.0030.03012.20
4.3.90.0030.03012.20
4.3.80.0030.05312.20
4.3.70.0030.03312.20
4.3.60.0070.02312.20
4.3.50.0000.03712.20
4.3.40.0000.04712.20
4.3.30.0000.04012.20
4.3.20.0030.03312.20
4.3.10.0000.04012.20
4.3.00.0030.03312.20

preferences:
41.17 ms | 401 KiB | 5 Q