3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); /** * generates a image with chars instead of pixels * * @param string $url Filepath or url * @param string $chars The chars which should replace the pixels * @param int $shrpns Sharpness (2 = every second pixel, 1 = every pixel ... ) * @param int $size * @param int $weight font-weight/size * @return sesource * @author Nicolas 'KeksNicoh' Heimann <www.salamipla.net> * @date 02nov08 */ function pixelfuck($url, $chars='ewk34543§G§$§$Tg34g4g', $shrpns=1, $size=4,$weight=2) { list($w, $h, $type) = getimagesize($url); $resource = imagecreatefromstring(file_get_contents($url)); $img = imagecreatetruecolor($w*$size,$h*$size); $cc = strlen($chars); for($y=0;$y <$h;$y+=$shrpns) for($x=0;$x <$w;$x+=$shrpns) imagestring($img,$weight,$x*$size,$y*$size, $chars{@++$p%$cc}, imagecolorat($resource, $x, $y)); return $img; } $url = 'http://upload.wikimedia.org/wikipedia/commons/b/be/Manga_Icon.png'; $text = 'I-dont-like-manga-...-Why-do-they-have-such-big-eyes? Strange-...-WHAT-WANT-YOU-DO?'; Header('Content-Type: image/png'); imagepng(pixelfuck($url, $text, 1, 6)); ?>

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.0120.00318.55
8.3.50.0090.01322.04
8.3.40.0150.00018.76
8.3.30.0070.00719.14
8.3.20.0000.00820.41
8.3.10.0030.00620.20
8.3.00.0000.00819.25
8.2.180.0140.00316.50
8.2.170.0110.00422.96
8.2.160.0100.00320.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.98
8.2.110.0040.00420.34
8.2.100.0000.01217.78
8.2.90.0040.00419.11
8.2.80.0060.00317.97
8.2.70.0090.00017.38
8.2.60.0080.00017.80
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0030.00719.31
8.2.20.0040.00417.48
8.2.10.0020.00518.04
8.2.00.0000.00817.45
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.70
8.1.230.0040.00723.93
8.1.220.0050.00217.74
8.1.210.0060.00318.77
8.1.200.0090.00017.22
8.1.190.0040.00417.10
8.1.180.0060.00319.05
8.1.170.0030.00518.41
8.1.160.0050.00222.00
8.1.150.0000.00718.64
8.1.140.0040.00417.29
8.1.130.0070.00017.80
8.1.120.0000.00717.33
8.1.110.0000.00817.33
8.1.100.0040.00417.26
8.1.90.0030.00517.38
8.1.80.0040.00417.24
8.1.70.0030.00317.23
8.1.60.0060.00317.50
8.1.50.0000.00917.39
8.1.40.0000.00717.31
8.1.30.0030.00617.55
8.1.20.0060.00317.43
8.1.10.0030.00517.27
8.1.00.0000.00817.24
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.33
8.0.270.0040.00416.71
8.0.260.0000.00817.19
8.0.250.0070.00016.93
8.0.240.0030.00316.80
8.0.230.0030.00316.79
8.0.220.0030.00316.84
8.0.210.0040.00416.88
8.0.200.0050.00316.93
8.0.190.0090.00016.80
8.0.180.0080.00016.75
8.0.170.0040.00416.82
8.0.160.0050.00316.79
8.0.150.0000.00816.70
8.0.140.0040.00416.78
8.0.130.0030.00313.22
8.0.120.0040.00416.71
8.0.110.0000.00716.86
8.0.100.0070.00016.63
8.0.90.0050.00316.66
8.0.80.0140.00716.74
8.0.70.0040.00416.65
8.0.60.0040.00416.95
8.0.50.0000.00816.65
8.0.30.0100.00817.06
8.0.20.0120.01417.40
8.0.10.0030.00617.02
8.0.00.0050.01516.69
7.4.330.0030.00315.00
7.4.320.0000.00616.56
7.4.300.0000.00616.37
7.4.290.0030.00316.62
7.4.280.0080.00016.62
7.4.270.0030.00316.61
7.4.260.0000.00916.66
7.4.250.0040.00416.48
7.4.240.0040.00316.60
7.4.230.0000.00716.52
7.4.220.0150.00616.61
7.4.210.0030.01016.72
7.4.200.0000.00716.52
7.4.160.0090.00716.50
7.4.150.0090.00917.40
7.4.140.0090.01017.86
7.4.130.0130.00716.48
7.4.120.0110.00616.51
7.4.110.0090.00916.52
7.4.100.0150.00616.46
7.4.90.0090.00916.61
7.4.80.0120.00919.37
7.4.70.0040.01216.43
7.4.60.0120.01116.52
7.4.50.0000.00716.26
7.4.40.0080.00816.60
7.4.30.0120.00616.58
7.4.10.0110.00716.61
7.4.00.0090.00915.58
7.3.330.0050.00013.19
7.3.320.0000.00613.32
7.3.310.0030.00316.35
7.3.300.0040.00416.33
7.3.290.0060.01316.26
7.3.280.0110.00516.32
7.3.270.0150.00917.40
7.3.260.0120.00616.62
7.3.250.0100.01016.51
7.3.240.0100.00716.30
7.3.230.0130.01316.39
7.3.210.0150.00616.48
7.3.200.0080.00819.39
7.3.190.0070.01116.39
7.3.180.0040.01116.28
7.3.170.0130.01016.37
7.3.160.0130.01016.46
7.3.130.0060.01316.23
7.3.120.0060.01215.33
7.3.110.0040.01215.11
7.3.100.0020.01315.43
7.3.90.0110.00315.40
7.3.80.0080.00515.28
7.3.70.0060.00915.19
7.3.60.0070.00415.30
7.3.50.0090.00515.22
7.3.40.0070.00715.33
7.3.30.0070.00515.24
7.3.20.0070.00617.13
7.3.10.0050.00816.86
7.3.00.0050.00716.77
7.2.330.0090.00816.66
7.2.320.0030.01416.31
7.2.310.0090.00916.35
7.2.300.0120.00416.53
7.2.290.0030.01416.64
7.2.260.0070.01416.57
7.2.250.0170.00316.62
7.2.240.0040.01315.35
7.2.230.0040.01015.40
7.2.220.0010.01115.42
7.2.210.0040.00715.23
7.2.200.0070.00815.27
7.2.190.0070.00415.36
7.2.180.0080.00515.42
7.2.170.0060.01115.32
7.2.160.0040.00915.27
7.2.150.0060.01017.22
7.2.140.0060.01017.19
7.2.130.0050.00817.01
7.2.120.0080.00617.05
7.2.110.0060.00717.00
7.2.100.0060.00716.95
7.2.90.0080.00717.03
7.2.80.0070.00717.12
7.2.70.0050.01017.07
7.2.60.0100.00916.92
7.2.50.0060.00816.96
7.2.40.0090.00716.95
7.2.30.0070.00717.09
7.2.20.0060.00817.13
7.2.10.0070.00817.05
7.2.00.0090.00717.05
7.1.330.0050.00716.23
7.1.320.0050.00716.16
7.1.310.0030.00916.22
7.1.300.0060.01016.17
7.1.290.0070.00616.15
7.1.280.0070.00516.19
7.1.270.0040.00716.13
7.1.260.0050.01016.16
7.1.250.0040.01115.93
7.1.240.0050.00716.35
7.1.230.0040.00616.35
7.1.220.0030.00616.54
7.1.210.0030.01016.32
7.1.200.0040.00816.07
7.1.190.0050.00916.44
7.1.180.0040.00916.48
7.1.170.0050.00516.43
7.1.160.0050.01016.47
7.1.150.0070.00616.40
7.1.140.0080.00916.24
7.1.130.0020.01316.53
7.1.120.0070.00516.30
7.1.110.0020.01116.38
7.1.100.0040.01117.11
7.1.90.0050.00916.46
7.1.80.0070.00716.40
7.1.70.0010.01016.57
7.1.60.0090.00917.34
7.1.50.0040.00715.72
7.1.40.0100.00316.51
7.1.30.0030.01316.47
7.1.20.0070.00516.42
7.1.10.0080.00316.36
7.1.00.0060.02818.42
7.0.330.0030.00916.07
7.0.320.0010.00715.96
7.0.310.0050.00616.05
7.0.300.0040.00916.18
7.0.290.0060.00816.01
7.0.280.0040.00715.98
7.0.270.0030.00916.09
7.0.260.0020.00816.02
7.0.250.0020.00816.22
7.0.240.0020.00815.94
7.0.230.0060.00616.05
7.0.220.0100.00316.10
7.0.210.0070.00216.19
7.0.200.0080.00616.23
7.0.190.0030.01216.08
7.0.180.0050.00616.15
7.0.170.0090.00616.12
7.0.160.0050.00515.93
7.0.150.0070.00416.07
7.0.140.0050.02818.02
7.0.130.0070.00616.13
7.0.120.0060.00616.16
7.0.110.0070.00416.13
7.0.100.0100.00416.07
7.0.90.0030.00816.16
7.0.80.0050.00715.88
7.0.70.0030.00816.01
7.0.60.0070.03217.44
7.0.50.0090.02016.58
7.0.40.0040.02316.08
7.0.30.0260.02616.10
7.0.20.0080.02816.14
7.0.10.0100.01616.09
7.0.00.0030.01916.14
5.6.400.0030.01315.80
5.6.390.0100.00615.76
5.6.380.0060.00914.92
5.6.370.0060.00815.09
5.6.360.0040.01214.89
5.6.350.0060.00815.03
5.6.340.0090.00514.64
5.6.330.0040.01015.18
5.6.320.0020.00814.96
5.6.310.0030.01214.90
5.6.300.0020.00914.83
5.6.290.0070.00715.03
5.6.280.0060.02917.04
5.6.270.0060.00814.82
5.6.260.0020.01114.83
5.6.250.0050.00814.95
5.6.240.0050.00814.82
5.6.230.0050.00614.95
5.6.220.0040.01214.77
5.6.210.0100.03116.79
5.6.200.0030.02815.90
5.6.190.0080.01916.78
5.6.180.0210.02816.87
5.6.170.0140.01916.79
5.6.160.0070.02616.67
5.6.150.0080.03116.00
5.6.140.0070.02515.97
5.6.130.0060.03115.93
5.6.120.0060.02216.92
5.6.110.0080.01716.90
5.6.100.0060.02116.81
5.6.90.0050.03116.84
5.6.80.0110.01816.67
5.6.70.0030.01114.86
5.6.60.0120.00414.84
5.6.50.0060.00914.70
5.6.40.0140.00314.80
5.6.30.0090.00514.83
5.6.20.0100.00714.74
5.6.10.0110.00614.93
5.6.00.0100.00514.95
5.5.380.0020.00913.14
5.5.370.0020.00913.24
5.5.360.0020.01013.37
5.5.350.0060.03115.73
5.5.340.0060.02914.85
5.5.330.0080.02015.62
5.5.320.0120.02315.51
5.5.310.0090.03415.58
5.5.300.0050.03214.95
5.5.290.0060.01714.76
5.5.280.0090.01415.84
5.5.270.0070.03115.76
5.5.260.0040.03115.83
5.5.250.0040.02015.67
5.5.240.0080.01915.52
5.5.230.0070.00513.08
5.5.220.0030.00613.18
5.5.210.0050.00313.18
5.5.200.0050.00813.21
5.5.190.0030.01213.32
5.5.180.0080.00513.14
5.5.170.0070.00413.33
5.5.160.0020.01013.33
5.5.150.0070.00613.12
5.5.140.0080.00813.21
5.5.130.0060.00613.29
5.5.120.0030.01013.19
5.5.110.0070.00613.22
5.5.100.0070.00713.08
5.5.90.0070.00913.34
5.5.80.0040.00913.19
5.5.70.0060.01113.05
5.5.60.0050.00913.20
5.5.50.0050.00913.16
5.5.40.0100.00313.26
5.5.30.0060.00613.39
5.5.20.0090.00513.16
5.5.10.0080.00513.14
5.5.00.0080.00313.00
5.4.450.0090.01714.50
5.4.440.0120.02514.67
5.4.430.0110.02014.49
5.4.420.0270.00314.58
5.4.410.0240.00414.52
5.4.400.0240.00414.47
5.4.390.0260.00314.43
5.4.380.0320.00414.50
5.4.370.0250.00214.43
5.4.360.0250.00314.52
5.4.350.0310.00314.47
5.4.340.0260.00314.45
5.4.330.0080.00312.13
5.4.320.0050.01612.26
5.4.310.0070.01712.34
5.4.300.0080.01412.35
5.4.290.0070.01612.33
5.4.280.0050.01912.12
5.4.270.0050.01712.22
5.4.260.0060.01612.18
5.4.250.0050.01712.32
5.4.240.0050.01712.18
5.4.230.0030.01712.26
5.4.220.0070.01612.21
5.4.210.0030.01912.24
5.4.200.0060.01612.11
5.4.190.0060.01712.32
5.4.180.0030.01712.16
5.4.170.0050.01612.22
5.4.160.0050.01612.20
5.4.150.0060.01612.10
5.4.140.0030.01812.22
5.4.130.0040.01712.13
5.4.120.0060.01712.10
5.4.110.0070.01512.02
5.4.100.0060.01512.07
5.4.90.0070.01512.14
5.4.80.0050.01712.12
5.4.70.0050.01611.99
5.4.60.0060.01612.16
5.4.50.0030.01612.06
5.4.40.0050.01812.04
5.4.30.0040.01712.08
5.4.20.0060.01812.16
5.4.10.0050.01812.14
5.4.00.0070.01811.92
5.3.290.0130.01911.69
5.3.280.0060.02111.55
5.3.270.0060.02311.64
5.3.260.0040.02511.60
5.3.250.0030.02211.50
5.3.240.0070.01911.43
5.3.230.0070.02011.60
5.3.220.0060.01911.55
5.3.210.0080.01911.59
5.3.200.0020.02411.47
5.3.190.0060.01911.62
5.3.180.0020.02411.69
5.3.170.0040.02211.68
5.3.160.0060.02011.65
5.3.150.0080.02011.59
5.3.140.0040.02111.55
5.3.130.0060.02711.66
5.3.120.0060.02111.70
5.3.110.0070.01911.63
5.3.100.0030.02511.33
5.3.90.0060.02111.38
5.3.80.0050.02011.25
5.3.70.0040.02211.20
5.3.60.0030.02311.29
5.3.50.0020.02111.29
5.3.40.0050.02111.27
5.3.30.0050.01911.24
5.3.20.0050.02411.00
5.3.10.0070.01811.09
5.3.00.0030.02110.99
5.2.170.0050.0189.32
5.2.160.0060.0149.41
5.2.150.0020.0189.39
5.2.140.0020.0209.25
5.2.130.0040.0189.31
5.2.120.0020.0169.33
5.2.110.0030.0199.30
5.2.100.0020.0259.31
5.2.90.0060.0159.23
5.2.80.0040.0199.23
5.2.70.0050.0169.28
5.2.60.0020.0199.21
5.2.50.0030.0219.25
5.2.40.0070.0239.18
5.2.30.0060.0219.23
5.2.20.0070.0179.18
5.2.10.0030.0199.12
5.2.00.0040.0189.05
5.1.60.0040.0148.69
5.1.50.0030.0158.69
5.1.40.0030.0158.68
5.1.30.0060.0138.85
5.1.20.0020.0158.87
5.1.10.0050.0138.73
5.1.00.0020.0168.73
5.0.50.0040.0117.97
5.0.40.0020.0157.90
5.0.30.0020.0187.80
5.0.20.0030.0127.79
5.0.10.0060.0097.78
5.0.00.0040.0167.77
4.4.90.0030.0097.03
4.4.80.0020.0107.01
4.4.70.0010.0117.02
4.4.60.0020.0097.02
4.4.50.0000.0117.02
4.4.40.0020.0156.99
4.4.30.0050.0077.02
4.4.20.0030.0097.06
4.4.10.0000.0127.06
4.4.00.0010.0147.02
4.3.110.0030.0106.97
4.3.100.0030.0086.97
4.3.90.0010.0126.95
4.3.80.0030.0146.93
4.3.70.0050.0106.95
4.3.60.0010.0136.95
4.3.50.0060.0096.95
4.3.40.0040.0156.91
4.3.30.0030.0106.30
4.3.20.0020.0106.29
4.3.10.0010.0116.26
4.3.00.0000.0226.88

preferences:
46.7 ms | 401 KiB | 5 Q