3v4l.org

run code in 300+ PHP versions simultaneously
<?php $im = imagecreatetruecolor(100, 100); // Make the background white imagefilledrectangle($im, 0, 0, 99, 99, 0xFFFFFF); // Draw a text string on the image imagestring($im, 3, 40, 20, 'GD Library', 0xFFBA00); // Output the image to browser header('Content-Type: image/gif'); imagegif($im); imagedestroy($im);

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.00416.50
8.3.50.0110.00821.87
8.3.40.0030.01818.74
8.3.30.0040.01818.67
8.3.20.0070.00020.13
8.3.10.0040.00423.66
8.3.00.0030.00517.75
8.2.180.0180.00416.63
8.2.170.0030.01422.96
8.2.160.0140.00020.21
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00517.63
8.2.110.0060.00321.06
8.2.100.0040.00817.78
8.2.90.0080.00019.13
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00517.80
8.2.50.0060.00318.07
8.2.40.0000.00719.38
8.2.30.0060.00320.69
8.2.20.0040.00417.57
8.2.10.0080.00017.93
8.2.00.0040.00418.01
8.1.280.0070.00725.92
8.1.270.0060.00323.84
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0050.00819.45
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.13
8.1.190.0070.00317.13
8.1.180.0050.00218.10
8.1.170.0050.00318.95
8.1.160.0000.00721.86
8.1.150.0060.00318.79
8.1.140.0050.00319.45
8.1.130.0070.00017.50
8.1.120.0040.00317.37
8.1.110.0030.00317.27
8.1.100.0000.00817.25
8.1.90.0000.00717.35
8.1.80.0030.00317.35
8.1.70.0070.00017.24
8.1.60.0000.00717.48
8.1.50.0080.00017.47
8.1.40.0000.00917.50
8.1.30.0040.00417.60
8.1.20.0030.00617.63
8.1.10.0060.00317.57
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.40
8.0.270.0000.00817.21
8.0.260.0030.00317.23
8.0.250.0040.00416.95
8.0.240.0000.00716.81
8.0.230.0000.00716.86
8.0.220.0000.00816.91
8.0.210.0000.00816.89
8.0.200.0060.00016.85
8.0.190.0000.00816.99
8.0.180.0030.00316.81
8.0.170.0070.00016.94
8.0.160.0040.00416.80
8.0.150.0000.00716.82
8.0.140.0030.00316.75
8.0.130.0000.00613.34
8.0.120.0080.00016.80
8.0.110.0030.00316.95
8.0.100.0060.00317.02
8.0.90.0030.00416.94
8.0.80.0150.00616.86
8.0.70.0040.00416.88
8.0.60.0080.00016.97
8.0.50.0040.00416.92
8.0.30.0120.00816.81
8.0.20.0110.01117.40
8.0.10.0040.00417.03
8.0.00.0070.01116.71
7.4.330.0030.00315.08
7.4.320.0000.00616.35
7.4.300.0030.00316.53
7.4.290.0040.00416.59
7.4.280.0080.00016.45
7.4.270.0030.00316.60
7.4.260.0030.00316.58
7.4.250.0040.00416.43
7.4.240.0070.00016.48
7.4.230.0030.00316.29
7.4.220.0110.00716.57
7.4.210.0040.01316.48
7.4.200.0030.00316.62
7.4.160.0040.01416.43
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0100.00716.49
7.4.120.0080.00916.45
7.4.110.0090.00916.54
7.4.100.0030.01916.37
7.4.90.0060.01016.50
7.4.80.0080.01219.39
7.4.70.0130.00316.44
7.4.60.0100.00716.61
7.4.50.0080.00016.50
7.4.40.0060.01316.41
7.4.30.0100.00716.57
7.4.00.0100.00715.11
7.3.330.0030.00313.11
7.3.320.0060.00013.03
7.3.310.0030.00316.35
7.3.300.0020.00516.28
7.3.290.0030.00316.10
7.3.280.0070.01016.24
7.3.270.0080.00817.40
7.3.260.0130.00316.21
7.3.250.0110.00816.34
7.3.240.0120.01116.42
7.3.230.0100.01016.39
7.3.210.0140.00316.45
7.3.200.0120.01216.13
7.3.190.0100.00716.25
7.3.180.0100.00616.64
7.3.170.0140.00316.38
7.3.160.0060.00916.36
7.3.10.0060.00616.54
7.3.00.0030.01016.53
7.2.330.0070.01016.45
7.2.320.0040.01216.25
7.2.310.0100.00616.50
7.2.300.0030.01416.24
7.2.290.0120.01016.29
7.2.130.0070.00416.50
7.2.120.0120.00016.66
7.2.110.0090.00316.51
7.2.100.0000.01316.47
7.2.90.0090.00016.70
7.2.80.0030.00916.70
7.2.70.0040.01116.48
7.2.60.0050.00816.57
7.2.50.0040.00816.78
7.2.40.0090.00616.85
7.2.30.0070.00316.74
7.2.20.0070.00316.79
7.2.10.0130.00016.54
7.2.00.0020.01218.10
7.1.250.0030.00615.67
7.1.200.0030.01015.53
7.1.100.0000.00818.12
7.1.70.0030.00316.68
7.1.60.0000.01319.43
7.1.50.0080.00316.79
7.1.00.0000.08022.48
7.0.200.0030.00614.89
7.0.60.0100.05019.87
7.0.50.0100.04717.89
7.0.40.0170.05320.05
7.0.30.0200.03720.11
7.0.20.0400.07020.01
7.0.10.0070.08720.04
7.0.00.0070.08320.17
5.6.280.0030.06320.79
5.6.210.0070.08020.56
5.6.200.0130.06318.21
5.6.190.0030.05020.48
5.6.180.0400.07720.64
5.6.170.0230.04320.61
5.6.160.0100.06320.49
5.6.150.0000.05318.19
5.6.140.0030.05718.11
5.6.130.0100.09018.11
5.6.120.0000.04721.00
5.6.110.0030.08321.14
5.6.100.0070.07021.13
5.6.90.0130.07720.87
5.6.80.0100.07720.39
5.5.350.2970.03720.47
5.5.340.0100.08017.92
5.5.330.0170.06020.40
5.5.320.0270.04320.31
5.5.310.0270.06320.29
5.5.300.0030.04018.01
5.5.290.0070.07717.91
5.5.280.0170.08020.77
5.5.270.0170.04320.86
5.5.260.0130.07020.79
5.5.250.0100.07720.68
5.5.240.0070.07020.20
5.4.450.0030.06319.40
5.4.440.0030.06319.46
5.4.430.0430.05019.48
5.4.420.0730.05719.61
5.4.410.0670.06019.11
5.4.400.0830.06719.17
5.4.390.0730.04718.81
5.4.380.0670.05719.30
5.4.370.0170.05018.80
5.4.360.0170.05719.14
5.4.350.0100.05719.24
5.4.340.0070.06019.30
5.4.320.0230.05319.13
5.4.310.0230.04319.13
5.4.300.0170.05018.99
5.4.290.0130.06719.22
5.4.280.0200.05319.29
5.4.270.0230.06319.19
5.4.260.0130.05318.77
5.4.250.0230.04718.94
5.4.240.0130.05719.16
5.4.230.0170.04719.22
5.4.220.0170.05318.99
5.4.210.0130.05319.32
5.4.200.0200.04719.14
5.4.190.0230.05019.13
5.4.180.0200.04319.18
5.4.170.0070.05718.98
5.4.160.0170.04718.75
5.4.150.0100.06018.89
5.4.140.0200.04716.40
5.4.130.0230.03716.43
5.4.120.0070.05716.32
5.4.110.0030.06016.50
5.4.100.0200.04316.39
5.4.90.0230.04316.29
5.4.80.0130.05016.52
5.4.70.0130.05016.48
5.4.60.0130.05016.16
5.4.50.0100.05316.16
5.4.40.0200.04716.36
5.4.30.0300.04316.43
5.4.20.0170.05316.44
5.4.10.0300.06016.46
5.4.00.0130.05315.95

preferences:
36.79 ms | 401 KiB | 5 Q