3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: image/png"); $im = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 0, 0, 0); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); 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.0110.00416.88
8.3.50.0060.00921.05
8.3.40.0070.01118.59
8.3.30.0070.00718.83
8.3.20.0050.00320.16
8.3.10.0000.00723.50
8.3.00.0040.00423.68
8.2.180.0170.00318.29
8.2.170.0040.01122.96
8.2.160.0070.00720.55
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00019.64
8.2.120.0040.00426.35
8.2.110.0040.00421.17
8.2.100.0110.00017.66
8.2.90.0080.00017.84
8.2.80.0070.00018.19
8.2.70.0090.00017.61
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00422.15
8.2.30.0040.00419.50
8.2.20.0000.00817.73
8.2.10.0080.00018.07
8.2.00.0000.00718.05
8.1.280.0190.00425.92
8.1.270.0040.00420.30
8.1.260.0000.00728.09
8.1.250.0100.00328.09
8.1.240.0030.00623.82
8.1.230.0000.01220.89
8.1.220.0040.00417.74
8.1.210.0040.00418.78
8.1.200.0030.00717.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00818.47
8.1.160.0040.00420.70
8.1.150.0000.00818.83
8.1.140.0040.00419.48
8.1.130.0000.00817.56
8.1.120.0000.00717.37
8.1.110.0040.00717.29
8.1.100.0040.00417.43
8.1.90.0040.00317.30
8.1.80.0000.00717.41
8.1.70.0040.00417.45
8.1.60.0030.00617.52
8.1.50.0050.00317.52
8.1.40.0100.00017.52
8.1.30.0040.00417.50
8.1.20.0000.00817.59
8.1.10.0050.00317.56
8.1.00.0030.00517.43
8.0.300.0000.00719.86
8.0.290.0040.00416.88
8.0.280.0030.00318.32
8.0.270.0080.00017.18
8.0.260.0000.00717.13
8.0.250.0030.00317.00
8.0.240.0070.00016.90
8.0.230.0000.00717.06
8.0.220.0040.00417.02
8.0.210.0000.00716.96
8.0.200.0080.00016.91
8.0.190.0000.00816.93
8.0.180.0000.00717.00
8.0.170.0030.00516.87
8.0.160.0070.00016.99
8.0.150.0000.00716.89
8.0.140.0000.00816.95
8.0.130.0000.00513.41
8.0.120.0040.00416.84
8.0.110.0070.00016.80
8.0.100.0040.00416.82
8.0.90.0040.00416.97
8.0.80.0100.01016.96
8.0.70.0050.00316.83
8.0.60.0040.00416.96
8.0.50.0040.00417.00
8.0.30.0140.00417.19
8.0.20.0140.00517.40
8.0.10.0040.00416.96
8.0.00.0080.01116.82
7.4.330.0060.00016.67
7.4.320.0030.00316.55
7.4.300.0080.00016.43
7.4.290.0070.00016.36
7.4.280.0080.00016.57
7.4.270.0030.00316.55
7.4.260.0060.00316.39
7.4.250.0050.00216.36
7.4.240.0030.00416.46
7.4.230.0040.00416.63
7.4.220.0070.01416.46
7.4.210.0060.01016.41
7.4.200.0000.00716.33
7.4.160.0030.01316.58
7.4.150.0030.01417.40
7.4.140.0090.00917.86
7.4.130.0130.00816.69
7.4.120.0090.01116.64
7.4.110.0070.01416.47
7.4.100.0090.00916.41
7.4.90.0080.01316.61
7.4.80.0080.01319.39
7.4.70.0070.01116.60
7.4.60.0100.00716.55
7.4.50.0100.00716.64
7.4.40.0100.01316.55
7.4.30.0070.01116.45
7.4.00.0030.00915.20
7.3.330.0050.00013.24
7.3.320.0050.00012.95
7.3.310.0000.00716.09
7.3.300.0030.00416.28
7.3.290.0070.01016.22
7.3.280.0070.00916.29
7.3.270.0060.01017.40
7.3.260.0130.00316.68
7.3.250.0120.00516.43
7.3.240.0090.01316.34
7.3.230.0060.01016.49
7.3.210.0120.00616.21
7.3.200.0080.00819.39
7.3.190.0090.00616.43
7.3.180.0070.00716.25
7.3.170.0030.01316.31
7.3.160.0060.01016.25
7.3.120.0060.01214.96
7.3.110.0030.01114.62
7.3.100.0060.01014.58
7.3.90.0080.00614.57
7.3.80.0030.00914.95
7.3.70.0000.01114.88
7.3.60.0000.01614.76
7.3.50.0030.01314.51
7.3.40.0060.00614.48
7.3.30.0030.01014.68
7.3.20.0070.00716.74
7.3.10.0070.00716.60
7.3.00.0000.01816.64
7.2.330.0080.01116.25
7.2.320.0160.00016.67
7.2.310.0120.00316.33
7.2.300.0180.00016.41
7.2.290.0060.01116.42
7.2.240.0070.00314.96
7.2.230.0130.00314.86
7.2.220.0060.00614.80
7.2.210.0030.01214.78
7.2.200.0070.01114.98
7.2.190.0040.01115.02
7.2.180.0070.01014.69
7.2.170.0060.00915.00
7.2.160.0140.00314.61
7.2.150.0140.00316.76
7.2.140.0170.01016.91
7.2.130.0110.00616.91
7.2.120.0210.00716.87
7.2.110.0170.01416.74
7.2.100.0030.01716.82
7.2.90.0070.01116.84
7.2.80.0140.00416.95
7.2.70.0100.00716.84
7.2.60.0070.01016.79
7.2.50.0030.01216.76
7.2.40.0070.01116.88
7.2.30.0030.01216.65
7.2.20.0070.01016.95
7.2.10.0060.01016.78
7.2.00.0040.01218.20
7.1.330.0060.01015.73
7.1.320.0030.01215.65
7.1.310.0110.00015.57
7.1.300.0090.00315.82
7.1.290.0120.00415.75
7.1.280.0100.00715.76
7.1.270.0080.00815.77
7.1.260.0160.00815.70
7.1.250.0150.01115.66
7.1.200.0100.00315.75
7.1.100.0000.00818.01
7.1.70.0040.00417.07
7.1.60.0160.00919.27
7.1.50.0030.01716.86
7.1.00.0070.07322.41
7.0.200.0000.00716.39
7.0.60.0070.04721.59
7.0.50.0030.04017.86
7.0.40.0100.07019.96
7.0.30.0300.08020.01
7.0.20.0230.05720.22
7.0.10.0170.07320.01
7.0.00.0030.05020.04
5.6.210.0070.08020.62
5.6.200.0070.05718.19
5.6.190.0170.08320.41
5.6.180.0430.04020.58
5.6.170.0230.03720.50
5.6.160.0100.05020.40
5.6.150.0030.08318.16
5.6.140.0130.07018.09
5.6.130.0170.07318.11
5.6.120.0100.04021.04
5.6.110.0100.07720.88
5.6.100.0170.08020.99
5.6.90.0200.05721.13
5.6.80.0070.08020.48
5.5.350.0000.08320.29
5.5.340.0000.04017.95
5.5.330.0070.08020.28
5.5.320.0570.07020.21
5.5.310.0200.04020.12
5.5.300.0030.08317.87
5.5.290.0030.06018.01
5.5.280.0100.04720.76
5.5.270.0170.07020.71
5.5.260.0000.08020.81
5.5.250.0030.08720.79
5.5.240.0200.07020.27

preferences:
101.81 ms | 401 KiB | 5 Q