3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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.01416.88
8.3.50.0110.00622.08
8.3.40.0000.01518.70
8.3.30.0040.01119.14
8.3.20.0000.00720.18
8.3.10.0000.00723.48
8.3.00.0030.00617.50
8.2.180.0090.00618.30
8.2.170.0140.00022.96
8.2.160.0030.01020.39
8.2.150.0050.00224.18
8.2.140.0150.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00722.30
8.2.110.0060.00321.00
8.2.100.0110.00017.91
8.2.90.0000.00817.75
8.2.80.0080.00417.97
8.2.70.0050.00317.74
8.2.60.0040.00418.16
8.2.50.0000.00818.10
8.2.40.0000.00718.03
8.2.30.0000.00717.90
8.2.20.0000.00817.74
8.2.10.0030.00517.91
8.2.00.0060.00317.58
8.1.280.0110.00725.92
8.1.270.0090.00023.88
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.10
8.1.230.0040.00819.11
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.44
8.1.160.0000.00821.96
8.1.150.0040.00418.61
8.1.140.0030.00617.23
8.1.130.0000.00617.85
8.1.120.0050.00317.41
8.1.110.0000.00717.38
8.1.100.0000.00817.28
8.1.90.0040.00417.36
8.1.80.0000.00717.33
8.1.70.0000.00817.29
8.1.60.0000.00817.47
8.1.50.0050.00317.49
8.1.40.0040.00417.46
8.1.30.0080.00017.52
8.1.20.0000.00717.55
8.1.10.0000.00817.42
8.1.00.0000.00817.48
8.0.300.0050.00319.73
8.0.290.0030.00616.63
8.0.280.0030.00318.26
8.0.270.0060.00017.11
8.0.260.0000.00617.14
8.0.250.0070.00016.96
8.0.240.0000.00816.98
8.0.230.0030.00317.00
8.0.220.0030.00316.80
8.0.210.0070.00016.93
8.0.200.0070.00316.95
8.0.190.0030.00616.85
8.0.180.0050.00317.00
8.0.170.0030.00716.97
8.0.160.0000.00716.84
8.0.150.0090.00016.83
8.0.140.0000.00816.86
8.0.130.0090.00013.38
8.0.120.0040.00416.79
8.0.110.0000.00716.92
8.0.100.0080.00016.95
8.0.90.0000.00716.74
8.0.80.0060.00916.83
8.0.70.0050.00316.90
8.0.60.0020.00516.86
8.0.50.0040.00416.90
8.0.30.0140.00516.99
8.0.20.0110.00917.40
8.0.10.0000.00716.80
8.0.00.0110.00616.82
7.4.330.0050.00015.00
7.4.320.0000.00716.32
7.4.300.0030.00316.61
7.4.290.0000.00716.37
7.4.280.0030.00616.41
7.4.270.0080.00016.46
7.4.260.0030.00516.56
7.4.250.0070.00016.56
7.4.240.0050.00216.47
7.4.230.0030.00316.31
7.4.220.0030.01516.59
7.4.210.0080.01016.48
7.4.200.0000.00716.31
7.4.190.0000.00816.36
7.4.160.0060.00916.43
7.4.150.0130.00917.40
7.4.140.0080.01017.86
7.4.130.0050.01216.52
7.4.120.0100.00816.52
7.4.110.0030.01416.60
7.4.100.0130.00316.54
7.4.90.0060.01116.62
7.4.80.0120.00619.39
7.4.70.0140.00316.40
7.4.60.0060.01116.46
7.4.50.0030.00516.46
7.4.40.0090.00322.77
7.4.30.0060.01016.39
7.4.00.0030.00615.00
7.3.330.0050.00013.04
7.3.320.0030.00313.20
7.3.310.0040.00416.23
7.3.300.0030.00316.19
7.3.290.0110.00316.32
7.3.280.0090.00716.30
7.3.270.0000.01817.40
7.3.260.0080.00816.33
7.3.250.0190.00416.42
7.3.240.0090.00616.46
7.3.230.0070.01016.48
7.3.210.0120.00616.34
7.3.200.0070.01119.39
7.3.190.0100.00716.24
7.3.180.0160.00616.59
7.3.170.0110.00716.50
7.3.160.0130.00316.22
7.3.120.0050.00515.00
7.2.330.0030.01516.38
7.2.320.0100.00616.55
7.2.310.0100.00716.45
7.2.300.0130.00316.32
7.2.290.0140.00316.32
7.2.60.0120.00616.77
7.1.200.0030.00715.50
7.1.100.0030.00617.59
7.1.70.0000.00716.81
7.1.60.0040.02119.33
7.1.50.0060.00916.69
7.1.00.0030.07722.54
7.0.200.0200.00314.75
7.0.140.0000.07322.18
7.0.100.0230.06320.01
7.0.90.0070.08019.86
7.0.80.0030.08319.98
7.0.70.0230.07319.89
7.0.60.0130.05719.85
7.0.50.0030.05020.16
7.0.40.0000.05020.04
7.0.30.0130.08020.11
7.0.20.0100.07720.07
7.0.10.0030.04720.13
7.0.00.0170.08020.10
5.6.280.0100.06720.99
5.6.250.0100.05020.59
5.6.240.0000.05320.72
5.6.230.0070.05720.68
5.6.220.0030.08020.62
5.6.210.0000.04720.77
5.6.200.0070.09320.96
5.6.190.0030.06021.17
5.6.180.0100.08020.93
5.6.170.0030.04320.95
5.6.160.0070.03721.04
5.6.150.0100.07721.13
5.6.140.0130.08720.95
5.6.130.0070.03721.00
5.6.120.0070.08721.10
5.6.110.0130.03720.95
5.6.100.0100.04721.04
5.6.90.0070.04721.06
5.6.80.0100.04020.49
5.6.70.0070.08020.31
5.6.60.0200.03320.39
5.6.50.0130.07720.40
5.6.40.0100.04720.30
5.6.30.0070.08020.29
5.6.20.0070.07020.31
5.6.10.0130.06320.35
5.6.00.0030.07020.38
5.5.380.0070.07320.36
5.5.370.0070.06720.51
5.5.360.0000.05020.53
5.5.350.0030.04320.47
5.5.340.0070.06320.83
5.5.330.0000.04720.89
5.5.320.0030.09020.64
5.5.310.0170.02720.90
5.5.300.0070.03720.86
5.5.290.0000.04320.63
5.5.280.0170.06020.88
5.5.270.0030.08720.84
5.5.260.0130.05720.79
5.5.250.0230.05020.61
5.5.240.0130.06320.16
5.5.230.0100.06720.27
5.5.220.0070.07020.27
5.5.210.0030.06320.17
5.5.200.0030.07019.96
5.5.190.0070.05320.12
5.5.180.0070.07020.19
5.5.160.0070.07320.28
5.5.150.0100.06320.07
5.5.140.0000.08320.11
5.5.130.0100.05720.22
5.5.120.0070.04020.13
5.5.110.0130.04720.14
5.5.100.0070.04320.07
5.5.90.0030.07720.12
5.5.80.0100.07020.09
5.5.70.0000.07020.06
5.5.60.0130.03720.03
5.5.50.0100.07320.08
5.5.40.0000.04320.14
5.5.30.0170.06720.05
5.5.20.0130.04320.14
5.5.10.0030.05320.13
5.5.00.0070.07720.05
5.4.450.0070.07719.39
5.4.440.0030.07019.34
5.4.430.0000.07719.22
5.4.420.0130.03019.34
5.4.410.0030.07319.32
5.4.400.0130.06719.00
5.4.390.0000.08719.04
5.4.380.0070.06019.11
5.4.370.0070.06319.05
5.4.360.0100.07019.22
5.4.350.0100.06718.78
5.4.340.0070.07319.07
5.4.320.0100.07719.14
5.4.310.0070.04718.98
5.4.300.0070.07718.80
5.4.290.0000.07318.78
5.4.280.0130.04018.94
5.4.270.0070.07719.05
5.4.260.0070.07019.03
5.4.250.0070.03718.97
5.4.240.0170.06719.22
5.4.230.0100.08019.02
5.4.220.0070.04719.08
5.4.210.0100.05019.23
5.4.200.0070.07318.94
5.4.190.0100.07318.96
5.4.180.0130.07319.02
5.4.170.0000.08319.10
5.4.160.0030.03718.92
5.4.150.0070.07719.07
5.4.140.0030.04316.27
5.4.130.0000.07316.28
5.4.120.0030.04716.36
5.4.110.0030.06316.39
5.4.100.0000.06716.41
5.4.90.0130.04716.23
5.4.80.0130.07016.19
5.4.70.0030.06716.40
5.4.60.0070.04316.20
5.4.50.0030.03716.27
5.4.40.0100.03016.23
5.4.30.0030.03716.19
5.4.20.0030.03316.28
5.4.10.0070.03316.41
5.4.00.0070.03315.73
5.3.290.0030.08014.67
5.3.280.0030.04014.55
5.3.270.0070.07314.46
5.3.260.0070.06714.61
5.3.250.0000.04714.61
5.3.240.0000.06714.46
5.3.230.0100.07014.60
5.3.220.0100.03714.54
5.3.210.0100.06314.48
5.3.200.0070.04314.57
5.3.190.0100.06014.52
5.3.180.0030.07014.55
5.3.170.0170.06314.39
5.3.160.0030.04014.52
5.3.150.0030.03714.51
5.3.140.0000.04014.39
5.3.130.0000.04014.46
5.3.120.0070.03314.38
5.3.110.0130.02714.41
5.3.100.0100.03013.86
5.3.90.0030.04013.97
5.3.80.0000.03313.98
5.3.70.0070.03314.02
5.3.60.0030.03014.00
5.3.50.0000.04013.70
5.3.40.0070.03713.90
5.3.30.0000.03313.89
5.3.20.0000.03013.59
5.3.10.0000.03313.61
5.3.00.0070.03313.39
5.2.170.0070.02311.21
5.2.160.0030.02711.12
5.2.150.0030.03310.89
5.2.140.0030.02311.10
5.2.130.0070.02310.91
5.2.120.0070.03310.89
5.2.110.0000.02710.96
5.2.100.0030.02710.91
5.2.90.0000.03311.09
5.2.80.0000.03310.94
5.2.70.0070.02011.08
5.2.60.0000.02711.08
5.2.50.0030.03711.05
5.2.40.0070.02010.91
5.2.30.0070.02311.02
5.2.20.0030.02310.88
5.2.10.0030.02710.73
5.2.00.0030.02710.66
5.1.60.0070.02010.09
5.1.50.0030.0209.99
5.1.40.0030.0239.96
5.1.30.0030.02710.28
5.1.20.0000.02710.38
5.1.10.0030.02710.13
5.1.00.0030.02710.09
5.0.50.0000.0178.61
5.0.40.0000.0178.39
5.0.30.0000.0278.30
5.0.20.0030.0138.30
5.0.10.0000.0208.27
5.0.00.0030.0308.23
4.4.90.0000.0208.23
4.4.80.0000.0138.23
4.4.70.0000.0138.23
4.4.60.0000.0138.23
4.4.50.0000.0138.23
4.4.40.0000.0278.23
4.4.30.0000.0178.23
4.4.20.0070.0108.23
4.4.10.0000.0178.23
4.4.00.0030.0238.23
4.3.110.0000.0138.23
4.3.100.0030.0108.23
4.3.90.0000.0178.23
4.3.80.0030.0208.23
4.3.70.0000.0138.23
4.3.60.0000.0178.23
4.3.50.0000.0138.23
4.3.40.0000.0208.23
4.3.30.0030.0138.23
4.3.20.0000.0138.23
4.3.10.0000.0178.23
4.3.00.0000.0138.23

preferences:
42.51 ms | 401 KiB | 5 Q