3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = imagecreatetruecolor(100, 100); // Transparent Background imagealphablending($image, false); $transparency = imagecolorallocatealpha($image, 0, 0, 0, 127); imagefill($image, 0, 0, $transparency); imagesavealpha($image, true); // Drawing over $black = imagecolorallocate($image, 0, 0, 0); imagefilledrectangle($image, 25, 25, 75, 75, $black); header('Content-Type: image/png'); imagepng($image);

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.0110.01118.43
8.3.50.0110.00416.38
8.3.40.0120.00318.71
8.3.30.0000.01818.71
8.3.20.0040.00420.20
8.3.10.0070.00021.80
8.3.00.0040.00417.89
8.2.180.0120.00616.88
8.2.170.0110.00422.96
8.2.160.0110.00420.52
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0040.00417.49
8.2.110.0040.00420.35
8.2.100.0040.00817.63
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0080.00017.91
8.2.50.0080.00018.07
8.2.40.0040.00419.21
8.2.30.0030.00320.61
8.2.20.0000.00817.56
8.2.10.0050.00318.05
8.2.00.0040.00417.88
8.1.280.0040.01525.92
8.1.270.0040.00423.82
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00023.64
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0090.00017.13
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0000.00821.89
8.1.150.0030.00518.77
8.1.140.0040.00417.26
8.1.130.0030.00517.47
8.1.120.0000.00817.35
8.1.110.0000.00817.36
8.1.100.0040.00417.25
8.1.90.0070.00017.34
8.1.80.0000.00817.23
8.1.70.0070.00017.30
8.1.60.0080.00017.47
8.1.50.0000.00917.42
8.1.40.0030.00617.49
8.1.30.0000.00817.51
8.1.20.0040.00417.57
8.1.10.0000.00717.50
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0030.00516.75
8.0.280.0030.00318.43
8.0.270.0000.00817.20
8.0.260.0050.00317.12
8.0.250.0050.00216.86
8.0.240.0060.00316.88
8.0.230.0030.00716.86
8.0.220.0030.00516.91
8.0.210.0040.00416.93
8.0.200.0040.00416.99
8.0.190.0060.00316.85
8.0.180.0040.00416.87
8.0.170.0040.00416.88
8.0.160.0050.00216.84
8.0.150.0000.00716.94
8.0.140.0070.00016.84
8.0.130.0060.00013.32
8.0.120.0050.00316.75
8.0.110.0000.00816.85
8.0.100.0050.00216.95
8.0.90.0000.00816.80
8.0.80.0040.01116.85
8.0.70.0040.00416.90
8.0.60.0030.00316.90
8.0.50.0000.00716.93
8.0.30.0110.01116.86
8.0.20.0130.00817.40
8.0.10.0030.00617.02
8.0.00.0120.00816.65
7.4.330.0070.00015.08
7.4.320.0030.00616.39
7.4.300.0000.00716.51
7.4.290.0030.00316.45
7.4.280.0000.01016.53
7.4.270.0030.00316.59
7.4.260.0070.00016.55
7.4.250.0040.00416.59
7.4.240.0020.00516.43
7.4.230.0000.00716.38
7.4.220.0030.01316.56
7.4.210.0100.01016.41
7.4.200.0000.00816.66
7.4.160.0160.00616.44
7.4.150.0030.01517.40
7.4.140.0110.00817.86
7.4.130.0100.01116.64
7.4.120.0110.00616.54
7.4.110.0120.00616.48
7.4.100.0130.00316.40
7.4.90.0140.00316.46
7.4.80.0140.01119.39
7.4.70.0070.01116.45
7.4.60.0060.01016.71
7.4.50.0040.00416.36
7.4.40.0150.00316.36
7.4.30.0120.00416.50
7.4.00.0070.01114.79
7.3.330.0000.00513.25
7.3.320.0000.00513.25
7.3.310.0070.00016.11
7.3.300.0030.00316.25
7.3.290.0090.00416.25
7.3.280.0080.01216.26
7.3.270.0140.00717.40
7.3.260.0120.01116.37
7.3.250.0120.00816.39
7.3.240.0190.00316.61
7.3.230.0110.01116.53
7.3.210.0120.00616.44
7.3.200.0070.01016.39
7.3.190.0070.01016.30
7.3.180.0030.01216.23
7.3.170.0080.00816.27
7.3.160.0060.01016.21
7.3.120.0060.01314.76
7.3.110.0060.01014.64
7.3.100.0040.00914.82
7.3.90.0050.01314.80
7.3.80.0060.01014.84
7.3.70.0070.00514.74
7.3.60.0070.00714.82
7.3.50.0040.00714.88
7.3.40.0050.01014.62
7.3.30.0060.00714.73
7.3.20.0030.00916.62
7.3.10.0090.00616.58
7.3.00.0050.00616.60
7.2.330.0090.00916.45
7.2.320.0030.01516.65
7.2.310.0060.01016.55
7.2.300.0060.01016.66
7.2.290.0040.01916.43
7.2.250.0050.01514.99
7.2.240.0100.00814.82
7.2.230.0060.01414.87
7.2.220.0050.00615.06
7.2.210.0090.00714.90
7.2.200.0080.00614.91
7.2.190.0060.00914.93
7.2.180.0040.01014.82
7.2.170.0070.00814.84
7.2.110.0190.00416.23
7.2.60.0060.00616.75
7.2.00.0060.00619.39
7.1.330.0040.01115.55
7.1.320.0030.01115.63
7.1.310.0090.00515.63
7.1.300.0070.00615.48
7.1.290.0070.00515.61
7.1.280.0040.00915.43
7.1.270.0060.00915.49
7.1.260.0020.00915.65
7.1.200.0000.01015.68
7.1.100.0000.01118.04
7.1.70.0030.00317.19
7.1.60.0080.01519.19
7.1.50.0120.01216.51
7.1.00.0100.07022.40
7.0.200.0000.00916.51
7.0.60.0000.04720.03
7.0.50.0070.07717.84
7.0.40.0070.08720.20
7.0.30.0270.04320.01
7.0.20.0300.04020.13
7.0.10.0070.05720.01
7.0.00.0130.06020.13
5.6.280.0030.07320.89
5.6.210.0100.08020.68
5.6.200.0230.06718.23
5.6.190.0070.08020.33
5.6.180.0370.03720.61
5.6.170.0130.04320.49
5.6.160.0070.03720.32
5.6.150.0100.04018.15
5.6.140.0000.09018.07
5.6.130.0130.07718.06
5.6.120.0070.08321.13
5.6.110.0030.05720.97
5.6.100.0000.04721.13
5.6.90.0070.04020.97
5.6.80.0100.06020.40
5.5.350.0100.08720.41
5.5.340.0000.04018.01
5.5.330.0070.05720.41
5.5.320.0430.07320.30
5.5.310.0130.04320.21
5.5.300.0030.04318.02
5.5.290.0000.08717.98
5.5.280.0000.04720.79
5.5.270.0100.05020.88
5.5.260.0130.08020.86
5.5.250.0100.06020.79
5.5.240.0100.06020.28
5.4.450.0170.06019.13
5.4.440.0170.05319.60
5.4.430.0170.07719.45
5.4.420.0100.06019.46
5.4.410.0170.05019.41
5.4.400.0070.06019.28
5.4.390.0200.04719.07
5.4.380.0200.04719.26
5.4.370.0170.04719.16
5.4.360.0130.05319.16
5.4.350.0170.05018.95
5.4.340.0170.05019.15
5.4.320.0130.05319.13
5.4.310.0130.05319.15
5.4.300.0070.06319.21
5.4.290.0130.05319.16
5.4.280.0270.04319.09
5.4.270.0100.05718.96
5.4.260.0100.05718.91
5.4.250.0170.05319.30
5.4.240.0230.04719.29
5.4.230.0070.06019.21
5.4.220.0100.06019.08
5.4.210.0200.04719.25
5.4.200.0100.05719.29
5.4.190.0170.06019.19
5.4.180.0170.05319.14
5.4.170.0300.05718.91
5.4.160.0100.05719.17
5.4.150.0130.05718.77
5.4.140.0200.04316.32
5.4.130.0270.04016.25
5.4.120.0130.05016.48
5.4.110.0100.05716.36
5.4.100.0170.04716.54
5.4.90.0070.05716.55
5.4.80.0100.05316.48
5.4.70.0470.06016.39
5.4.60.0230.04316.38
5.4.50.0030.07016.23
5.4.40.0270.06316.19
5.4.30.0200.03316.36
5.4.20.0370.05716.41

preferences:
47.92 ms | 400 KiB | 5 Q