3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create a blank image and add some text $im = imagecreatetruecolor(120, 20); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color); // Set the content type header - in this case image/jpeg header('Content-Type: image/jpeg'); // Output the image imagejpeg($im); // Free up memory 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.40.0170.00318.82
8.3.30.0070.00719.22
8.3.20.0040.00420.11
8.3.10.0040.00420.44
8.3.00.0000.00819.38
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.14
8.2.110.0070.00420.34
8.2.100.0060.00617.66
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0040.00417.78
8.2.50.0080.00018.07
8.2.40.0080.00018.16
8.2.30.0000.00819.31
8.2.20.0060.00317.69
8.2.10.0000.00819.71
8.2.00.0050.00317.70
8.1.270.0000.00823.97
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.97
8.1.230.0110.00019.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00417.10
8.1.190.0000.00917.23
8.1.180.0050.00218.10
8.1.170.0040.00418.48
8.1.160.0000.00821.95
8.1.150.0000.00718.84
8.1.140.0040.00317.20
8.1.130.0030.00317.68
8.1.120.0070.00017.34
8.1.110.0040.00417.29
8.1.100.0000.00717.39
8.1.90.0070.00017.25
8.1.80.0040.00417.32
8.1.70.0000.00717.25
8.1.60.0050.00317.38
8.1.50.0030.00517.47
8.1.40.0040.00417.34
8.1.30.0040.00417.55
8.1.20.0030.00617.61
8.1.10.0040.00417.54
8.1.00.0040.00417.40
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00318.34
8.0.270.0000.00717.16
8.0.260.0060.00017.16
8.0.250.0030.00316.86
8.0.240.0040.00416.98
8.0.230.0040.00317.00
8.0.220.0040.00416.83
8.0.210.0040.00416.94
8.0.200.0030.00316.79
8.0.190.0040.00416.97
8.0.180.0050.00316.94
8.0.170.0000.00716.81
8.0.160.0030.00416.95
8.0.150.0030.00316.85
8.0.140.0040.00416.89
8.0.130.0030.00313.33
8.0.120.0050.00316.77
8.0.110.0050.00216.76
8.0.100.0000.00716.84
8.0.90.0000.00716.84
8.0.80.0100.00616.84
8.0.70.0030.00516.77
8.0.60.0050.00316.91
8.0.50.0000.00716.85
8.0.30.0090.01217.17
8.0.20.0090.01017.40
8.0.10.0000.00816.97
8.0.00.0100.00716.78
7.4.330.0000.00415.00
7.4.320.0030.00316.40
7.4.300.0000.00616.46
7.4.290.0030.00316.53
7.4.280.0070.00016.48
7.4.270.0000.00716.52
7.4.260.0070.00016.36
7.4.250.0070.00016.55
7.4.240.0050.00216.45
7.4.230.0030.00316.26
7.4.220.0000.01716.40
7.4.210.0040.01116.58
7.4.200.0000.00616.35
7.4.160.0100.01016.60
7.4.150.0120.00617.40
7.4.140.0120.00817.86
7.4.130.0060.01016.45
7.4.120.0090.00716.59
7.4.110.0030.01516.66
7.4.100.0070.01016.48
7.4.90.0120.00616.67
7.4.80.0100.00919.39
7.4.70.0030.01316.59
7.4.60.0110.00516.52
7.4.50.0000.00516.33
7.4.40.0060.01516.31
7.4.30.0030.01316.34
7.4.00.0050.00814.82
7.3.330.0050.00013.02
7.3.320.0000.00513.00
7.3.310.0030.00316.31
7.3.300.0000.00716.12
7.3.290.0130.00016.27
7.3.280.0080.00816.24
7.3.270.0120.00917.40
7.3.260.0090.00916.32
7.3.250.0070.01516.40
7.3.240.0090.00616.42
7.3.230.0150.00616.39
7.3.210.0140.00316.38
7.3.200.0000.01719.39
7.3.190.0090.01216.27
7.3.180.0120.00316.57
7.3.170.0100.01016.51
7.3.160.0090.00616.31
7.3.120.0000.01414.85
7.3.110.0100.00514.76
7.3.100.0060.00914.76
7.3.90.0060.00914.73
7.3.80.0100.00314.64
7.3.70.0100.00514.71
7.3.60.0130.00314.78
7.3.50.0030.01214.88
7.3.40.0090.00614.65
7.3.30.0140.00014.61
7.3.20.0000.01514.57
7.3.10.0100.00615.48
7.3.00.0070.00915.34
7.2.330.0060.01116.57
7.2.320.0070.01316.71
7.2.310.0150.00316.61
7.2.300.0030.01416.25
7.2.290.0070.01016.19
7.2.250.0090.00614.99
7.2.240.0060.00914.91
7.2.230.0090.00614.76
7.2.220.0070.00815.13
7.2.210.0060.00914.77
7.2.200.0070.01214.62
7.2.190.0000.01514.95
7.2.180.0070.00714.82
7.2.170.0120.00314.78
7.2.160.0090.00614.63
7.2.150.0030.01314.70
7.2.140.0290.00614.81
7.2.130.0120.00515.49
7.2.120.0040.01115.60
7.2.110.0120.00715.62
7.2.100.0040.01115.57
7.2.90.0070.01315.61
7.2.80.0120.00615.60
7.2.70.0120.00715.61
7.2.60.0040.01016.00
7.2.50.0160.00515.38
7.2.40.0130.01115.67
7.2.30.0170.00515.66
7.2.20.0210.00515.53
7.2.10.0090.00715.68
7.2.00.0080.01115.76
7.1.330.0140.00013.98
7.1.320.0140.00013.95
7.1.310.0070.00713.78
7.1.300.0040.01113.64
7.1.290.0080.00513.77
7.1.280.0110.00313.61
7.1.270.0040.01113.73
7.1.260.0070.00713.85
7.1.250.0070.00714.55
7.1.240.0030.01013.61
7.1.230.0100.00313.78
7.1.220.0100.00713.57
7.1.210.0100.00713.86
7.1.200.0020.01014.83
7.1.190.0050.00813.80
7.1.180.0000.01313.88
7.1.170.0130.00313.75
7.1.160.0030.01313.70
7.1.150.0030.00913.66
7.1.140.0130.00013.93
7.1.130.0000.01413.71
7.1.120.0090.00413.82
7.1.110.0030.01113.78
7.1.100.0050.00715.76
7.1.90.0050.00913.72
7.1.80.0060.00913.75
7.1.70.0050.00615.36
7.1.60.0060.01015.50
7.1.50.0030.00915.31
7.1.40.0030.00915.19
7.1.30.0090.00615.29
7.1.20.0090.00515.28
7.1.10.0110.00315.28
7.1.00.0130.00415.23
7.0.330.0050.01013.32
7.0.320.0080.00813.60
7.0.310.0060.00813.43
7.0.300.0090.00413.39
7.0.290.0050.01113.36
7.0.280.0100.00313.33
7.0.270.0090.00613.39
7.0.260.0000.01413.22
7.0.250.0090.00613.52
7.0.240.0050.00913.48
7.0.230.0070.00813.69
7.0.220.0140.00313.50
7.0.210.0140.00313.49
7.0.200.0060.00515.13
7.0.190.0050.00715.02
7.0.180.0080.00515.15
7.0.170.0040.00915.15
7.0.160.0020.01015.09
7.0.150.0110.00215.17
7.0.140.0090.00415.13
7.0.130.0040.00715.12
7.0.120.0030.00915.03
7.0.110.0060.00615.14
7.0.100.0020.01014.99
7.0.90.0050.00615.13
7.0.80.0060.00415.15
7.0.70.0050.00515.02
7.0.60.0080.00415.15
7.0.50.0070.00415.15
7.0.40.0080.00515.14
7.0.30.0080.00915.15
7.0.20.0020.01015.05
7.0.10.0020.01015.22
7.0.00.0040.00715.10
5.6.400.0070.00814.00
5.6.390.0070.01014.23
5.6.380.0100.00313.96
5.6.370.0110.00414.23
5.6.360.0080.00814.33
5.6.350.0120.00314.01
5.6.340.0090.00614.43
5.6.330.0090.00614.07
5.6.320.0000.01413.80
5.6.310.0150.00314.30
5.6.300.0090.02817.45
5.6.290.0050.02617.38
5.6.280.0070.02217.49
5.6.270.0060.02517.62
5.6.260.0070.02117.52
5.6.250.0040.02717.41
5.6.240.0120.01917.45
5.6.230.0050.02317.45
5.6.220.0070.02317.58
5.6.210.0090.02317.54
5.6.200.0040.02617.38
5.6.190.0050.02717.53
5.6.180.0140.01717.33
5.6.170.0030.02917.50
5.6.160.0060.02317.57
5.6.150.0070.03117.31
5.6.140.0020.02617.56
5.6.130.0050.02617.49
5.6.120.0060.02417.47
5.6.110.0030.03117.50
5.6.100.0060.04017.50
5.6.90.0070.03517.33
5.6.80.0110.02417.09
5.6.70.0060.02217.11
5.6.60.0070.02217.29
5.6.50.0050.03017.19
5.6.40.0060.02117.00
5.6.30.0050.04217.04
5.6.20.0070.02317.02
5.6.10.0070.02617.07
5.6.00.0090.02117.12
5.5.380.0100.02015.78
5.5.370.0110.03115.85
5.5.360.0050.02715.72
5.5.350.0060.02715.81
5.5.340.0040.03315.90
5.5.330.0050.03816.18
5.5.320.0090.02515.90
5.5.310.0100.02115.89
5.5.300.0060.02916.09
5.5.290.0060.03015.75
5.5.280.0060.02616.04
5.5.270.0120.02615.96
5.5.260.0090.04615.81
5.5.250.0060.03115.84
5.5.240.0100.02115.71
5.5.230.0060.02715.42
5.5.220.0050.02415.62
5.5.210.0110.02515.53
5.5.200.0060.02315.56
5.5.190.0070.03115.54
5.5.180.0030.02815.75
5.5.170.0060.01313.97
5.5.160.0080.02615.71
5.5.150.0090.02815.55
5.5.140.0080.02515.62
5.5.130.0060.02815.66
5.5.120.0060.02415.45
5.5.110.0020.02715.71
5.5.100.0080.02515.54
5.5.90.0060.02415.36
5.5.80.0080.02315.34
5.5.70.0070.02315.70
5.5.60.0080.02715.60
5.5.50.0090.02015.45
5.5.40.0050.02515.74
5.5.30.0020.02815.57
5.5.20.0050.03415.45
5.5.10.0070.02515.39
5.5.00.0160.02015.54
5.4.450.0080.02215.97
5.4.440.0080.02015.94
5.4.430.0020.03416.08
5.4.420.0050.02315.95
5.4.410.0080.02315.86
5.4.400.0050.02315.84
5.4.390.0040.02315.88
5.4.380.0050.02315.90
5.4.370.0090.02215.92
5.4.360.0100.01815.76
5.4.350.0060.03215.84
5.4.340.0050.02515.78
5.4.330.0100.00412.70
5.4.320.0140.03115.78
5.4.310.0050.02615.87
5.4.300.0070.02515.92
5.4.290.0120.01715.85
5.4.280.0050.02215.92
5.4.270.0090.02715.87
5.4.260.0080.02115.76
5.4.250.0040.02615.92
5.4.240.0090.01815.93
5.4.230.0070.02615.87
5.4.220.0040.02415.76
5.4.210.0050.02215.92
5.4.200.0080.02015.93
5.4.190.0090.02015.75
5.4.180.0080.01915.80
5.4.170.0080.02015.83
5.4.160.0090.02215.92
5.4.150.0070.02215.87
5.4.140.0030.02614.71
5.4.130.0080.02114.71
5.4.120.0260.01114.71
5.4.110.0080.01714.71
5.4.100.0040.02314.71
5.4.90.0070.02014.71
5.4.80.0070.02114.71
5.4.70.0040.02414.71
5.4.60.0060.02314.71
5.4.50.0080.01814.71
5.4.40.0040.02214.71
5.4.30.0090.01814.71
5.4.20.0030.02614.71
5.4.10.0060.02014.71
5.4.00.0060.02114.71
5.3.290.0030.03616.72
5.3.280.0000.04016.72
5.3.270.0000.04116.72
5.3.260.0100.04116.72
5.3.250.0350.03216.72
5.3.240.0000.04116.72
5.3.230.0030.03616.72
5.3.220.0350.03516.72
5.3.210.0070.03616.72
5.3.200.0000.03816.72
5.3.190.0030.03716.72
5.3.180.0060.03516.72
5.3.170.0000.04816.72
5.3.160.0000.04216.72
5.3.150.0000.04016.72
5.3.140.0030.03516.72
5.3.130.0030.03916.72
5.3.120.0030.06216.72
5.3.110.0000.04116.72
5.3.100.0040.04216.72
5.3.90.0070.03016.72
5.3.80.0030.04116.72
5.3.70.0060.03516.72
5.3.60.0000.03616.72
5.3.50.0030.03616.72
5.3.40.0030.03316.72
5.3.30.0030.03616.72
5.3.20.0030.03216.72
5.3.10.0000.03716.72
5.3.00.0070.03016.72
5.2.170.0000.03016.72
5.2.160.0000.03316.72
5.2.150.0000.03416.72
5.2.140.0000.03316.72
5.2.130.0000.02916.72
5.2.120.0030.02616.72
5.2.110.0000.02916.72
5.2.100.0030.02616.72
5.2.90.0030.03116.72
5.2.80.0030.07316.72
5.2.70.0000.04616.72
5.2.60.0000.03016.72
5.2.50.0000.03116.72
5.2.40.0070.02216.72
5.2.30.0130.02516.72
5.2.20.0030.05116.72
5.2.10.0070.02416.72
5.2.00.0070.03316.72
5.1.60.0030.02516.72
5.1.50.0000.02916.72
5.1.40.0000.02916.72
5.1.30.0070.02416.72
5.1.20.0000.03516.72
5.1.10.0030.02516.72
5.1.00.0040.02516.72
5.0.50.0130.01716.72
5.0.40.0030.01816.72
5.0.30.0000.03316.72
5.0.20.0000.02016.72
5.0.10.0000.02116.72
5.0.00.0000.03116.72
4.4.90.0030.01416.72
4.4.80.0000.01916.72
4.4.70.0000.02116.72
4.4.60.0030.01316.72
4.4.50.0030.01516.72
4.4.40.0000.03216.72
4.4.30.0000.01816.72
4.4.20.0000.01816.72
4.4.10.0070.01616.72
4.4.00.0000.02516.72
4.3.110.0000.01816.72
4.3.100.0030.01416.72
4.3.90.0000.01516.72
4.3.80.0060.04516.72
4.3.70.0030.03716.72
4.3.60.0040.01816.72
4.3.50.0030.01316.72
4.3.40.0000.04016.72
4.3.30.0030.03316.72
4.3.20.0000.03916.72
4.3.10.0060.02216.72
4.3.00.0060.01616.72

preferences:
40.55 ms | 400 KiB | 5 Q