3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Set the Content Type header('Content-type: image/jpeg'); // Create Image From Existing File $jpg_image = imagecreatefromjpeg('http://pookey.co.uk/gallery2/d/1166-4/Sunset.jpg'); // Allocate A Color For The Text $white = imagecolorallocate($jpg_image, 255, 255, 255); // Set Path to Font File $font_path = 'font.TTF'; // Set Text to Be Printed On Image $text = "This is a sunset!"; // Print Text On Image imagettftext($jpg_image, 25, 0, 75, 300, $white, $font_path, $text); // Send Image to Browser imagejpeg($jpg_image); // Clear Memory imagedestroy($jpg_image); ?>

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.0100.00718.56
8.3.50.0080.01221.02
8.3.40.0090.00618.79
8.3.30.0070.00720.34
8.3.20.0040.00420.34
8.3.10.0040.00421.02
8.3.00.0050.00322.43
8.2.180.0160.00318.11
8.2.170.0100.00722.96
8.2.160.0070.01120.57
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.87
8.2.110.0070.00422.20
8.2.100.0110.00017.84
8.2.90.0040.00417.84
8.2.80.0040.00419.03
8.2.70.0030.00517.63
8.2.60.0060.00317.91
8.2.50.0000.00818.07
8.2.40.0050.00318.17
8.2.30.0000.00719.32
8.2.20.0040.00417.55
8.2.10.0040.00417.58
8.2.00.0040.00417.61
8.1.280.0110.00725.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0080.00828.09
8.1.240.0060.00322.65
8.1.230.0110.00020.80
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00418.77
8.1.150.0060.00318.48
8.1.140.0080.00017.29
8.1.130.0070.00017.69
8.1.120.0040.00717.41
8.1.110.0040.00417.31
8.1.100.0030.00517.27
8.1.90.0000.00717.34
8.1.80.0000.00717.31
8.1.70.0030.00317.27
8.1.60.0040.00417.40
8.1.50.0050.00217.37
8.1.40.0080.00017.48
8.1.30.0000.00817.57
8.1.20.0000.00817.61
8.1.10.0040.00417.52
8.1.00.0020.00517.46
8.0.300.0040.00420.07
8.0.290.0040.00417.05
8.0.280.0040.00318.30
8.0.270.0070.00016.88
8.0.260.0030.00516.83
8.0.250.0030.00316.90
8.0.240.0050.00516.95
8.0.230.0030.00317.01
8.0.220.0030.00316.91
8.0.210.0000.00716.78
8.0.200.0030.00316.85
8.0.190.0040.00416.87
8.0.180.0000.00716.82
8.0.170.0040.00416.85
8.0.160.0000.00716.91
8.0.150.0070.00016.81
8.0.140.0000.00716.82
8.0.130.0050.00013.32
8.0.120.0080.00016.90
8.0.110.0000.00716.79
8.0.100.0030.00316.89
8.0.90.0000.00716.87
8.0.80.0090.00616.86
8.0.70.0040.00416.79
8.0.60.0040.00416.80
8.0.50.0030.00516.84
8.0.30.0090.01617.13
8.0.20.0210.01317.40
8.0.10.0040.00416.79
8.0.00.0090.01016.56
7.4.330.0050.00016.67
7.4.320.0050.00316.53
7.4.300.0060.00016.59
7.4.290.0040.00416.42
7.4.280.0000.00816.43
7.4.270.0040.00416.46
7.4.260.0000.00713.13
7.4.250.0000.00816.37
7.4.240.0030.00416.43
7.4.230.0080.00016.65
7.4.220.0120.00616.57
7.4.210.0090.00616.53
7.4.200.0040.00416.31
7.4.190.0030.00316.40
7.4.160.0120.00416.61
7.4.150.0150.00317.40
7.4.140.0090.00717.86
7.4.130.0110.00916.36
7.4.120.0070.01016.35
7.4.110.0040.01516.41
7.4.100.0090.00916.59
7.4.90.0090.00916.46
7.4.80.0060.01519.39
7.4.70.0050.01316.57
7.4.60.0030.01416.42
7.4.50.0040.00416.10
7.4.40.0000.01522.77
7.4.30.0100.00716.64
7.4.00.0060.01114.73
7.3.330.0000.00513.14
7.3.320.0020.00213.20
7.3.310.0000.00716.12
7.3.300.0060.00016.24
7.3.290.0070.00716.30
7.3.280.0080.00716.32
7.3.270.0090.00817.40
7.3.260.0120.00818.24
7.3.250.0070.01016.46
7.3.240.0080.01216.31
7.3.230.0060.01516.39
7.3.210.0090.00916.49
7.3.200.0070.01019.39
7.3.190.0090.01116.29
7.3.180.0080.01116.43
7.3.170.0120.00616.39
7.3.160.0110.01516.37
7.3.120.0080.01014.81
7.3.110.0060.01314.92
7.3.100.0080.00814.84
7.3.90.0090.00614.84
7.3.80.0050.00914.77
7.3.70.0050.00614.79
7.3.60.0020.01414.81
7.3.50.0080.00614.84
7.3.40.0030.01014.74
7.3.30.0050.00714.67
7.3.20.0060.00616.70
7.3.10.0060.00816.64
7.3.00.0030.00916.60
7.2.330.0030.01516.48
7.2.320.0130.00716.61
7.2.310.0120.01116.54
7.2.300.0080.00816.47
7.2.290.0150.00416.68
7.2.250.0060.01114.81
7.2.240.0070.00915.04
7.2.230.0060.00914.84
7.2.220.0060.00814.81
7.2.210.0110.00314.87
7.2.200.0070.00614.87
7.2.190.0000.01614.90
7.2.180.0060.00814.67
7.2.170.0070.00514.91
7.2.60.0060.00916.80
7.2.00.0110.00719.25
7.1.330.0050.00915.67
7.1.320.0030.01015.80
7.1.310.0050.01015.65
7.1.300.0030.00915.51
7.1.290.0070.00515.64
7.1.280.0060.00715.50
7.1.270.0060.00815.50
7.1.260.0030.00815.64
7.1.200.0060.00015.85
7.1.100.0090.00318.05
7.1.70.0040.00417.05
7.1.60.0100.01619.17
7.1.50.0090.01616.86
7.1.00.0030.04722.28
7.0.200.0000.00716.34
7.0.140.0070.07022.08
7.0.80.0030.04019.89
7.0.70.0070.07319.92
7.0.60.0070.08719.96
7.0.50.0470.07320.26
7.0.40.0100.04720.18
7.0.30.0030.08020.11
7.0.20.0070.10320.11
7.0.10.0070.08720.14
7.0.00.0070.05019.99
5.6.280.0000.07321.14
5.6.230.0070.07720.63
5.6.220.0170.07320.66
5.6.210.0170.07320.44
5.6.200.0070.04721.04
5.6.190.0030.05321.02
5.6.180.0100.09021.03
5.6.170.0030.08321.13
5.6.160.0100.06021.01
5.6.150.0130.03721.10
5.6.140.0070.09721.09
5.6.130.0200.08721.07
5.6.120.0100.08021.00
5.6.110.0070.07720.96
5.6.100.0130.06320.93
5.6.90.0070.05021.14
5.6.80.0000.07020.52
5.6.70.0030.07020.48
5.6.60.0170.07020.32
5.6.50.0030.04320.46
5.6.40.0130.06020.29
5.6.30.0070.05320.38
5.6.20.0130.04720.39
5.6.10.0070.07020.36
5.6.00.0100.08020.51
5.5.370.0030.07320.46
5.5.360.0030.09720.53
5.5.350.0130.07720.33
5.5.340.0000.08320.64
5.5.330.0030.05720.93
5.5.320.0030.08320.76
5.5.310.0070.08020.75
5.5.300.0070.05020.71
5.5.290.0100.10020.91
5.5.280.0070.04020.82
5.5.270.0100.08320.72
5.5.260.0070.08720.79
5.5.250.0000.05020.63
5.5.240.0070.08020.30
5.5.230.0070.06720.13
5.5.220.0130.06320.20
5.5.210.0130.05020.25
5.5.200.0070.07720.08
5.5.190.0000.07020.14
5.5.180.0130.07320.08
5.5.160.0070.07720.23
5.5.150.0130.04320.10
5.5.140.0070.06020.07
5.5.130.0000.07720.20
5.5.120.0070.08020.22
5.5.110.0130.07020.21
5.5.100.0200.06320.05
5.5.90.0130.05720.14
5.5.80.0030.07020.11
5.5.70.0030.07320.03
5.5.60.0070.08020.05
5.5.50.0070.05720.05
5.5.40.0100.05320.05
5.5.30.0170.06719.95
5.5.20.0030.05320.02
5.5.10.0070.06320.11
5.5.00.0330.05719.95
5.4.450.0130.07319.44
5.4.440.0070.06019.23
5.4.430.0130.08019.36
5.4.420.0070.08019.47
5.4.410.0100.06019.00
5.4.400.0030.03718.98
5.4.390.0000.07719.10
5.4.380.0030.07719.06
5.4.370.0070.06319.04
5.4.360.0130.07018.94
5.4.350.0070.04018.90
5.4.340.0070.06319.13
5.4.320.0030.08018.96
5.4.310.0170.04018.96
5.4.300.0070.06019.12
5.4.290.0130.04019.02
5.4.280.0030.08019.07
5.4.270.0070.07718.78
5.4.260.0030.05018.94
5.4.250.0130.06718.95
5.4.240.0070.04319.11
5.4.230.0030.04318.92
5.4.220.0030.04318.95
5.4.210.0070.07019.05
5.4.200.0200.06318.81
5.4.190.0030.04719.05
5.4.180.0100.05719.14
5.4.170.0100.05718.80
5.4.160.0100.07318.79
5.4.150.0100.08719.07
5.4.140.0100.03716.31
5.4.130.0100.04716.14
5.4.120.0130.03016.28
5.4.110.0070.07316.45
5.4.100.0030.04316.32
5.4.90.0000.07716.31
5.4.80.0070.06716.19
5.4.70.0030.07316.25
5.4.60.0130.06716.28
5.4.50.0100.04716.38
5.4.40.0000.04716.29
5.4.30.0070.04716.19
5.4.20.0030.04316.26
5.4.10.0130.06716.23
5.4.00.0000.05715.71
5.3.290.0070.08014.50
5.3.280.0130.05014.55
5.3.270.0070.08014.45
5.3.260.0070.07714.60
5.3.250.0030.08014.60
5.3.240.0100.07314.53
5.3.230.0030.04314.61
5.3.220.0100.07014.55
5.3.210.0030.04714.42
5.3.200.0170.03314.42
5.3.190.0070.04314.57
5.3.180.0070.07014.50
5.3.170.0170.06714.52
5.3.160.0070.05714.38
5.3.150.0030.07714.51
5.3.140.0130.03014.41
5.3.130.0070.08014.54
5.3.120.0070.06014.40
5.3.110.0070.07314.51
5.3.100.0000.07713.95
5.3.90.0070.07013.84
5.3.80.0070.04714.01
5.3.70.0100.07314.02
5.3.60.0100.04013.95
5.3.50.0130.05313.93
5.3.40.0100.03313.88
5.3.30.0070.03313.66
5.3.20.0000.05313.67
5.3.10.0070.08713.64
5.3.00.0070.04313.64
5.2.170.0070.05011.66
5.2.160.0100.03011.66
5.2.150.0030.03011.66
5.2.140.0100.05711.66
5.2.130.0100.05311.66
5.2.120.0000.07011.66
5.2.110.0070.03011.66
5.2.100.0030.03711.66
5.2.90.0000.07011.66
5.2.80.0100.05711.66
5.2.70.0000.03711.66
5.2.60.0030.06311.66
5.2.50.0030.05711.66
5.2.40.0100.05711.66
5.2.30.0070.06011.66
5.2.20.0000.03711.66
5.2.10.0030.05311.66
5.2.00.0070.05011.66
5.1.60.0100.05011.66
5.1.50.0130.03711.66
5.1.40.0070.02311.66
5.1.30.0030.02711.66
5.1.20.0030.02711.66
5.1.10.0000.04711.66
5.1.00.0070.02311.66
5.0.50.0030.03311.66
5.0.40.0030.04311.66
5.0.30.0000.06311.66
5.0.20.0030.02311.66
5.0.10.0070.02711.66
5.0.00.0030.06311.66
4.4.90.0030.03711.66
4.4.80.0030.03711.66
4.4.70.0030.03711.66
4.4.60.0030.03311.66
4.4.50.0030.01711.66
4.4.40.0000.03711.66
4.4.30.0070.01711.66
4.4.20.0000.03011.66
4.4.10.0000.03011.66
4.4.00.0100.04311.66
4.3.110.0030.01311.66
4.3.100.0070.01311.66
4.3.90.0000.02311.66
4.3.80.0000.04011.66
4.3.70.0030.03311.66
4.3.60.0070.01011.66
4.3.50.0030.01711.66
4.3.40.0000.03711.66
4.3.30.0030.02711.66
4.3.20.0030.02011.66
4.3.10.0000.03011.66
4.3.00.0030.03011.66

preferences:
46.16 ms | 401 KiB | 5 Q