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.40.0100.00618.63
8.3.30.0070.00718.89
8.3.20.0040.00418.80
8.3.10.0060.00320.65
8.3.00.0080.00019.51
8.2.170.0040.01122.96
8.2.160.0070.00719.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00320.79
8.2.110.0060.00320.93
8.2.100.0070.00417.72
8.2.90.0030.00819.17
8.2.80.0040.00419.40
8.2.70.0030.00617.50
8.2.60.0050.00317.91
8.2.50.0060.00318.07
8.2.40.0040.00417.92
8.2.30.0070.00418.02
8.2.20.0000.00717.79
8.2.10.0040.00417.81
8.2.00.0000.00817.68
8.1.270.0070.00024.66
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00422.19
8.1.230.0070.00420.88
8.1.220.0000.00817.74
8.1.210.0000.00818.90
8.1.200.0000.01017.36
8.1.190.0080.00017.43
8.1.180.0060.00318.10
8.1.170.0060.00318.91
8.1.160.0000.00718.77
8.1.150.0040.00418.59
8.1.140.0050.00217.33
8.1.130.0040.00417.91
8.1.120.0000.00917.43
8.1.110.0020.00517.32
8.1.100.0000.00817.27
8.1.90.0040.00417.42
8.1.80.0050.00217.46
8.1.70.0070.00017.44
8.1.60.0030.00617.59
8.1.50.0040.00417.53
8.1.40.0000.00817.62
8.1.30.0080.00017.63
8.1.20.0030.00517.64
8.1.10.0000.00817.57
8.1.00.0110.00017.52
8.0.300.0040.00419.90
8.0.290.0000.00816.63
8.0.280.0070.00018.31
8.0.270.0030.00417.19
8.0.260.0030.00316.77
8.0.250.0000.00716.88
8.0.240.0030.00316.88
8.0.230.0040.00417.01
8.0.220.0060.00016.93
8.0.210.0040.00416.93
8.0.200.0030.00316.97
8.0.190.0000.00816.88
8.0.180.0000.00716.92
8.0.170.0030.00516.92
8.0.160.0000.00916.96
8.0.150.0030.00516.77
8.0.140.0030.00616.87
8.0.130.0030.00313.41
8.0.120.0040.00416.88
8.0.110.0040.00416.81
8.0.100.0000.00816.77
8.0.90.0040.00416.82
8.0.80.0060.00916.97
8.0.70.0000.00716.78
8.0.60.0000.00716.98
8.0.50.0030.00516.73
8.0.30.0130.00817.01
8.0.20.0150.01017.13
8.0.10.0000.00716.92
8.0.00.0120.01216.77
7.4.330.0000.00513.10
7.4.320.0030.00316.59
7.4.300.0030.00316.66
7.4.290.0000.00816.67
7.4.280.0040.00416.56
7.4.270.0000.00716.59
7.4.260.0030.00313.30
7.4.250.0040.00416.63
7.4.240.0030.00416.56
7.4.230.0030.00316.75
7.4.220.0100.01316.72
7.4.210.0100.00616.59
7.4.200.0020.00516.74
7.4.190.0000.00716.83
7.4.160.0110.00716.54
7.4.150.0140.00516.65
7.4.140.0140.00616.54
7.4.130.0060.01316.56
7.4.120.0060.01116.54
7.4.110.0030.01216.50
7.4.100.0150.00616.54
7.4.90.0140.00316.44
7.4.80.0180.00319.39
7.4.70.0120.00316.66
7.4.60.0070.01016.55
7.4.50.0070.00016.43
7.4.40.0030.01216.62
7.4.30.0060.01016.42
7.4.00.0070.00714.90
7.3.330.0000.00613.32
7.3.320.0050.00013.22
7.3.310.0000.00716.21
7.3.300.0070.00016.36
7.3.290.0110.00416.25
7.3.280.0060.01016.35
7.3.270.0040.01416.30
7.3.260.0190.00616.38
7.3.250.0080.01116.54
7.3.240.0060.01016.29
7.3.230.0060.01116.36
7.3.210.0060.01216.41
7.3.200.0070.01016.41
7.3.190.0160.00316.41
7.3.180.0070.01116.65
7.3.170.0050.01116.33
7.3.160.0090.01016.49
7.3.120.0100.00714.75
7.2.330.0110.00616.61
7.2.320.0090.01016.59
7.2.310.0100.01316.43
7.2.300.0130.00916.54
7.2.290.0100.00716.55
7.2.60.0090.00616.88
7.2.00.0000.01319.15
7.1.200.0100.00315.46
7.1.100.0030.00917.59
7.1.70.0000.01116.80
7.1.60.0120.00919.40
7.1.50.0100.01316.99
7.1.00.0000.06722.36
7.0.200.0000.00716.51
7.0.140.0000.07722.06
7.0.120.0030.07322.05
7.0.60.0070.06720.04
7.0.50.0030.05017.87
7.0.40.0230.07020.13
7.0.30.0200.04720.02
7.0.20.0200.06720.10
7.0.10.0200.04720.02
7.0.00.0300.04020.20
5.6.280.0100.06320.93
5.6.210.0030.08320.46
5.6.200.0070.07718.20
5.6.190.0200.09020.61
5.6.180.0170.04320.39
5.6.170.0270.03720.45
5.6.160.0200.04320.33
5.6.150.0230.04720.50
5.6.140.0230.04020.40
5.6.130.0230.06720.53
5.6.120.0230.04720.50
5.6.110.0170.04320.36
5.6.100.0170.07320.36
5.6.90.0230.06020.48
5.6.80.0300.07019.56
5.6.70.0230.07719.61
5.6.60.0200.04019.61
5.6.50.0330.06319.93
5.6.40.0170.04719.70
5.6.30.0270.07319.73
5.6.20.0270.07319.77
5.6.10.0300.07019.70
5.6.00.0200.07319.74
5.5.350.0100.02720.37
5.5.340.0030.08317.95
5.5.330.0270.04320.26
5.5.320.0230.08020.35
5.5.310.0230.04320.31
5.5.300.0200.05320.32
5.5.290.0170.04720.04
5.5.280.0530.07320.12
5.5.270.0200.04020.21
5.5.260.0300.07020.29
5.5.250.0270.07320.07
5.5.240.0200.07719.36
5.5.230.0170.06719.50
5.5.220.0200.04319.35
5.5.210.0330.07319.59
5.5.200.0300.07319.34
5.5.190.0270.07719.32
5.5.180.0200.08019.65
5.5.160.0270.06719.55
5.5.150.0200.07719.64
5.5.140.0200.04719.47
5.5.130.0230.04719.38
5.5.120.0200.04319.32
5.5.110.0270.07319.66
5.5.100.0170.04019.46
5.5.90.0200.04019.55
5.5.80.0230.03719.45
5.5.70.0300.07019.45
5.5.60.0200.05019.36
5.5.50.0230.04719.48
5.5.40.0270.07719.21
5.5.30.0230.07319.43
5.5.20.0200.07319.44
5.5.10.0230.05019.45
5.5.00.0300.06319.38
5.4.450.0170.05719.20
5.4.440.0200.08019.40
5.4.430.0230.06019.17
5.4.420.0270.04719.18
5.4.410.0270.06019.40
5.4.400.0270.07318.99
5.4.390.0200.04318.88
5.4.380.0330.08019.01
5.4.370.0200.07718.86
5.4.360.0300.07319.05
5.4.350.0200.06718.98
5.4.340.0300.07018.86
5.4.320.0330.05018.86
5.4.310.0300.04319.09
5.4.300.0300.05319.09
5.4.290.0230.04719.21
5.4.280.0200.04718.99
5.4.270.0200.04319.15
5.4.260.0170.05319.15
5.4.250.0230.03718.84
5.4.240.0170.04019.14
5.4.230.0300.06319.14
5.4.220.0200.04718.99
5.4.210.0270.06719.15
5.4.200.0230.04319.24
5.4.190.0200.06019.25
5.4.180.0170.05018.86
5.4.170.0200.03719.14
5.4.160.0170.07319.13
5.4.150.0170.04719.06
5.4.140.0170.03716.39
5.4.130.0270.06316.30
5.4.120.0200.04316.38
5.4.110.0230.03716.40
5.4.100.0270.07016.54
5.4.90.0100.05316.45
5.4.80.0230.06316.40
5.4.70.0170.04716.41
5.4.60.0270.06716.43
5.4.50.0130.04016.64
5.4.40.0200.05016.40
5.4.30.0130.07316.26
5.4.20.0270.06016.30
5.4.10.0200.03016.26
5.4.00.0170.07015.84
5.3.290.0270.04714.64
5.3.280.0200.05314.53
5.3.270.0330.06714.53
5.3.260.0130.06314.51
5.3.250.0230.07014.77
5.3.240.0070.05014.63
5.3.230.0200.07314.66
5.3.220.0230.07014.49
5.3.210.0130.08014.66
5.3.200.0130.04014.61
5.3.190.0200.06314.66
5.3.180.0270.06714.61
5.3.170.0270.04014.73
5.3.160.0300.05714.50
5.3.150.0270.05314.72
5.3.140.0230.06714.61
5.3.130.0130.04714.72
5.3.120.0200.06014.58
5.3.110.0270.06314.56
5.3.100.0200.03714.08
5.3.90.0170.04314.07
5.3.80.0130.05314.18
5.3.70.0230.07014.00
5.3.60.0230.06713.98
5.3.50.0230.07013.97
5.3.40.0230.07314.04
5.3.30.0230.06014.07
5.3.20.0230.07013.76
5.3.10.0270.06313.61
5.3.00.0230.05013.62
5.2.170.0100.03712.50
5.2.160.0170.03312.50
5.2.150.0170.06012.50
5.2.140.0170.07012.50
5.2.130.0200.05712.50
5.2.120.0170.05312.50
5.2.110.0130.05012.50
5.2.100.0200.05312.50
5.2.90.0170.06012.50
5.2.80.0230.04712.50
5.2.70.0130.06312.50
5.2.60.0230.03012.50
5.2.50.0270.04012.50
5.2.40.0170.03312.50
5.2.30.0170.06012.50
5.2.20.0130.05712.50
5.2.10.0100.06712.50
5.2.00.0200.04012.50
5.1.60.0170.03312.50
5.1.50.0130.05712.50
5.1.40.0130.04312.50
5.1.30.0200.03012.50
5.1.20.0130.05312.50
5.1.10.0170.05312.50
5.1.00.0130.05712.50
5.0.50.0100.03012.50
5.0.40.0070.03012.50
5.0.30.0130.03012.50
5.0.20.0000.03012.50
5.0.10.0100.04012.50
5.0.00.0070.04012.50
4.4.90.0070.02712.50
4.4.80.0070.03012.50
4.4.70.0070.03012.50
4.4.60.0100.03712.50
4.4.50.0100.03312.50
4.4.40.0070.02712.50
4.4.30.0130.03012.50
4.4.20.0100.03312.50
4.4.10.0100.03312.50
4.4.00.0070.04012.50
4.3.110.0130.01712.50
4.3.100.0100.03312.50
4.3.90.0070.03312.50
4.3.80.0130.03312.50
4.3.70.0070.03312.50
4.3.60.0070.03312.50
4.3.50.0100.03012.50
4.3.40.0070.05012.50
4.3.30.0030.03012.50
4.3.20.0000.03712.50
4.3.10.0000.03012.50
4.3.00.0030.03012.50

preferences:
42.01 ms | 400 KiB | 5 Q