3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: image/png"); $im = imagecreatetruecolor(512, 512); $true = imagecolorallocate($im, 255, 255, 255); foreach (range(0, 512) as $y) { foreach (range(0, 512) as $x) { if (mt_rand(0, 1)) { imagesetpixel($im, $x, $y, $true); } } } 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)
7.4.00.0110.00715.18
7.3.120.0110.00714.73
7.3.110.0040.01414.58
7.3.100.0070.01014.77
7.3.90.0000.01814.82
7.3.80.0090.00914.93
7.3.70.0030.00714.87
7.3.60.0030.01014.72
7.3.50.0030.01314.68
7.3.40.0070.01014.71
7.3.30.0100.00714.86
7.3.20.0040.00716.79
7.3.10.0060.00616.43
7.3.00.0040.01116.43
7.2.250.0100.01015.17
7.2.240.0070.01315.02
7.2.230.0130.00014.82
7.2.220.0000.01514.96
7.2.210.0100.00714.51
7.2.200.0060.00614.95
7.2.190.0000.01014.86
7.2.180.0080.00614.69
7.2.170.0090.00614.73
7.2.160.0040.01114.71
7.2.150.0030.00916.74
7.2.140.0060.00916.79
7.2.130.0040.00716.76
7.2.120.0030.01016.57
7.2.110.0040.00816.74
7.2.100.0030.01016.74
7.2.90.0110.00316.68
7.2.80.0060.00916.85
7.2.70.0030.01016.73
7.2.60.0100.00716.86
7.2.50.0040.01216.83
7.2.40.0030.01416.69
7.2.30.0030.01016.84
7.2.20.0060.01016.71
7.2.10.0060.00616.43
7.2.00.0040.00818.08
7.1.330.0070.01015.33
7.1.320.0160.00015.78
7.1.310.0030.00915.38
7.1.300.0050.00515.64
7.1.290.0040.01415.71
7.1.280.0070.01015.81
7.1.270.0000.00815.70
7.1.260.0030.00615.55
7.1.250.0100.00715.62
7.1.240.0100.00315.74
7.1.230.0000.00915.72
7.1.220.0040.00715.74
7.1.210.0060.00915.46
7.1.200.0040.00415.79
7.1.190.0070.00715.45
7.1.180.0090.00615.46
7.1.170.0070.00715.48
7.1.160.0030.01015.61
7.1.150.0030.01015.59
7.1.140.0090.00615.45
7.1.130.0030.01315.48
7.1.120.0040.00815.86
7.1.110.0070.00415.77
7.1.100.0060.00315.85
7.1.90.0000.01115.70
7.1.80.0090.00615.50
7.1.70.0050.00716.35
7.1.60.0050.01117.54
7.1.50.0070.01016.30
7.1.40.0000.01015.65
7.1.30.0070.00715.50
7.1.20.0000.01115.42
7.1.10.0100.00315.63
7.1.00.0030.03819.04
7.0.330.0000.01415.02
7.0.320.0070.00715.17
7.0.310.0070.00715.17
7.0.300.0090.00015.48
7.0.290.0090.00415.24
7.0.280.0070.00715.38
7.0.270.0080.00615.42
7.0.260.0040.00715.49
7.0.250.0070.01015.37
7.0.240.0080.00015.54
7.0.230.0040.01115.36
7.0.220.0110.00415.11
7.0.210.0000.01015.38
7.0.200.0180.00514.99
7.0.190.0070.00715.31
7.0.180.0030.00615.34
7.0.170.0060.00315.27
7.0.160.0000.01315.23
7.0.150.0060.00315.35
7.0.140.0020.04218.71
7.0.130.0030.00615.49
7.0.120.0060.04118.71
7.0.110.0060.00315.49
7.0.100.0030.02517.75
7.0.90.0070.04717.69
7.0.80.0060.04517.50
7.0.70.0110.04117.58
7.0.60.0220.04017.45
7.0.50.0170.04217.83
7.0.40.0070.04716.70
7.0.30.0060.04316.75
7.0.20.0110.04016.80
7.0.10.0090.04216.71
7.0.00.0070.04416.74
5.6.400.0090.00614.00
5.6.390.0070.01014.06
5.6.380.0030.01013.93
5.6.370.0080.00614.13
5.6.360.0000.01614.02
5.6.350.0040.01114.07
5.6.340.0060.00613.97
5.6.330.0110.00614.23
5.6.320.0030.01013.79
5.6.310.0060.00314.23
5.6.300.0060.00914.02
5.6.290.0030.01013.84
5.6.280.0070.03817.52
5.6.270.0090.00614.29
5.6.260.0040.00814.11
5.6.250.0060.04617.20
5.6.240.0080.02917.31
5.6.230.0100.03617.47
5.6.220.0090.04617.35
5.6.210.0040.04417.48
5.6.200.0070.04517.41
5.6.190.0090.03717.63
5.6.180.0190.03017.49
5.6.170.0030.02817.59
5.6.160.0070.03317.63
5.6.150.0050.04017.68
5.6.140.0080.04417.58
5.6.130.0070.05017.43
5.6.120.0030.04417.66
5.6.110.0080.04517.44
5.6.100.0100.04017.56
5.6.90.0100.04217.59
5.6.80.0100.02317.32
5.6.70.0100.04217.29
5.6.60.0030.04517.29
5.6.50.0070.03817.30
5.6.40.0090.03617.23
5.6.30.0080.03817.17
5.6.20.0100.03717.12
5.6.10.0110.04017.27
5.6.00.0050.02917.21
5.5.380.0030.04517.16
5.5.370.0020.04717.20
5.5.360.0100.04217.15
5.5.350.0090.04317.23
5.5.340.0050.04417.42
5.5.330.0070.03317.35
5.5.320.0080.04117.43
5.5.310.0050.04517.28
5.5.300.0100.03717.34
5.5.290.0060.04317.39
5.5.280.0080.03917.39
5.5.270.0130.03817.39
5.5.260.0080.04417.26
5.5.250.0120.04017.39
5.5.240.0090.04317.08
5.5.230.0000.04017.13
5.5.220.0110.03916.98
5.5.210.0030.03017.20
5.5.200.0080.03317.13
5.5.190.0080.05317.20
5.5.180.0020.03517.22
5.5.170.0090.00414.04
5.5.160.0060.04316.90
5.5.150.0070.04417.06
5.5.140.0060.04317.15
5.5.130.0100.04217.20
5.5.120.0070.04216.90
5.5.110.0050.04317.02
5.5.100.0080.04316.94
5.5.90.0050.03717.15
5.5.80.0050.04717.01
5.5.70.0100.03817.07
5.5.60.0060.04317.01
5.5.50.0030.04317.05
5.5.40.0030.02716.95
5.5.30.0130.03117.03
5.5.20.0050.04417.02
5.5.10.0060.04417.14
5.5.00.0020.04916.87
5.4.450.0070.03216.14
5.4.440.0030.03416.08
5.4.430.0050.02816.04
5.4.420.0070.03516.12
5.4.410.0030.03016.01
5.4.400.0020.04315.88
5.4.390.0100.03815.92
5.4.380.0080.03615.81
5.4.370.0050.04015.92
5.4.360.0030.04016.02
5.4.350.0030.03515.95
5.4.340.0030.04415.93
5.4.330.0070.00412.80
5.4.320.0050.03915.79
5.4.310.0040.03715.89
5.4.300.0080.03615.91
5.4.290.0060.04115.93
5.4.280.0060.02615.92
5.4.270.0060.04115.93
5.4.260.0070.03715.93
5.4.250.0050.03615.96
5.4.240.0120.03516.01
5.4.230.0080.03315.97
5.4.220.0030.03315.97
5.4.210.0050.04015.95
5.4.200.0070.03815.93
5.4.190.0100.03715.92
5.4.180.0030.04015.95
5.4.170.0070.04215.91
5.4.160.0010.04615.88
5.4.150.0050.04215.95
5.4.140.0090.03514.55
5.4.130.0040.03014.57
5.4.120.0070.04214.54
5.4.110.0060.03914.52
5.4.100.0090.02214.51
5.4.90.0020.03614.58
5.4.80.0090.03614.60
5.4.70.0070.04014.52
5.4.60.0100.03514.60
5.4.50.0020.03114.51
5.4.40.0070.03814.57
5.4.30.0070.03514.59
5.4.20.0070.03314.59
5.4.10.0110.02814.61
5.4.00.0050.03814.29
5.3.290.0050.04413.69
5.3.280.0100.04013.67
5.3.270.0030.04613.63
5.3.260.0100.04013.70
5.3.250.0020.04113.70
5.3.240.0080.04213.69
5.3.230.0060.03113.62
5.3.220.0100.03713.68
5.3.210.0020.04213.67
5.3.200.0050.03513.62
5.3.190.0070.03713.66
5.3.180.0020.04213.68
5.3.170.0100.03513.59
5.3.160.0030.04213.68
5.3.150.0080.03513.64
5.3.140.0050.04213.63
5.3.130.0100.02813.60
5.3.120.0030.04213.66
5.3.110.0050.02213.61
5.3.100.0030.04013.39
5.3.90.0050.03513.41
5.3.80.0050.03813.41
5.3.70.0100.03513.34
5.3.60.0030.02713.40
5.3.50.0060.03813.36
5.3.40.0030.04213.34
5.3.30.0050.04113.23
5.3.20.0030.02513.17
5.3.10.0030.04113.23
5.3.00.0060.04013.21

preferences:
37.17 ms | 401 KiB | 5 Q