3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("content-type:image/png"); $im = imagecreate(100, 100); $a = sprintf('%04x',mt_rand(0, 65535)); $b = sprintf('%04x',mt_rand(0, 65535)); $c = sprintf('%04x',mt_rand(0, 65535)); $white = imagecolorallocate($im,$a,$b,$c); imagepng($im); imagedestroy($im); echo "\n\n\n$a-$b-$c";

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.3.120.0030.01314.77
7.3.110.0060.01214.52
7.3.100.0040.01114.99
7.3.90.0110.00314.95
7.3.80.0060.00914.73
7.3.70.0080.00414.75
7.3.60.0060.01014.80
7.3.50.0060.00914.64
7.3.40.0030.00914.86
7.3.30.0070.00714.46
7.3.20.0080.00016.42
7.3.10.0040.01016.58
7.3.00.0020.01016.43
7.2.240.0090.01214.94
7.2.230.0030.01015.05
7.2.220.0030.00914.64
7.2.210.0000.01214.86
7.2.200.0070.00314.86
7.2.190.0070.00715.02
7.2.180.0090.00614.79
7.2.170.0060.00914.62
7.2.160.0090.00914.90
7.2.150.0050.00516.86
7.2.140.0060.00616.60
7.2.130.0090.00316.68
7.2.120.0050.00916.80
7.2.110.0070.00616.75
7.2.100.0030.00816.60
7.2.90.0070.00716.58
7.2.80.0050.00516.66
7.2.70.0020.00816.94
7.2.60.0110.00116.75
7.2.50.0020.01316.81
7.2.40.0040.01116.78
7.2.30.0050.01016.84
7.2.20.0060.00816.83
7.2.10.0030.00916.89
7.2.00.0070.00716.63
7.1.330.0070.01015.86
7.1.320.0030.00515.81
7.1.310.0050.00215.32
7.1.300.0080.00415.77
7.1.290.0060.00315.73
7.1.280.0070.01115.40
7.1.270.0100.00615.71
7.1.260.0040.00715.70
7.1.250.0030.00615.74
7.1.70.0190.00716.78
7.1.60.0080.01519.27
7.1.50.0030.01516.95
7.1.00.0030.07722.36
7.0.200.0040.00416.57
7.0.60.0200.03021.71
7.0.50.0030.04017.82
7.0.40.0100.05020.12
7.0.30.0230.04320.30
7.0.20.0330.05020.13
7.0.10.0130.08020.11
7.0.00.0030.07720.16
5.6.280.0000.03721.12
5.6.210.0130.06020.72
5.6.200.0030.08718.21
5.6.190.0130.05320.77
5.6.180.0300.04020.49
5.6.170.0200.04020.52
5.6.160.0130.07020.49
5.6.150.0100.07318.17
5.6.140.0130.04318.07
5.6.130.0030.05318.09
5.6.120.0130.08021.03
5.6.110.0070.09020.99
5.6.100.0130.07721.08
5.6.90.0030.09021.07
5.6.80.0070.08020.48
5.5.350.0070.08020.44
5.5.340.0000.04017.98
5.5.330.0070.04720.25
5.5.320.0330.07720.31
5.5.310.0300.07320.50
5.5.300.0070.07717.98
5.5.290.0100.07317.89
5.5.280.0030.05020.84
5.5.270.0100.06720.72
5.5.260.0130.08320.95
5.5.250.0130.07720.61
5.5.240.0230.06720.15

preferences:
29.68 ms | 401 KiB | 5 Q