3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create a 100*30 image $im = imagecreate(100, 30); // White background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // Write the string at the top left imagestring($im, 5, 0, 0, 'Hello world!', $textcolor); // Output the image header('Content-type: image/png'); imagepng($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.0070.01418.33
8.3.50.0110.01118.05
8.3.40.0120.00318.67
8.3.30.0080.01219.02
8.3.20.0080.00020.13
8.3.10.0070.00021.81
8.3.00.0030.00519.26
8.2.180.0100.01016.32
8.2.170.0070.00722.96
8.2.160.0100.00720.35
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00420.35
8.2.110.0050.00519.23
8.2.100.0030.01317.72
8.2.90.0030.00619.28
8.2.80.0000.00917.97
8.2.70.0070.00417.50
8.2.60.0140.00017.54
8.2.50.0050.00318.07
8.2.40.0050.00319.38
8.2.30.0030.00320.56
8.2.20.0000.00917.59
8.2.10.0070.00017.89
8.2.00.0040.00417.94
8.1.280.0100.00725.92
8.1.270.0000.00823.91
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00022.20
8.1.230.0110.00419.00
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0030.00518.51
8.1.160.0000.00721.99
8.1.150.0000.00818.70
8.1.140.0080.00019.39
8.1.130.0040.00417.47
8.1.120.0030.00317.26
8.1.110.0040.00417.25
8.1.100.0040.00417.35
8.1.90.0090.00017.37
8.1.80.0000.00717.23
8.1.70.0000.00717.17
8.1.60.0030.00617.36
8.1.50.0030.00517.44
8.1.40.0000.00917.43
8.1.30.0060.00317.51
8.1.20.0030.00517.45
8.1.10.0020.00517.50
8.1.00.0060.00317.38
8.0.300.0030.00620.35
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0030.00317.29
8.0.260.0070.00017.16
8.0.250.0030.00316.97
8.0.240.0050.00316.99
8.0.230.0000.00717.06
8.0.220.0000.00816.93
8.0.210.0080.00016.90
8.0.200.0000.00716.95
8.0.190.0030.00516.86
8.0.180.0080.00016.87
8.0.170.0050.00316.84
8.0.160.0070.00016.94
8.0.150.0030.00516.95
8.0.140.0000.00716.88
8.0.130.0000.00713.30
8.0.120.0040.00416.92
8.0.110.0000.00816.94
8.0.100.0000.00716.82
8.0.90.0050.00316.86
8.0.80.0100.01016.92
8.0.70.0040.00416.93
8.0.60.0070.00016.77
8.0.50.0040.00416.77
8.0.30.0120.00617.02
8.0.20.0090.01117.40
8.0.10.0040.00416.94
8.0.00.0040.01216.83
7.4.330.0020.00216.88
7.4.320.0070.00016.38
7.4.300.0030.00316.48
7.4.290.0000.00816.38
7.4.280.0030.00616.36
7.4.270.0030.00316.56
7.4.260.0090.00016.59
7.4.250.0000.00816.53
7.4.240.0030.00516.43
7.4.230.0000.00716.38
7.4.220.0100.01016.60
7.4.210.0060.01016.44
7.4.200.0050.00316.46
7.4.160.0110.00916.32
7.4.150.0100.00717.40
7.4.140.0060.01317.86
7.4.130.0070.01216.48
7.4.120.0070.01216.44
7.4.110.0070.01016.62
7.4.100.0150.00716.54
7.4.90.0070.01016.38
7.4.80.0040.01219.39
7.4.70.0070.01316.52
7.4.60.0100.01016.47
7.4.50.0090.00616.17
7.4.40.0100.00616.39
7.4.30.0100.00716.53
7.4.00.0070.01115.18
7.3.330.0050.00013.03
7.3.320.0000.00613.04
7.3.310.0030.00316.20
7.3.300.0000.00616.26
7.3.290.0030.00316.13
7.3.280.0110.00716.29
7.3.270.0090.00917.40
7.3.260.0100.01016.46
7.3.250.0060.01316.30
7.3.240.0100.00716.39
7.3.230.0130.00716.46
7.3.210.0030.01616.43
7.3.200.0130.00616.49
7.3.190.0090.00616.39
7.3.180.0080.00816.19
7.3.170.0100.00616.35
7.3.160.0130.00316.55
7.2.330.0110.00716.29
7.2.320.0140.00316.44
7.2.310.0120.00916.66
7.2.300.0100.00716.61
7.2.290.0130.01016.67
7.2.60.0040.00916.70
7.2.00.0060.00619.39
7.1.200.0040.00815.48
7.1.100.0070.00717.77
7.1.70.0000.00716.90
7.1.60.0090.01619.36
7.1.50.0040.00816.52
7.1.00.0070.07322.30
7.0.200.0000.00716.49
7.0.60.0070.06720.00
7.0.50.0100.07717.88
7.0.40.0130.07020.27
7.0.30.0330.07320.00
7.0.20.0270.07720.16
7.0.10.0130.04020.17
7.0.00.0170.07320.16
5.6.280.0100.04720.77
5.6.210.0100.07320.69
5.6.200.0100.03318.08
5.6.190.0270.06320.50
5.6.180.0530.06720.43
5.6.170.0300.08020.38
5.6.160.0070.05020.41
5.6.150.0200.06318.19
5.6.140.0070.06318.21
5.6.130.0230.08318.12
5.6.120.0130.08020.98
5.6.110.0100.06720.96
5.6.100.0170.08321.02
5.6.90.0030.07021.11
5.6.80.0130.03020.38
5.5.350.0270.03320.32
5.5.340.0100.07717.91
5.5.330.0030.04320.57
5.5.320.0030.05320.50
5.5.310.0170.04020.25
5.5.300.0000.04017.98
5.5.290.0070.08717.98
5.5.280.0200.07020.87
5.5.270.0070.08020.86
5.5.260.0170.07720.96
5.5.250.0130.07720.70
5.5.240.4130.03020.04

preferences:
53.24 ms | 400 KiB | 5 Q