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);

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.1.70.0060.00317.22
7.1.60.0060.01619.32
7.1.50.0130.01016.86
7.1.00.0030.07722.57
7.0.200.0060.00316.38
7.0.140.0000.07722.01
7.0.100.0170.07319.96
7.0.90.0230.04019.95
7.0.80.0070.05320.03
7.0.70.0030.08319.96
7.0.60.0100.07719.96
7.0.50.0200.04320.35
7.0.40.0130.06020.14
7.0.30.0130.08020.13
7.0.20.0070.08720.13
7.0.10.0070.05020.09
7.0.00.0100.05720.10
5.6.280.0100.06721.07
5.6.250.0170.07720.59
5.6.240.0070.05020.73
5.6.230.0100.08320.63
5.6.220.0200.06320.68
5.6.210.0300.04720.75
5.6.200.0100.04321.17
5.6.190.0100.06021.00
5.6.180.0100.05021.07
5.6.170.0200.06721.03
5.6.160.0100.04021.05
5.6.150.0070.06721.04
5.6.140.0000.06321.03
5.6.130.0030.09021.10
5.6.120.0030.08321.02
5.6.110.0100.07721.07
5.6.100.0100.07721.00
5.6.90.0200.07721.14
5.6.80.0030.08320.49
5.6.70.0070.07720.32
5.6.60.0070.04720.42
5.6.50.0130.05020.41
5.6.40.0030.08320.52
5.6.30.0070.08320.49
5.6.20.0070.08320.41
5.6.10.0130.08020.31
5.6.00.0170.06720.34
5.5.380.0070.08020.44
5.5.370.0100.08020.44
5.5.360.0030.05320.53
5.5.350.0100.07320.37
5.5.340.0100.08020.83
5.5.330.0070.05020.76
5.5.320.0070.08020.92
5.5.310.0200.06320.86
5.5.300.0100.05020.82
5.5.290.0030.04320.90
5.5.280.0130.07720.92
5.5.270.0030.08720.86
5.5.260.0030.05720.73
5.5.250.0000.07720.70
5.5.240.0100.08020.30
5.5.230.0100.08020.20
5.5.220.0100.08020.24
5.5.210.0100.08320.29
5.5.200.0100.07320.27
5.5.190.0000.08319.98
5.5.180.0000.08020.27
5.5.160.0070.07720.12
5.5.150.0030.05720.08
5.5.140.0030.09020.27
5.5.130.0030.04020.10
5.5.120.0070.06320.28
5.5.110.0100.06720.23
5.5.100.0170.07720.15
5.5.90.0130.06320.13
5.5.80.0100.08020.11
5.5.70.0030.08020.09
5.5.60.0100.05320.05
5.5.50.0070.08319.93
5.5.40.0030.07319.92
5.5.30.0130.07320.04
5.5.20.0030.08320.07
5.5.10.0130.07720.08
5.5.00.0100.07319.96
5.4.450.0070.04319.36
5.4.440.0030.04319.37
5.4.430.0130.07319.14
5.4.420.0130.05719.39
5.4.410.0100.06719.31
5.4.400.0070.06719.08
5.4.390.0100.04019.00
5.4.380.0130.06319.08
5.4.370.0000.07719.06
5.4.360.0200.06019.07
5.4.350.0070.06319.12
5.4.340.0100.07718.81
5.4.320.0130.07018.99
5.4.310.0100.04719.14
5.4.300.0130.05719.05
5.4.290.0100.07019.14
5.4.280.0030.08319.11
5.4.270.0100.06019.22
5.4.260.0130.07319.11
5.4.250.0030.08019.04
5.4.240.0100.07719.02
5.4.230.0030.07319.00
5.4.220.0130.06719.13
5.4.210.0130.06319.09
5.4.200.0100.06718.96
5.4.190.0070.08319.22
5.4.180.0130.06019.22
5.4.170.0130.06719.06
5.4.160.0170.06019.09
5.4.150.0030.08019.04
5.4.140.0100.07716.06
5.4.130.0100.07016.37
5.4.120.0030.07716.33
5.4.110.0100.07316.34
5.4.100.0100.04016.42
5.4.90.0030.06316.41
5.4.80.0030.08016.22
5.4.70.0070.07016.22
5.4.60.0070.06016.37
5.4.50.0000.08016.30
5.4.40.0070.07716.36
5.4.30.0070.07316.41
5.4.20.0030.07716.41
5.4.10.0100.06716.31
5.4.00.0070.07315.50
5.3.290.0030.07714.54
5.3.280.0130.07714.41
5.3.270.0130.07314.63
5.3.260.0270.05714.57
5.3.250.0000.08314.56
5.3.240.0000.08714.57
5.3.230.0070.07314.55
5.3.220.0070.07314.53
5.3.210.0200.06314.53
5.3.200.0200.06314.52
5.3.190.0070.05714.47
5.3.180.0070.07714.52
5.3.170.0070.07014.38
5.3.160.0070.08014.57
5.3.150.0070.07314.38
5.3.140.0030.08014.56
5.3.130.0070.07314.50
5.3.120.0100.08014.41
5.3.110.0000.08314.46
5.3.100.0130.07013.98
5.3.90.0070.07313.95
5.3.80.0100.06014.00
5.3.70.0030.08013.97
5.3.60.0100.06713.77
5.3.50.0130.06313.92
5.3.40.0070.07313.85
5.3.30.0100.07013.76
5.3.20.0030.04013.55
5.3.10.0000.04713.56
5.3.00.0000.04313.39

preferences:
36.83 ms | 401 KiB | 5 Q