3v4l.org

run code in 300+ PHP versions simultaneously
<?php // content="text/plain; charset=utf-8" // Change this defines to where Your fonts are stored DEFINE("TTF_DIR",implode(DIRECTORY_SEPARATOR, array_slice(explode(DIRECTORY_SEPARATOR, dirname(__FILE__)), 0, -1)) . DIRECTORY_SEPARATOR); // Change this define to a font file that You know that You have DEFINE("TTF_FONTFILE","public_html/helvetica.ttf"); // Text to display DEFINE("TTF_TEXT","Hello World!"); $im = imagecreatetruecolor (400, 100); $white = imagecolorallocate ($im, 255, 255, 255); $black = imagecolorallocate ($im, 0, 0, 0); $border_color = imagecolorallocate ($im, 50, 50, 50); imagefilledrectangle($im,0,0,399,99,$white); imagerectangle($im,0,0,399,99,$border_color); imagettftext ($im, 30, 0, 90, 60, $black, TTF_DIR.TTF_FONTFILE,TTF_TEXT); header ("Content-type: image/png"); imagepng ($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.0170.00318.55
8.3.50.0150.00521.09
8.3.40.0040.01118.80
8.3.30.0100.00320.17
8.3.20.0080.00020.66
8.3.10.0040.00421.14
8.3.00.0000.00822.44
8.2.180.0110.01116.50
8.2.170.0070.00722.96
8.2.160.0070.00720.43
8.2.150.0070.00024.18
8.2.140.0070.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00321.00
8.2.110.0060.00319.09
8.2.100.0060.00617.72
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0000.00817.38
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0030.00618.03
8.2.30.0000.00719.37
8.2.20.0020.00517.66
8.2.10.0050.00217.72
8.2.00.0040.00417.71
8.1.280.0060.00925.92
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0040.00820.88
8.1.220.0000.00718.77
8.1.210.0030.00718.84
8.1.200.0040.00717.35
8.1.190.0040.00417.54
8.1.180.0030.00518.10
8.1.170.0000.00818.62
8.1.160.0050.00218.83
8.1.150.0000.00718.59
8.1.140.0000.00717.33
8.1.130.0050.00217.77
8.1.120.0050.00317.31
8.1.110.0050.00317.39
8.1.100.0070.00017.40
8.1.90.0000.00717.46
8.1.80.0040.00417.37
8.1.70.0000.00717.41
8.1.60.0030.00617.59
8.1.50.0020.00517.33
8.1.40.0040.00417.38
8.1.30.0000.00717.54
8.1.20.0000.00817.57
8.1.10.0040.00417.46
8.1.00.0000.00717.51
8.0.300.0090.00019.88
8.0.290.0040.00417.18
8.0.280.0000.00718.46
8.0.270.0030.00317.20
8.0.260.0040.00416.80
8.0.250.0000.00716.95
8.0.240.0030.00617.05
8.0.230.0040.00417.04
8.0.220.0050.00316.96
8.0.210.0030.00316.91
8.0.200.0030.00317.05
8.0.190.0080.00017.06
8.0.180.0040.00416.91
8.0.170.0040.00416.93
8.0.160.0030.00516.99
8.0.150.0040.00416.95
8.0.140.0070.00016.99
8.0.130.0000.00613.36
8.0.120.0040.00415.19
8.0.110.0040.00415.17
8.0.100.0040.00415.13
8.0.90.0040.00415.13
8.0.80.0060.00615.16
8.0.70.0060.00215.05
8.0.60.0020.00615.11
8.0.50.0000.00815.12
8.0.30.0070.00915.72
8.0.20.0100.01316.05
8.0.10.0020.00515.10
8.0.00.0060.00715.57
7.4.330.0030.00316.84
7.4.320.0000.00616.45
7.4.300.0030.00316.60
7.4.290.0050.00316.57
7.4.280.0050.00216.56
7.4.270.0040.00416.58
7.4.260.0030.00313.28
7.4.250.0070.00014.91
7.4.240.0020.00615.26
7.4.230.0060.00214.66
7.4.220.0100.00514.71
7.4.210.0040.00915.84
7.4.200.0040.00414.57
7.4.190.0020.00614.79
7.4.180.0070.00013.32
7.4.160.0050.01014.90
7.4.150.0060.00715.33
7.4.140.0090.00816.32
7.4.130.0070.00715.27
7.4.120.0070.00715.44
7.4.110.0080.00514.65
7.4.100.0100.00214.85
7.4.90.0080.00614.87
7.4.80.0060.00616.15
7.4.70.0050.00714.78
7.4.60.0120.00014.90
7.4.50.0020.00614.65
7.4.40.0050.00517.93
7.4.30.0070.00814.83
7.4.20.0030.00613.22
7.4.10.0030.00613.10
7.4.00.0050.00814.30
7.3.330.0000.00513.13
7.3.320.0050.00013.17
7.3.310.0030.00514.72
7.3.300.0040.00314.67
7.3.290.0050.00614.70
7.3.280.0070.00715.42
7.3.270.0070.00615.25
7.3.260.0060.00916.93
7.3.250.0120.00415.24
7.3.240.0050.00814.93
7.3.230.0030.00814.78
7.3.220.0040.00413.19
7.3.210.0070.00514.84
7.3.200.0050.00916.25
7.3.190.0110.00214.79
7.3.180.0080.00414.80
7.3.170.0070.00814.77
7.3.160.0100.00414.69
7.3.150.0000.00813.06
7.3.140.0070.00013.15
7.3.130.0000.00613.07
7.3.120.0050.00714.23
7.3.110.0070.00313.86
7.3.100.0070.00613.89
7.3.90.0090.00114.06
7.3.80.0060.00513.92
7.3.70.0070.00313.81
7.3.60.0050.00713.97
7.3.50.0030.00514.04
7.3.40.0030.00713.90
7.3.30.0060.00614.01
7.3.20.0070.00515.88
7.3.10.0070.00315.71
7.3.00.0050.00615.84
7.2.340.0070.00512.95
7.2.330.0040.01114.71
7.2.320.0100.00814.68
7.2.310.0070.01014.79
7.2.300.0090.00814.82
7.2.290.0070.00914.78
7.2.280.0120.00012.92
7.2.270.0130.00013.02
7.2.260.0050.00813.08
7.2.250.0100.00713.81
7.2.240.0080.00713.96
7.2.230.0060.00813.88
7.2.220.0070.00614.03
7.2.210.0020.01314.02
7.2.200.0070.00713.93
7.2.190.0030.01113.96
7.2.180.0090.00514.08
7.2.170.0050.00914.01
7.2.160.0040.00914.07
7.2.150.0050.00615.92
7.2.140.0060.00715.89
7.2.130.0080.00615.98
7.2.120.0070.00515.92
7.2.110.0070.00515.81
7.2.100.0080.00515.91
7.2.90.0070.00416.01
7.2.80.0070.00516.05
7.2.70.0070.00515.96
7.2.60.0070.00416.22
7.2.50.0080.00615.79
7.2.40.0080.00815.95
7.2.30.0080.00715.79
7.2.20.0050.00615.96
7.2.10.0070.00515.98
7.2.00.0090.00417.03
7.1.330.0100.00414.81
7.1.320.0060.00614.86
7.1.310.0040.00814.92
7.1.300.0080.00414.95
7.1.290.0090.00214.74
7.1.280.0090.00414.86
7.1.270.0080.00214.90
7.1.260.0070.00314.86
7.1.250.0110.00314.79
7.1.240.0050.00914.90
7.1.230.0080.00514.71
7.1.220.0050.00814.88
7.1.210.0090.00414.83
7.1.200.0040.00815.27
7.1.190.0050.00914.90
7.1.180.0070.00514.74
7.1.170.0060.00514.74
7.1.160.0050.00614.92
7.1.150.0060.00614.85
7.1.140.0090.00114.82
7.1.130.0080.00514.77
7.1.120.0090.00314.79
7.1.110.0080.00314.88
7.1.100.0060.00715.92
7.1.90.0090.00314.87
7.1.80.0060.00515.01
7.1.70.0070.00415.58
7.1.60.0090.00616.34
7.1.50.0070.00815.57
7.1.40.0130.00214.80
7.1.30.0060.00514.63
7.1.20.0070.00314.85
7.1.10.0040.00914.85
7.1.00.0060.01517.22
7.0.330.0090.00414.45
7.0.320.0060.00714.66
7.0.310.0040.00614.49
7.0.300.0060.00614.72
7.0.290.0040.00914.74
7.0.280.0070.00614.72
7.0.270.0060.00614.74
7.0.260.0040.00614.67
7.0.250.0090.00414.75
7.0.240.0110.00214.70
7.0.230.0090.00414.78
7.0.220.0060.00514.73
7.0.210.0070.00514.78
7.0.200.0050.00415.32
7.0.190.0060.00814.78
7.0.180.0080.00514.67
7.0.170.0080.00714.70
7.0.160.0060.01014.67
7.0.150.0100.00614.67
7.0.140.0050.03217.10
7.0.130.0090.00714.63
7.0.120.0050.01014.74
7.0.110.0110.00514.69
7.0.100.0110.01916.42
7.0.90.0090.02616.41
7.0.80.0100.03016.41
7.0.70.0090.02816.39
7.0.60.0070.03116.42
7.0.50.0080.02416.55
7.0.40.0040.03115.88
7.0.30.0070.02015.77
7.0.20.0080.02015.88
7.0.10.0060.03315.84
7.0.00.0070.02615.83
5.6.400.0050.00913.22
5.6.390.0030.01013.29
5.6.380.0060.00613.28
5.6.370.0060.00813.39
5.6.360.0050.00513.21
5.6.350.0040.00813.47
5.6.340.0090.00313.38
5.6.330.0110.00213.38
5.6.320.0050.00713.29
5.6.310.0070.00513.21
5.6.300.0120.00413.31
5.6.290.0110.00313.17
5.6.280.0120.02315.90
5.6.270.0110.00513.41
5.6.260.0110.00313.22
5.6.250.0050.03115.67
5.6.240.0090.04015.77
5.6.230.0050.03315.64
5.6.220.0060.03015.80
5.6.210.0080.01815.72
5.6.200.0100.02815.97
5.6.190.0080.02815.91
5.6.180.0020.02215.98
5.6.170.0070.01916.00
5.6.160.0080.03015.91
5.6.150.0070.03215.88
5.6.140.0070.01615.88
5.6.130.0080.02615.89
5.6.120.0070.03015.83
5.6.110.0080.02815.94
5.6.100.0080.01815.92
5.6.90.0040.03115.82
5.6.80.0030.02715.59
5.6.70.0110.02315.60
5.6.60.0020.03315.61
5.6.50.0060.03115.64
5.6.40.0090.02515.61
5.6.30.0080.03015.64
5.6.20.0050.02715.62
5.6.10.0070.02915.61
5.6.00.0070.02815.65
5.5.380.0070.02315.69
5.5.370.0110.02715.58
5.5.360.0090.03015.48
5.5.350.0090.02715.59
5.5.340.0040.01815.72
5.5.330.0100.02315.73
5.5.320.0050.03015.68
5.5.310.0080.03015.70
5.5.300.0070.03115.70
5.5.290.0080.02915.65
5.5.280.0090.02715.68
5.5.270.0120.02915.63
5.5.260.0080.03015.85
5.5.250.0120.02615.68
5.5.240.0130.02215.50
5.5.230.0080.02315.47
5.5.220.0050.03215.54
5.5.210.0060.02815.63
5.5.200.0040.03315.49
5.5.190.0100.02615.45
5.5.180.0050.03215.55
5.5.170.0050.00813.14
5.5.160.0100.02615.35
5.5.150.0080.02815.52
5.5.140.0090.02615.44
5.5.130.0030.03115.47
5.5.120.0080.02815.38
5.5.110.0060.03215.42
5.5.100.0060.03015.42
5.5.90.0050.03115.41
5.5.80.0070.02915.54
5.5.70.0050.02115.35
5.5.60.0040.02615.34
5.5.50.0090.03415.39
5.5.40.0100.02415.33
5.5.30.0100.02715.53
5.5.20.0060.03115.51
5.5.10.0080.01615.47
5.5.00.0060.03115.32
5.4.450.0040.03014.22
5.4.440.0060.03014.20
5.4.430.0090.02614.11
5.4.420.0040.03014.15
5.4.410.0070.02714.11
5.4.400.0050.02814.13
5.4.390.0070.02713.98
5.4.380.0080.02614.14
5.4.370.0070.02514.15
5.4.360.0050.03114.04
5.4.350.0030.02214.12
5.4.340.0050.03014.02
5.4.330.0090.00211.70
5.4.320.0050.03114.22
5.4.310.0040.03013.95
5.4.300.0070.02714.09
5.4.290.0080.02714.16
5.4.280.0100.02514.09
5.4.270.0120.02014.15
5.4.260.0040.01813.90
5.4.250.0070.01813.94
5.4.240.0100.02814.14
5.4.230.0060.03114.08
5.4.220.0040.02614.07
5.4.210.0070.02314.02
5.4.200.0060.02413.85
5.4.190.0070.02214.02
5.4.180.0070.01613.86
5.4.170.0050.02414.04
5.4.160.0070.02413.97
5.4.150.0060.01813.87
5.4.140.0070.02613.16
5.4.130.0080.02613.01
5.4.120.0070.01913.15
5.4.110.0060.02913.16
5.4.100.0080.02513.12
5.4.90.0060.01813.21
5.4.80.0030.02913.21
5.4.70.0070.01513.13
5.4.60.0070.02913.08
5.4.50.0100.02313.25
5.4.40.0050.02913.15
5.4.30.0070.02413.17
5.4.20.0110.02213.18
5.4.10.0060.02913.19
5.4.00.0060.02912.97
5.3.290.0050.02712.59
5.3.280.0060.02812.58
5.3.270.0090.02512.60
5.3.260.0060.01912.58
5.3.250.0040.02912.53
5.3.240.0080.02512.52
5.3.230.0020.03612.48
5.3.220.0030.03212.50
5.3.210.0050.02912.44
5.3.200.0070.02512.43
5.3.190.0060.02712.64
5.3.180.0090.02712.75
5.3.170.0070.02612.68
5.3.160.0080.02912.61
5.3.150.0050.02212.61
5.3.140.0070.02812.56
5.3.130.0080.02812.65
5.3.120.0080.02812.71
5.3.110.0070.02912.57
5.3.100.0070.02912.52
5.3.90.0090.02512.39
5.3.80.0080.02712.44
5.3.70.0080.02712.40
5.3.60.0070.02812.50
5.3.50.0100.01712.34
5.3.40.0070.02712.33
5.3.30.0110.01612.32
5.3.20.0090.02712.29
5.3.10.0020.03112.13
5.3.00.0060.02412.14
5.2.170.0020.03611.59
5.2.160.0060.03011.48
5.2.150.0080.02511.63
5.2.140.0010.03811.56
5.2.130.0090.02511.50
5.2.120.0080.02811.44
5.2.110.0020.03211.44
5.2.100.0050.03311.38
5.2.90.0060.02911.46
5.2.80.0100.02611.45
5.2.70.0060.03311.45
5.2.60.0060.03211.42
5.2.50.0070.02411.50
5.2.40.0050.03311.38
5.2.30.0090.02811.46
5.2.20.0030.03311.38
5.2.10.0070.02911.31
5.2.00.0060.02111.28
5.1.60.0030.03110.86
5.1.50.0030.03011.01
5.1.40.0030.02811.05
5.1.30.0110.02310.96
5.1.20.0090.02210.93
5.1.10.0020.03210.93
5.1.00.0070.02711.00
5.0.50.0050.02310.76
5.0.40.0050.02210.76
5.0.30.0030.03510.76
5.0.20.0050.02010.76
5.0.10.0050.02110.76
5.0.00.0050.03310.76
4.4.90.0000.02210.76
4.4.80.0040.01510.76
4.4.70.0050.01710.76
4.4.60.0030.01810.76
4.4.50.0020.01910.76
4.4.40.0030.02510.76
4.4.30.0030.01710.76
4.4.20.0040.01710.76
4.4.10.0050.01510.76
4.4.00.0000.02810.76
4.3.110.0030.01710.76
4.3.100.0040.01710.76
4.3.90.0020.01510.76
4.3.80.0060.02610.76
4.3.70.0040.01710.76
4.3.60.0000.01210.76
4.3.50.0040.01810.76
4.3.40.0050.02210.76
4.3.30.0000.01310.76
4.3.20.0010.02010.76
4.3.10.0000.02110.76
4.3.00.0000.01810.76

preferences:
43.88 ms | 401 KiB | 5 Q