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'); return 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.0080.01118.68
8.3.50.0110.00316.25
8.3.40.0070.00718.71
8.3.30.0070.00718.70
8.3.20.0040.00420.31
8.3.10.0040.00421.76
8.3.00.0040.00418.05
8.2.180.0110.00716.50
8.2.170.0090.00622.96
8.2.160.0130.00020.34
8.2.150.0090.00025.66
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0060.00317.50
8.2.110.0090.00020.96
8.2.100.0040.00817.50
8.2.90.0060.00319.13
8.2.80.0040.00417.97
8.2.70.0030.00517.48
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0050.00319.38
8.2.30.0070.00020.52
8.2.20.0040.00417.73
8.2.10.0040.00417.96
8.2.00.0060.00317.97
8.1.280.0190.00025.92
8.1.270.0060.00323.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.75
8.1.230.0120.00017.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00421.86
8.1.150.0050.00218.80
8.1.140.0000.00817.36
8.1.130.0050.00217.54
8.1.120.0000.00717.38
8.1.110.0040.00417.23
8.1.100.0000.00717.29
8.1.90.0000.00717.39
8.1.80.0000.00917.36
8.1.70.0030.00317.36
8.1.60.0000.00917.40
8.1.50.0050.00317.41
8.1.40.0030.00617.46
8.1.30.0030.00517.53
8.1.20.0050.00317.62
8.1.10.0000.00717.55
8.1.00.0030.00617.44
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0050.00318.32
8.0.270.0070.00017.12
8.0.260.0070.00017.24
8.0.250.0040.00416.93
8.0.240.0040.00416.92
8.0.230.0070.00316.93
8.0.220.0030.00616.89
8.0.210.0030.00316.78
8.0.200.0030.00316.96
8.0.190.0040.00416.93
8.0.180.0080.00016.94
8.0.170.0040.00416.93
8.0.160.0000.00716.77
8.0.150.0040.00416.83
8.0.140.0040.00416.85
8.0.130.0000.00713.31
8.0.120.0050.00316.89
8.0.110.0040.00416.74
8.0.100.0070.00016.96
8.0.90.0070.00016.75
8.0.80.0130.00316.88
8.0.70.0070.00016.85
8.0.60.0070.00016.72
8.0.50.0040.00416.75
8.0.30.0100.00817.15
8.0.20.0100.00817.40
8.0.10.0040.00416.89
8.0.00.0100.00716.75
7.4.330.0030.00315.08
7.4.320.0060.00316.36
7.4.300.0000.00616.42
7.4.290.0040.00316.56
7.4.280.0000.00816.35
7.4.270.0050.00216.46
7.4.260.0080.00016.57
7.4.250.0000.00716.38
7.4.240.0060.00216.48
7.4.230.0030.00316.53
7.4.220.0030.01416.56
7.4.210.0150.00316.44
7.4.200.0070.00016.36
7.4.160.0120.00416.43
7.4.150.0000.01717.40
7.4.140.0130.01017.86
7.4.130.0100.01116.39
7.4.120.0170.00216.48
7.4.110.0070.01016.48
7.4.100.0090.01416.54
7.4.90.0120.00916.40
7.4.80.0060.01119.39
7.4.70.0060.01016.56
7.4.60.0070.01416.41
7.4.50.0040.00416.61
7.4.40.0030.01616.58
7.4.30.0090.00816.40
7.4.00.0100.00314.96
7.3.330.0050.00013.17
7.3.320.0000.00613.18
7.3.310.0030.00316.23
7.3.300.0070.00016.25
7.3.290.0070.00916.25
7.3.280.0080.01216.30
7.3.270.0100.01017.40
7.3.260.0100.01016.11
7.3.250.0090.00816.27
7.3.240.0100.01316.45
7.3.230.0150.00916.39
7.3.210.0120.00616.52
7.3.200.0080.00816.26
7.3.190.0150.00616.59
7.3.180.0090.00916.27
7.3.170.0090.00616.58
7.3.160.0090.00816.37
7.2.330.0130.00316.49
7.2.320.0140.01116.49
7.2.310.0140.00416.75
7.2.300.0130.00316.64
7.2.290.0060.01216.20
7.2.110.0040.00716.57
7.2.60.0110.00416.80
7.2.00.0000.01319.41
7.1.200.0070.00415.40
7.1.100.0110.00317.61
7.1.70.0050.00217.02
7.1.60.0000.01616.81
7.1.50.0070.00416.76
7.1.40.0070.00316.51
7.1.30.0070.00716.57
7.1.20.0080.00316.41
7.1.10.0040.00416.33
7.1.00.0040.00416.58
7.0.200.0030.00616.77
7.0.190.0060.00916.60
7.0.180.0000.00816.27
7.0.170.0070.00016.32
7.0.160.0000.00816.27
7.0.150.0040.00416.23
7.0.140.0000.00716.38
7.0.130.0040.00416.46
7.0.120.0040.00816.43
7.0.110.0070.00316.23
7.0.100.0060.00316.22
7.0.90.0000.00716.29
7.0.80.0000.00816.11
7.0.70.0030.00616.17
7.0.60.0000.01015.76
7.0.50.0000.00816.45
7.0.40.0000.00915.08
7.0.30.0000.01015.08
7.0.20.0000.00715.08
7.0.10.0040.00415.08
7.0.00.0000.00815.08
5.6.300.0000.04320.95
5.6.290.0100.03620.66
5.6.280.0070.04020.83
5.6.270.0070.04721.09
5.6.260.0030.04721.09
5.6.250.0030.04020.86
5.6.240.0070.04420.96
5.6.230.0060.03820.89
5.6.220.0030.03920.96
5.6.210.0070.03620.63
5.6.200.0040.04220.86
5.6.190.0030.04620.93
5.6.180.0070.03820.93
5.6.170.0160.02820.86
5.6.160.0030.04120.86
5.6.150.0100.04020.84
5.6.140.0070.03820.99
5.6.130.0030.04320.92
5.6.120.0000.04520.85
5.6.110.0230.04620.92
5.6.100.0170.05120.94
5.6.90.0070.04120.91
5.6.80.0060.03520.20
5.6.70.0070.03420.40
5.6.60.0030.04320.37
5.6.50.0100.03620.40
5.6.40.0100.03520.10
5.6.30.0070.04020.13
5.6.20.0100.03220.20
5.6.10.0060.03820.16
5.6.00.0070.03420.39
5.5.380.0070.04317.41
5.5.370.0200.04017.55
5.5.360.0070.03917.45
5.5.350.0070.03717.42
5.5.340.0030.04117.97
5.5.330.0030.04117.94
5.5.320.0030.04318.03
5.5.310.0100.03517.96
5.5.300.0040.04217.90
5.5.290.0000.04717.83
5.5.280.0070.04318.11
5.5.270.0030.04218.05
5.5.260.0070.04417.95
5.5.250.0030.03817.67
5.5.240.0030.03617.21
5.5.230.0000.04617.43
5.5.220.0030.03617.43
5.5.210.0030.03917.40
5.5.200.0070.04017.31
5.5.190.0030.03917.31
5.5.180.0030.04617.18
5.5.160.0030.04317.34
5.5.150.0030.04317.04
5.5.140.0000.04517.38
5.5.130.0030.04217.45
5.5.120.0070.03917.32
5.5.110.0000.04617.41
5.5.100.0000.06817.21
5.5.90.0070.03317.21
5.5.80.0030.03817.19
5.5.70.0030.04117.18
5.5.60.0030.04017.23
5.5.50.0000.04517.26
5.5.40.0030.03717.07
5.5.30.0000.03917.07
5.5.20.0000.05117.27
5.5.10.0030.03717.20
5.5.00.0030.04217.20
5.4.450.0060.04619.35
5.4.440.0000.04619.38
5.4.430.0030.03719.52
5.4.420.0060.04519.23
5.4.410.0030.03719.08
5.4.400.0000.04019.07
5.4.390.0060.03518.83
5.4.380.0190.03818.91
5.4.370.0260.04919.05
5.4.360.0000.04118.98
5.4.350.0030.04118.95
5.4.340.0000.04419.02
5.4.320.0030.04118.88
5.4.310.0060.03619.10
5.4.300.0030.03818.85
5.4.290.0030.03619.14
5.4.280.0030.03819.02
5.4.270.0100.03018.97
5.4.260.0060.03919.18
5.4.250.0070.03319.07
5.4.240.0090.03519.05
5.4.230.0030.04018.88
5.4.220.0030.04118.91
5.4.210.0090.03418.85
5.4.200.0040.03918.96
5.4.190.0100.03118.80
5.4.180.0000.04119.13
5.4.170.0030.04019.09
5.4.160.0030.04719.03
5.4.150.0040.03918.83
5.4.140.0060.03816.48
5.4.130.0000.04716.51
5.4.120.0070.03816.55
5.4.110.0060.03816.35
5.4.100.0060.03516.57
5.4.90.0000.04016.41
5.4.80.0030.03616.61
5.4.70.0000.04016.34
5.4.60.0000.04116.60
5.4.50.0000.04216.64
5.4.40.0000.04216.38
5.4.30.0070.03516.58
5.4.20.0000.04116.43
5.4.10.0040.03616.61
5.4.00.0070.03416.00

preferences:
53.84 ms | 400 KiB | 5 Q