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.70.0040.01516.63
8.3.60.0120.00616.75
8.3.50.0070.01021.94
8.3.40.0070.00718.70
8.3.30.0140.00019.14
8.3.20.0070.00020.16
8.3.10.0080.00023.38
8.3.00.0040.00420.63
8.2.190.0060.01218.43
8.2.180.0140.00416.63
8.2.170.0040.01122.96
8.2.160.0030.01022.11
8.2.150.0100.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00022.16
8.2.110.0080.00021.97
8.2.100.0080.00517.72
8.2.90.0050.00319.16
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0030.00519.30
8.2.30.0040.00418.00
8.2.20.0050.00517.62
8.2.10.0000.00717.73
8.2.00.0030.00617.68
8.1.280.0110.01125.92
8.1.270.0060.00323.73
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0040.00719.22
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.54
8.1.180.0050.00318.10
8.1.170.0050.00318.46
8.1.160.0050.00222.05
8.1.150.0000.00718.62
8.1.140.0040.00417.30
8.1.130.0000.00717.68
8.1.120.0060.00317.43
8.1.110.0070.00017.29
8.1.100.0000.00817.30
8.1.90.0000.00717.38
8.1.80.0000.00717.47
8.1.70.0030.00317.33
8.1.60.0030.00617.53
8.1.50.0050.00317.49
8.1.40.0050.00217.48
8.1.30.0040.00417.54
8.1.20.0050.00217.59
8.1.10.0040.00417.35
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0050.00217.18
8.0.280.0070.00018.40
8.0.270.0070.00017.16
8.0.260.0030.00616.93
8.0.250.0030.00316.93
8.0.240.0000.00716.92
8.0.230.0030.00317.03
8.0.220.0000.00717.00
8.0.210.0040.00416.94
8.0.200.0060.00016.98
8.0.190.0040.00417.00
8.0.180.0040.00416.99
8.0.170.0000.00717.01
8.0.160.0000.00816.97
8.0.150.0050.00316.91
8.0.140.0030.00316.81
8.0.130.0030.00313.36
8.0.120.0040.00416.96
8.0.110.0080.00017.02
8.0.100.0000.00816.79
8.0.90.0040.00416.75
8.0.80.0070.01416.97
8.0.70.0340.01016.91
8.0.60.0120.01616.94
8.0.50.0090.01216.86
8.0.30.0060.01517.03
8.0.20.0150.00617.29
8.0.10.0030.01616.97
8.0.00.0080.01116.79
7.4.330.0000.00515.00
7.4.320.0000.00616.54
7.4.300.0030.00316.41
7.4.290.0070.00016.50
7.4.280.0000.00916.43
7.4.270.0000.00716.54
7.4.260.0030.00316.52
7.4.250.0070.00016.53
7.4.240.0030.00316.50
7.4.230.0030.00316.65
7.4.220.0030.01416.50
7.4.210.0080.00716.49
7.4.200.0090.00916.57
7.4.190.0100.01016.63
7.4.180.0100.01416.50
7.4.160.0090.00816.54
7.4.150.0050.01516.97
7.4.140.0080.01217.37
7.4.130.0100.00816.62
7.4.120.0100.00916.42
7.4.110.0090.00816.39
7.4.100.0120.01016.43
7.4.90.0130.01216.46
7.4.80.0070.01217.93
7.4.70.0140.00716.48
7.4.60.0140.00616.42
7.4.50.0150.00516.35
7.4.40.0100.01016.20
7.4.30.0060.01116.20
7.4.20.0080.01016.30
7.4.10.0080.01115.78
7.4.00.0100.00615.66
7.3.330.0030.00312.97
7.3.320.0050.00012.97
7.3.310.0040.00416.30
7.3.300.0030.00316.24
7.3.290.0030.01316.20
7.3.280.0110.00816.31
7.3.270.0090.00916.83
7.3.260.0110.00816.39
7.3.250.0120.00716.34
7.3.240.0120.00816.39
7.3.230.0160.00516.33
7.3.220.0060.01716.30
7.3.210.0090.01116.35
7.3.200.0090.01316.34
7.3.190.0070.01016.23
7.3.180.0120.00516.23
7.3.170.0050.01316.01
7.3.160.0090.00916.03
7.3.150.0100.00816.05
7.3.140.0120.00616.18
7.3.130.0060.01115.74
7.3.120.0120.00815.45
7.3.110.0100.00815.37
7.3.100.0090.00715.38
7.3.90.0090.00715.56
7.3.80.0070.01015.55
7.3.70.0100.00615.44
7.3.60.0060.01015.36
7.3.50.0070.00815.49
7.3.40.0060.00915.35
7.3.30.0050.00815.53
7.3.20.0060.01116.92
7.3.10.0080.00716.71
7.3.00.0090.00716.72
7.2.340.0240.01016.20
7.2.330.0120.01316.37
7.2.320.0150.01216.44
7.2.310.0190.00716.36
7.2.300.0160.01016.41
7.2.290.0130.01116.15
7.2.280.0160.01216.21
7.2.270.0190.00716.17
7.2.260.0140.00815.94
7.2.250.0130.01315.72
7.2.240.0120.00915.60
7.2.230.0140.00715.50
7.2.220.0130.00515.53
7.2.210.0110.00915.59
7.2.200.0100.01015.66
7.2.190.0140.00515.58
7.2.180.0140.00915.59
7.2.170.0110.01015.60
7.2.160.0090.01015.62
7.2.150.0070.01117.02
7.2.140.0090.00917.08
7.2.130.0100.00616.95
7.2.120.0070.01316.90
7.2.110.0100.00916.98
7.2.100.0070.01116.95
7.2.90.0070.01116.96
7.2.80.0100.00916.77
7.2.70.0110.01016.93
7.2.60.0100.00716.92
7.2.50.0070.01216.91
7.2.40.0140.00616.94
7.2.30.0100.00616.96
7.2.20.0070.01116.88
7.2.10.0080.00916.98
7.2.00.0070.01317.31
7.1.330.0100.00915.96
7.1.320.0110.00816.10
7.1.310.0100.01015.98
7.1.300.0350.00915.90
7.1.290.0090.00915.94
7.1.280.0140.00415.99
7.1.270.0120.00815.95
7.1.260.0110.00815.88
7.1.250.0100.00615.90
7.1.240.0120.00816.06
7.1.230.0110.00716.01
7.1.220.0110.00916.07
7.1.210.0130.00716.06
7.1.200.0800.00815.88
7.1.190.0110.00816.02
7.1.180.0130.01015.87
7.1.170.0100.01215.99
7.1.160.0140.00715.96
7.1.150.0150.00716.13
7.1.140.0170.00216.15
7.1.130.0160.00815.96
7.1.120.0150.00516.06
7.1.110.0100.01116.06
7.1.100.0120.00816.58
7.1.90.0160.00715.99
7.1.80.0120.01016.08
7.1.70.0110.00716.37
7.1.60.0090.01116.42
7.1.50.0120.00816.27
7.1.40.0070.00916.22
7.1.30.0100.00916.14
7.1.20.0060.01216.23
7.1.10.0110.00816.11
7.1.00.0090.00916.19
7.0.330.0110.00915.76
7.0.320.0730.00515.71
7.0.310.0110.00815.70
7.0.300.0130.00715.73
7.0.290.0110.00915.77
7.0.280.0140.00515.81
7.0.270.0140.00715.69
7.0.260.0140.00815.77
7.0.250.0120.00715.86
7.0.240.0110.00715.74
7.0.230.0150.00615.79
7.0.220.0110.00915.86
7.0.210.0100.00915.87
7.0.200.0050.01016.04
7.0.190.0060.01016.00
7.0.180.0130.00915.88
7.0.170.0110.00715.95
7.0.160.0080.00915.93
7.0.150.0100.00515.98
7.0.140.0120.00515.96
7.0.130.0100.00515.93
7.0.120.0090.00616.04
7.0.110.0040.01115.94
7.0.100.0350.00715.83
7.0.90.0080.00715.91
7.0.80.0100.00815.89
7.0.70.0090.00915.88
7.0.60.0080.00815.95
7.0.50.0090.00816.00
7.0.40.0090.00715.39
7.0.30.0080.00815.40
7.0.20.0110.00615.41
7.0.10.0100.00815.49
7.0.00.0080.00715.46
5.6.400.0100.01215.02
5.6.390.0150.00714.98
5.6.380.0130.00815.16
5.6.370.0120.01015.04
5.6.360.0130.00915.16
5.6.350.0140.00815.00
5.6.340.0110.01115.18
5.6.330.0120.00915.13
5.6.320.0130.00915.19
5.6.310.0080.01215.03
5.6.300.0120.01616.56
5.6.290.0110.01616.46
5.6.280.0110.01816.69
5.6.270.0080.02116.69
5.6.260.0120.01716.65
5.6.250.0110.02016.53
5.6.240.0130.01616.57
5.6.230.0140.02416.69
5.6.220.0140.01516.59
5.6.210.0130.02016.62
5.6.200.0110.01916.61
5.6.190.0090.01816.63
5.6.180.0080.01816.59
5.6.170.0110.01716.60
5.6.160.0130.01416.56
5.6.150.0120.01416.59
5.6.140.0050.02116.65
5.6.130.0060.02116.75
5.6.120.0090.01616.60
5.6.110.0110.01916.61
5.6.100.0120.01816.58
5.6.90.0130.01416.58
5.6.80.0110.01616.44
5.6.70.0110.01516.46
5.6.60.0100.01716.34
5.6.50.0090.01816.40
5.6.40.0100.01616.34
5.6.30.0100.01816.45
5.6.20.0080.01916.43
5.6.10.0110.01816.32
5.6.00.0110.01716.42
5.5.380.0160.02816.27
5.5.370.0200.02216.38
5.5.360.0160.02416.26
5.5.350.0110.02316.34
5.5.340.0140.02316.40
5.5.330.0100.02416.37
5.5.320.0210.02216.38
5.5.310.0130.02316.31
5.5.300.0130.02116.22
5.5.290.0100.02316.37
5.5.280.0060.02816.25
5.5.270.0100.02616.35
5.5.260.0180.01716.28
5.5.250.0200.01816.20
5.5.240.0110.02316.19
5.5.230.0090.02116.05
5.5.220.0090.02416.17
5.5.210.0100.02516.11
5.5.200.0160.01916.07
5.5.190.0110.02016.09
5.5.180.0110.02316.15
5.5.170.0140.01215.51
5.5.160.0110.02116.12
5.5.150.0170.01516.07
5.5.140.0140.02015.92
5.5.130.0110.02116.02
5.5.120.0080.02316.15
5.5.110.0100.02116.14
5.5.100.0110.01916.17
5.5.90.0180.01816.07
5.5.80.0130.01616.16
5.5.70.0080.02116.15
5.5.60.0100.02116.11
5.5.50.0140.01716.18
5.5.40.0130.01616.04
5.5.30.0060.02316.11
5.5.20.0130.01716.05
5.5.10.0040.02616.04
5.5.00.0110.01916.01
5.4.450.0120.01714.65
5.4.440.0110.01514.83
5.4.430.0080.01914.82
5.4.420.0070.01914.70
5.4.410.0120.01614.68
5.4.400.0100.01714.56
5.4.390.0100.01914.60
5.4.380.0130.01314.60
5.4.370.0100.01614.60
5.4.360.0080.01914.66
5.4.350.0090.02114.62
5.4.340.0130.01514.58
5.4.330.0130.00612.32
5.4.320.0100.01814.58
5.4.310.0080.02014.58
5.4.300.0110.01714.58
5.4.290.0080.01914.57
5.4.280.0070.02214.63
5.4.270.0090.01714.66
5.4.260.0120.02414.58
5.4.250.0100.01514.55
5.4.240.0070.01714.58
5.4.230.0110.01514.49
5.4.220.0140.01614.44
5.4.210.0100.01814.39
5.4.200.0080.01714.47
5.4.190.0080.01714.50
5.4.180.0060.02214.48
5.4.170.0070.01814.57
5.4.160.0100.01914.52
5.4.150.0090.01914.52
5.4.140.0130.01813.66
5.4.130.0080.01813.76
5.4.120.0070.02013.71
5.4.110.0100.01913.80
5.4.100.0080.01713.75
5.4.90.0090.01513.78
5.4.80.0080.02113.79
5.4.70.0090.01713.88
5.4.60.0050.02013.81
5.4.50.0080.01713.73
5.4.40.0120.01513.69
5.4.30.0040.02113.86
5.4.20.0090.01613.77
5.4.10.0090.01913.82
5.4.00.0110.01413.64
5.3.290.0130.01813.98
5.3.280.0110.01814.02
5.3.270.0110.01714.02
5.3.260.0090.01813.92
5.3.250.0100.02013.98
5.3.240.0190.01813.95
5.3.230.0110.01813.98
5.3.220.0120.01714.04
5.3.210.0140.01514.04
5.3.200.0130.01813.99
5.3.190.0090.02113.98
5.3.180.0160.01414.11
5.3.170.0110.01614.04
5.3.160.0110.01714.11
5.3.150.0160.01414.19
5.3.140.0110.01714.02
5.3.130.0160.01714.08
5.3.120.0130.01714.10
5.3.110.0120.02014.10
5.3.100.0070.02014.02
5.3.90.0130.01514.05
5.3.80.0100.02013.95
5.3.70.0090.01813.97
5.3.60.0170.01613.99
5.3.50.0090.02013.95
5.3.40.0100.01813.92
5.3.30.0080.01913.99
5.3.20.0100.02013.94
5.3.10.0130.01513.93
5.3.00.0130.01513.80

preferences:
37.12 ms | 401 KiB | 5 Q