3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: image/png"); $img = @imagecreate(900, 900) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($img, 255, 255, 255); $red = imagecolorallocate($img, 255, 0, 0); for($i=0;$i<=360;$i+=10) { $x = round(cos($i)*400)+450; $y = round(sin($i)*400)+450; imagefilledellipse($img, $x, $y, 3, 3, $red); } imagepng($img); imagedestroy($img);

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.0070.00718.92
8.3.30.0130.00420.35
8.3.20.0080.00020.50
8.3.10.0050.00320.85
8.3.00.0040.00423.52
8.2.170.0110.00422.96
8.2.160.0000.01420.35
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0110.00721.00
8.2.110.0090.00922.26
8.2.100.0060.00617.91
8.2.90.0060.00319.27
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0080.00017.95
8.2.30.0000.00721.13
8.2.20.0040.00417.77
8.2.10.0070.00017.78
8.2.00.0000.00817.68
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.06
8.1.230.0070.00417.45
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0050.00217.40
8.1.180.0050.00318.10
8.1.170.0050.00318.52
8.1.160.0040.00418.85
8.1.150.0000.00818.64
8.1.140.0080.00017.46
8.1.130.0030.00317.74
8.1.120.0000.00717.36
8.1.110.0040.00417.45
8.1.100.0000.00817.32
8.1.90.0000.00817.44
8.1.80.0030.00317.44
8.1.70.0000.00817.30
8.1.60.0050.00317.46
8.1.50.0040.00417.48
8.1.40.0040.00417.41
8.1.30.0040.00417.57
8.1.20.0040.00417.61
8.1.10.0040.00417.53
8.1.00.0080.00017.47
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.45
8.0.270.0030.00317.28
8.0.260.0030.00316.91
8.0.250.0040.00416.96
8.0.240.0000.00716.99
8.0.230.0000.00717.04
8.0.220.0030.00316.98
8.0.210.0000.00816.99
8.0.200.0070.00016.96
8.0.190.0070.00017.14
8.0.180.0050.00316.97
8.0.170.0000.00716.87
8.0.160.0000.00817.03
8.0.150.0030.00616.82
8.0.140.0000.00716.93
8.0.130.0060.00013.47
8.0.120.0000.00916.85
8.0.110.0040.00416.77
8.0.100.0000.00817.04
8.0.90.0000.00716.81
8.0.80.0070.00716.94
8.0.70.0050.00316.83
8.0.60.0000.00717.05
8.0.50.0080.00016.92
8.0.30.0140.01017.18
8.0.20.0120.00617.40
8.0.10.0030.00416.92
8.0.00.0150.00516.80
7.4.330.0000.00516.89
7.4.320.0050.00216.48
7.4.300.0000.00716.46
7.4.290.0000.00716.41
7.4.280.0040.00416.36
7.4.270.0030.00616.49
7.4.260.0050.00013.23
7.4.250.0040.00416.42
7.4.240.0030.00316.56
7.4.230.0000.00716.34
7.4.220.0100.00716.63
7.4.210.0070.00916.59
7.4.200.0000.00716.26
7.4.190.0030.00416.32
7.4.160.0030.01616.51
7.4.150.0100.00717.40
7.4.140.0130.00717.86
7.4.130.0110.00616.51
7.4.120.0090.00716.60
7.4.110.0100.01316.73
7.4.100.0090.00916.48
7.4.90.0100.00716.43
7.4.80.0150.00419.39
7.4.70.0130.00316.60
7.4.60.0130.00716.39
7.4.50.0050.00316.36
7.4.40.0060.00922.77
7.4.30.0110.00516.62
7.4.00.0060.01114.85
7.3.330.0050.00013.14
7.3.320.0050.00013.20
7.3.310.0000.00716.18
7.3.300.0050.00216.33
7.3.290.0030.01116.34
7.3.280.0070.01016.30
7.3.270.0080.01217.40
7.3.260.0150.00518.24
7.3.250.0090.01116.43
7.3.240.0170.00316.52
7.3.230.0100.00716.39
7.3.210.0120.00316.31
7.3.200.0120.01219.39
7.3.190.0100.00616.57
7.3.180.0120.00416.30
7.3.170.0060.00916.34
7.3.160.0100.01316.42
7.3.120.0070.01114.73
7.3.110.0070.01014.80
7.3.100.0030.00714.93
7.3.90.0060.00614.84
7.3.80.0080.00814.91
7.3.70.0040.01414.55
7.3.60.0030.00714.59
7.3.50.0070.00714.85
7.3.40.0170.00314.93
7.3.30.0060.00614.69
7.3.20.0030.00716.50
7.3.10.0070.00716.60
7.3.00.0060.00816.56
7.2.330.0060.01216.21
7.2.320.0140.00316.59
7.2.310.0110.00816.56
7.2.300.0130.00316.57
7.2.290.0070.01016.55
7.2.250.0040.01515.15
7.2.240.0030.01514.74
7.2.230.0040.01115.11
7.2.220.0060.00715.16
7.2.210.0000.01114.86
7.2.200.0030.01314.75
7.2.190.0000.01615.00
7.2.180.0110.00415.02
7.2.170.0070.01514.96
7.2.130.0090.00616.51
7.2.120.0040.01116.82
7.2.110.0060.00316.63
7.2.100.0040.01116.64
7.2.90.0110.00016.60
7.2.80.0040.00916.67
7.2.70.0000.01616.73
7.2.60.0010.01316.73
7.2.50.0040.01116.63
7.2.40.0050.00516.70
7.2.30.0050.00516.88
7.2.20.0060.00516.81
7.2.10.0060.00916.93
7.2.00.0020.00817.83
7.1.330.0070.01115.87
7.1.320.0070.00715.83
7.1.310.0030.01015.77
7.1.300.0030.00515.60
7.1.290.0070.00715.82
7.1.280.0040.01115.68
7.1.270.0040.00715.45
7.1.260.0030.01015.73
7.1.250.0030.00915.83
7.1.200.0030.01115.77
7.1.100.0140.01117.91
7.1.70.0040.00417.20
7.1.60.0090.01219.17
7.1.50.0070.01316.82
7.1.00.0000.03722.54
7.0.200.0040.00416.63
7.0.140.0030.07322.07
7.0.100.0030.04719.92
7.0.90.0070.05020.01
7.0.80.0130.07719.88
7.0.70.0070.08719.93
7.0.60.0070.08019.97
7.0.50.0070.07320.36
7.0.40.0030.05320.08
7.0.30.0030.04320.17
7.0.20.0100.04019.96
7.0.10.0030.04019.99
7.0.00.0100.03320.08
5.6.280.0000.07320.85
5.6.250.0000.07720.71
5.6.240.0130.07320.60
5.6.230.0030.09720.57
5.6.220.0070.04720.55
5.6.210.0170.06320.58
5.6.200.0000.08720.93
5.6.190.0100.06321.11
5.6.180.0070.04721.02
5.6.170.0030.04321.11
5.6.160.0030.04321.01
5.6.150.0070.03721.08
5.6.140.0100.04020.88
5.6.130.0100.03721.16
5.6.120.0030.06021.07
5.6.110.0100.03721.12
5.6.100.0070.04321.00
5.6.90.0030.07321.01
5.6.80.0070.04020.31
5.6.70.0000.04320.42
5.6.60.0000.04320.39
5.6.50.0030.04020.46
5.6.40.0100.03320.31
5.6.30.0030.04020.45
5.6.20.0070.04320.43
5.6.10.0030.04320.30
5.6.00.0030.04320.48
5.5.380.0070.05020.41
5.5.370.0070.08020.36
5.5.360.0030.08320.43
5.5.350.0130.06720.45
5.5.340.0070.06320.64
5.5.330.0070.03720.73
5.5.320.0070.04020.79
5.5.310.0070.04320.88
5.5.300.0030.04720.63
5.5.290.0030.04320.79
5.5.280.0070.04020.91
5.5.270.0030.04720.63
5.5.260.0100.04020.92
5.5.250.0100.07020.70
5.5.240.0070.04020.01
5.5.230.0070.04720.30
5.5.220.0030.04020.13
5.5.210.0100.03320.24
5.5.200.0070.03720.23
5.5.190.0130.03720.21
5.5.180.0000.04320.12
5.5.160.0070.03719.98
5.5.150.0030.04020.12
5.5.140.0100.03320.08
5.5.130.0030.04320.21
5.5.120.0030.04020.16
5.5.110.0030.04720.20
5.5.100.0030.04020.12
5.5.90.0130.03320.11
5.5.80.0030.03320.14
5.5.70.0000.05019.96
5.5.60.0070.03320.11
5.5.50.0030.04019.91
5.5.40.0030.04019.96
5.5.30.0030.07720.04
5.5.20.0070.03319.98
5.5.10.0100.07020.00
5.5.00.0070.03020.09
5.4.450.0000.04319.29
5.4.440.0100.03319.36
5.4.430.0070.03719.43
5.4.420.0000.04319.22
5.4.410.0170.03019.21
5.4.400.0030.04019.13
5.4.390.0100.03319.04
5.4.380.0070.03718.98
5.4.370.0030.04018.90
5.4.360.0030.04018.89
5.4.350.0070.03718.90
5.4.340.0030.03719.23
5.4.320.0030.04318.94
5.4.310.0000.04019.23
5.4.300.0070.03319.04
5.4.290.0000.04019.07
5.4.280.0030.03718.90
5.4.270.0030.04019.07
5.4.260.0070.03019.14
5.4.250.0100.03018.95
5.4.240.0000.04018.97
5.4.230.0070.03719.10
5.4.220.0000.04319.11
5.4.210.0030.04018.77
5.4.200.0070.06018.77
5.4.190.0030.03319.01
5.4.180.0070.05719.22
5.4.170.0100.06719.01
5.4.160.0000.04318.98
5.4.150.0170.02719.04
5.4.140.0100.04716.35
5.4.130.0070.03716.28
5.4.120.0030.03316.32
5.4.110.0100.07016.41
5.4.100.0070.06316.43
5.4.90.0030.05016.25
5.4.80.0070.05016.20
5.4.70.0000.07716.25
5.4.60.0130.05316.29
5.4.50.0100.07316.19
5.4.40.0130.06716.24
5.4.30.0030.04316.30
5.4.20.0200.03316.40
5.4.10.0070.07716.17
5.4.00.0130.05015.46
5.3.290.0070.03714.60
5.3.280.0030.03714.59
5.3.270.0070.06014.46
5.3.260.0000.06014.58
5.3.250.0030.04714.45
5.3.240.0130.02714.60
5.3.230.0030.07014.57
5.3.220.0070.07714.39
5.3.210.0170.06314.51
5.3.200.0100.06314.59
5.3.190.0100.03314.55
5.3.180.0100.05014.55
5.3.170.0000.04014.47
5.3.160.0070.08014.50
5.3.150.0170.06314.55
5.3.140.0030.07014.52
5.3.130.0030.04314.38
5.3.120.0030.06714.54
5.3.110.0070.07714.41
5.3.100.0100.06014.04
5.3.90.0070.04713.96
5.3.80.0130.05313.77
5.3.70.0130.05013.88
5.3.60.0030.07714.00
5.3.50.0030.07313.91
5.3.40.0100.03713.95
5.3.30.0070.04013.66
5.3.20.0070.06713.60
5.3.10.0130.06013.61
5.3.00.0070.07013.50
5.2.170.0070.03311.14
5.2.160.0030.04311.13
5.2.150.0030.07011.19
5.2.140.0070.05311.12
5.2.130.0100.04711.05
5.2.120.0070.06010.91
5.2.110.0030.06011.09
5.2.100.0170.05011.10
5.2.90.0000.06311.15
5.2.80.0000.05311.09
5.2.70.0070.05310.93
5.2.60.0070.04711.13
5.2.50.0030.05310.96
5.2.40.0130.05310.91
5.2.30.0070.05310.99
5.2.20.0070.06010.95
5.2.10.0100.06710.80
5.2.00.0030.04710.64
5.1.60.0100.0479.98
5.1.50.0000.0539.98
5.1.40.0070.05010.04
5.1.30.0030.02710.39
5.1.20.0030.05710.38
5.1.10.0000.0379.94
5.1.00.0000.06010.05
5.0.50.0100.0408.80
5.0.40.0030.0438.80
5.0.30.0130.0608.80
5.0.20.0000.0408.80
5.0.10.0000.0238.80
5.0.00.0000.0678.80
4.4.90.0030.0338.80
4.4.80.0000.0378.80
4.4.70.0070.0308.80
4.4.60.0030.0208.80
4.4.50.0100.0138.80
4.4.40.0030.0538.80
4.4.30.0070.0308.80
4.4.20.0000.0378.80
4.4.10.0030.0378.80
4.4.00.0000.0308.80
4.3.110.0030.0238.80
4.3.100.0070.0378.80
4.3.90.0000.0208.80
4.3.80.0030.0538.80
4.3.70.0130.0238.80
4.3.60.0030.0338.80
4.3.50.0030.0308.80
4.3.40.0030.0508.80
4.3.30.0030.0338.80
4.3.20.0070.0178.80
4.3.10.0000.0338.80
4.3.00.0000.0338.80

preferences:
39.48 ms | 400 KiB | 5 Q