3v4l.org

run code in 300+ PHP versions simultaneously
<?php $img = imagecreate(10,10); ob_start(); imagepng($img); $contents = ob_get_clean(); imagedestroy($img); echo "done";

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.0090.00618.43
8.3.60.0100.01018.39
8.3.50.0120.00521.02
8.3.40.0120.00318.80
8.3.30.0100.00719.10
8.3.20.0040.00419.90
8.3.10.0070.00021.90
8.3.00.0030.00522.43
8.2.190.0100.01016.58
8.2.180.0160.00616.50
8.2.170.0070.00722.96
8.2.160.0130.00719.03
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00019.15
8.2.110.0090.00022.21
8.2.100.0090.00319.57
8.2.90.0000.00718.95
8.2.80.0000.00917.97
8.2.70.0080.00017.63
8.2.60.0030.00617.80
8.2.50.0080.00418.07
8.2.40.0040.00419.94
8.2.30.0000.00717.99
8.2.20.0000.00717.69
8.2.10.0030.00517.76
8.2.00.0030.00617.61
8.1.280.0060.01325.92
8.1.270.0080.00022.07
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.73
8.1.230.0070.00319.29
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.28
8.1.180.0050.00318.67
8.1.170.0000.01118.48
8.1.160.0000.00722.14
8.1.150.0000.00718.56
8.1.140.0030.00417.32
8.1.130.0070.00017.75
8.1.120.0040.00417.25
8.1.110.0040.00417.35
8.1.100.0020.00517.28
8.1.90.0040.00417.25
8.1.80.0050.00317.23
8.1.70.0070.00017.25
8.1.60.0030.00617.45
8.1.50.0060.00317.46
8.1.40.0040.00417.50
8.1.30.0040.00417.42
8.1.20.0080.00017.50
8.1.10.0000.00717.49
8.1.00.0040.00417.41
8.0.300.0040.00318.77
8.0.290.0080.00017.05
8.0.280.0000.00818.29
8.0.270.0030.00317.10
8.0.260.0000.00616.78
8.0.250.0040.00416.81
8.0.240.0040.00416.86
8.0.230.0040.00416.90
8.0.220.0000.00716.79
8.0.210.0040.00416.94
8.0.200.0000.00716.99
8.0.190.0040.00417.01
8.0.180.0040.00416.94
8.0.170.0070.00016.84
8.0.160.0030.00516.98
8.0.150.0030.00316.85
8.0.140.0040.00416.75
8.0.130.0000.00513.34
8.0.120.0040.00416.79
8.0.110.0030.00516.77
8.0.100.0040.00416.74
8.0.90.0080.00016.92
8.0.80.0160.00316.95
8.0.70.0080.00016.73
8.0.60.0050.00216.69
8.0.50.0070.00016.77
8.0.30.0100.00916.96
8.0.20.0160.00617.40
8.0.10.0000.00816.95
8.0.00.0130.00716.56
7.4.330.0030.00315.01
7.4.320.0030.00316.51
7.4.300.0000.00616.53
7.4.290.0030.00316.52
7.4.280.0040.00416.46
7.4.270.0000.00716.37
7.4.260.0030.00316.45
7.4.250.0000.00816.45
7.4.240.0080.00016.34
7.4.230.0070.00016.33
7.4.220.0130.00616.47
7.4.210.0090.00416.53
7.4.200.0030.00316.54
7.4.190.0070.00016.48
7.4.160.0060.00916.50
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0110.00816.50
7.4.120.0100.00716.39
7.4.110.0120.00816.62
7.4.100.0090.00916.60
7.4.90.0040.01416.34
7.4.80.0070.01019.39
7.4.70.0120.00916.34
7.4.60.0080.00816.33
7.4.50.0040.00416.45
7.4.40.0100.00722.77
7.4.30.0000.01516.49
7.4.00.0030.01014.99
7.3.330.0030.00313.10
7.3.320.0050.00013.00
7.3.310.0030.00316.20
7.3.300.0030.00316.26
7.3.290.0060.01316.30
7.3.280.0090.00816.28
7.3.270.0100.00617.40
7.3.260.0140.01016.30
7.3.250.0100.00716.53
7.3.240.0070.01116.53
7.3.230.0060.01316.39
7.3.210.0140.00416.23
7.3.200.0090.01119.39
7.3.190.0130.01016.22
7.3.180.0120.00916.18
7.3.170.0100.00616.47
7.3.160.0090.00616.38
7.3.120.0060.01214.82
7.2.330.0090.00816.64
7.2.320.0180.00416.35
7.2.310.0060.01316.52
7.2.300.0050.01416.59
7.2.290.0140.00716.48
7.2.60.0070.00316.85
7.2.00.0070.01418.95
7.1.200.0060.00615.61
7.1.100.0040.01118.12
7.1.70.0040.00816.81
7.1.60.0120.01219.82
7.1.50.0070.01716.91
7.1.00.0030.03322.40
7.0.200.0030.00516.66
7.0.140.0000.08022.18
7.0.70.4130.04019.88
7.0.60.0070.03719.99
7.0.50.0100.03317.78
7.0.40.0170.08320.23
7.0.30.0200.06719.96
7.0.20.0270.08720.18
7.0.10.0170.05020.16
7.0.00.0170.06720.17
5.6.280.0030.07320.89
5.6.210.0000.04720.49
5.6.200.0100.05318.16
5.6.190.0100.04320.39
5.6.180.0200.04720.38
5.6.170.0370.05320.50
5.6.160.0000.06720.37
5.6.150.0030.04018.21
5.6.140.0130.05318.07
5.6.130.0070.06718.20
5.6.120.0100.05720.98
5.6.110.0030.04321.03
5.6.100.0170.07321.12
5.6.90.0100.08020.99
5.6.80.0000.04720.46
5.6.70.0370.05320.34
5.5.350.0100.04320.48
5.5.340.0030.08317.95
5.5.330.0070.08320.42
5.5.320.0000.04320.07
5.5.310.0230.05320.21
5.5.300.0070.05018.02
5.5.290.0100.08317.98
5.5.280.0030.07720.76
5.5.270.0000.04320.71
5.5.260.0100.08020.96
5.5.250.0130.08020.68
5.5.240.0200.06020.25
5.4.450.0530.05019.49
5.4.440.0830.06319.24
5.4.430.0800.07019.13
5.4.420.0970.05719.59
5.4.410.0200.05019.40
5.4.400.1000.04719.29
5.4.390.1170.04018.78
5.4.380.0200.05718.49
5.4.370.0330.05018.50
5.4.360.0230.04318.49
5.4.350.0100.03011.97
5.4.340.0120.02811.96
5.4.320.0070.03612.45
5.4.310.0060.03612.45
5.4.300.0040.03912.45
5.4.290.0030.04112.45
5.4.280.0060.03912.35
5.4.270.0090.03212.34
5.4.260.0100.04718.69
5.4.250.0130.04718.72
5.4.240.0130.07018.78
5.4.230.0100.05019.00
5.4.220.0070.07718.84
5.4.210.0030.06018.89
5.4.200.0130.04318.69
5.4.190.0130.04318.78
5.4.180.0030.05318.83
5.4.170.0030.05318.78
5.4.160.0170.04718.88
5.4.150.0070.05318.82
5.4.140.0000.05716.25
5.4.130.0000.05716.20
5.4.120.0030.05016.24
5.4.110.0030.05016.34
5.4.100.0070.05716.34
5.4.90.0030.05016.43
5.4.80.0030.05016.46
5.4.70.0130.04316.21
5.4.60.0030.05316.48
5.4.50.0070.04316.33
5.4.40.0070.04716.26
5.4.30.0030.05316.43
5.4.20.0130.04016.31
5.4.10.0000.05716.30
5.4.00.0100.04315.91
5.3.290.0060.03812.80
5.3.280.0100.04714.60
5.3.270.0030.05714.52
5.3.260.0030.05714.59
5.3.250.0100.04714.44
5.3.240.0000.05714.30
5.3.230.0030.05314.74
5.3.220.0030.05014.55
5.3.210.0100.05014.71
5.3.200.0130.04014.40
5.3.190.0100.04714.33
5.3.180.0100.04714.58
5.3.170.0070.05014.48
5.3.160.0000.05314.65
5.3.150.0100.04314.61
5.3.140.0100.04314.42
5.3.130.0070.05014.41
5.3.120.0030.05714.55
5.3.110.0200.04314.59
5.3.100.0070.07013.90
5.3.90.0100.05713.93
5.3.80.0070.05013.72
5.3.70.0130.04313.93
5.3.60.0000.05314.09
5.3.50.0000.05713.83
5.3.40.0030.07313.86
5.3.30.0030.05013.95
5.3.20.0070.04713.71
5.3.10.0070.04713.44
5.3.00.0070.05313.52
5.2.170.0030.04011.23
5.2.160.0000.04711.06
5.2.150.0070.04011.16
5.2.140.0000.04711.13
5.2.130.0070.04011.09
5.2.120.0100.03311.01
5.2.110.0130.04011.11
5.2.100.0070.03711.01
5.2.90.0070.03711.01
5.2.80.0200.04711.20
5.2.70.0170.03011.09
5.2.60.0100.03311.16
5.2.50.0030.04010.85
5.2.40.0000.04310.99
5.2.30.0030.04010.97
5.2.20.0030.04010.71
5.2.10.0070.03710.76
5.2.00.0000.04310.93
5.1.60.0000.0379.95
5.1.50.0000.03710.08
5.1.40.0030.03710.04
5.1.30.0070.03710.41
5.1.20.0070.03310.43
5.1.10.0070.04710.12
5.1.00.0030.0379.98
5.0.50.0100.0238.46
5.0.40.0070.0378.46
5.0.30.0100.0378.28
5.0.20.0030.0408.22
5.0.10.0000.0308.23
5.0.00.0030.0538.21
4.4.90.0000.0237.16
4.4.80.0030.0207.16
4.4.70.0030.0207.13
4.4.60.0030.0207.10
4.4.50.0000.0237.09
4.4.40.0000.0337.27
4.4.30.0000.0237.27
4.4.20.0030.0207.27
4.4.10.0000.0337.27
4.4.00.0030.0377.27
4.3.110.0030.0237.27
4.3.100.0030.0307.27
4.3.90.0000.0307.27
4.3.80.0030.0337.27
4.3.70.0070.0177.27
4.3.60.0030.0207.27
4.3.50.0100.0137.27
4.3.40.0030.0407.27
4.3.30.0000.0237.27
4.3.20.0030.0307.27
4.3.10.0030.0207.27
4.3.00.0130.0277.29

preferences:
36.94 ms | 401 KiB | 5 Q