3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(hex2rgb("CCDDFF")); function hex2rgb($hex) { if (substr($hex,0,1)=="#") $hex=substr($hex, 1); if (strlen($hex)==3) $hex=$hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2]; elseif (strlen($hex)!=6) return false; $rgb=array(); $rgb[0] = hexdec(substr($hex,0,2)); // red $rgb[1] = hexdec(substr($hex,2,2)); // green $rgb[2] = hexdec(substr($hex,4,2)); // blue return $rgb; } ?>

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.0110.00718.56
8.3.50.0090.01221.89
8.3.40.0150.00018.71
8.3.30.0120.00319.04
8.3.20.0070.00020.39
8.3.10.0120.00622.01
8.3.00.0080.00022.58
8.2.180.0000.01916.75
8.2.170.0130.00622.96
8.2.160.0110.00420.93
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00719.36
8.2.110.0050.00321.98
8.2.100.0100.00017.78
8.2.90.0050.00219.13
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00717.80
8.2.50.0030.00618.07
8.2.40.0050.00218.22
8.2.30.0050.00318.18
8.2.20.0040.00417.68
8.2.10.0040.00417.74
8.2.00.0000.00717.70
8.1.280.0080.00825.92
8.1.270.0000.00822.05
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0070.00323.91
8.1.230.0110.00019.16
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0050.00317.53
8.1.180.0090.00018.77
8.1.170.0000.00818.62
8.1.160.0000.00722.02
8.1.150.0040.00418.67
8.1.140.0000.00717.36
8.1.130.0030.00317.84
8.1.120.0040.00417.48
8.1.110.0040.00417.44
8.1.100.0000.00717.43
8.1.90.0040.00417.43
8.1.80.0050.00317.50
8.1.70.0000.00717.41
8.1.60.0050.00317.48
8.1.50.0030.00617.43
8.1.40.0040.00417.54
8.1.30.0060.00317.49
8.1.20.0040.00417.63
8.1.10.0060.00317.50
8.1.00.0080.00017.41
8.0.300.0040.00418.77
8.0.290.0040.00416.90
8.0.280.0030.00318.31
8.0.270.0000.00817.11
8.0.260.0030.00316.64
8.0.250.0000.00916.91
8.0.240.0070.00016.93
8.0.230.0050.00316.73
8.0.220.0040.00416.72
8.0.210.0000.00716.86
8.0.200.0040.00416.76
8.0.190.0050.00316.94
8.0.180.0000.00816.89
8.0.170.0000.00716.84
8.0.160.0040.00416.70
8.0.150.0000.00816.82
8.0.140.0040.00416.68
8.0.130.0030.00613.25
8.0.120.0040.00416.77
8.0.110.0030.00516.93
8.0.100.0030.00516.73
8.0.90.0050.00316.93
8.0.80.0060.01216.95
8.0.70.0040.00416.80
8.0.60.0000.00716.72
8.0.50.0040.00416.72
8.0.30.0080.01116.95
8.0.20.0100.00817.40
8.0.10.0070.00017.09
8.0.00.0120.00916.67
7.4.330.0050.00015.14
7.4.320.0030.00316.52
7.4.300.0000.00716.41
7.4.290.0030.00316.56
7.4.280.0030.00316.46
7.4.270.0000.00616.60
7.4.260.0070.00016.57
7.4.250.0000.00816.58
7.4.240.0040.00416.55
7.4.230.0040.00416.63
7.4.220.0090.00916.47
7.4.210.0090.00916.56
7.4.200.0040.00416.39
7.4.190.0030.00516.43
7.4.160.0090.00616.67
7.4.150.0030.01317.40
7.4.140.0110.00917.86
7.4.130.0080.01016.54
7.4.120.0090.00916.41
7.4.110.0030.01316.38
7.4.100.0080.01016.50
7.4.90.0150.01716.59
7.4.80.0060.01519.39
7.4.70.0140.00416.39
7.4.60.0180.00016.50
7.4.50.0040.00016.67
7.4.40.0090.00622.77
7.4.30.0100.00716.43
7.4.00.0030.00914.93
7.3.330.0000.00613.15
7.3.320.0050.00013.08
7.3.310.0070.00016.36
7.3.300.0000.00616.34
7.3.290.0040.01116.32
7.3.280.0100.00916.30
7.3.270.0100.00617.40
7.3.260.0030.01416.53
7.3.250.0070.00916.36
7.3.240.0100.00716.71
7.3.230.0100.01316.39
7.3.210.0130.00316.32
7.3.200.0170.00719.39
7.3.190.0060.01516.32
7.3.180.0000.01516.57
7.3.170.0100.00616.59
7.3.160.0130.00316.38
7.3.120.0100.00414.60
7.2.330.0090.00916.61
7.2.320.0040.01516.64
7.2.310.0060.01516.62
7.2.300.0120.01216.50
7.2.290.0000.01616.39
7.2.00.0040.00919.17
7.1.100.0190.00918.14
7.1.70.0040.00417.22
7.1.60.0040.01119.82
7.1.50.0070.01616.96
7.1.00.0130.08322.57
7.0.200.0000.01116.68
7.0.140.0030.07022.15
7.0.100.0570.07319.95
7.0.90.0630.07320.00
7.0.80.0400.08320.13
7.0.70.0600.07719.94
7.0.60.0600.07719.86
7.0.50.0570.08020.41
7.0.40.0170.07720.10
7.0.30.0100.08020.03
7.0.20.0070.07720.10
7.0.10.0200.06720.14
7.0.00.0130.07320.11
5.6.280.0000.07721.04
5.6.250.0100.08020.61
5.6.240.0100.07720.75
5.6.230.0100.05020.69
5.6.220.0130.07320.53
5.6.210.0070.04020.67
5.6.200.0100.07721.03
5.6.190.0000.09721.05
5.6.180.0130.07721.07
5.6.170.0070.08021.04
5.6.160.0130.07321.18
5.6.150.0100.07321.09
5.6.140.0100.08021.14
5.6.130.0070.08021.01
5.6.120.0100.08021.07
5.6.110.0130.07321.01
5.6.100.0070.08021.07
5.6.90.0100.07721.04
5.6.80.0170.06320.48
5.6.70.0100.07020.50
5.6.60.0000.05320.34
5.6.50.0130.06720.48
5.6.40.0070.07720.37
5.6.30.0070.07320.50
5.6.20.0130.07720.29
5.6.10.0030.08020.36
5.6.00.0130.07020.35
5.5.380.0070.08320.43
5.5.370.0200.06320.38
5.5.360.0200.07020.41
5.5.350.0130.03320.45
5.5.340.0100.04320.93
5.5.330.0100.08020.88
5.5.320.0100.08020.80
5.5.310.0100.07720.93
5.5.300.0070.08020.84
5.5.290.0100.06320.86
5.5.280.0030.06020.88
5.5.270.0030.05020.91
5.5.260.0100.07320.92
5.5.250.0170.07020.62
5.5.240.0070.05720.27
5.5.230.0070.07020.24
5.5.220.0100.07320.27
5.5.210.0100.07320.19
5.5.200.0070.08020.16
5.5.190.0100.06020.28
5.5.180.0070.08720.23
5.5.160.0100.05020.18
5.5.150.0170.06720.11
5.5.140.0030.07720.23
5.5.130.0030.08720.18
5.5.120.0100.08020.24
5.5.110.0030.08320.22
5.5.100.0030.05320.09
5.5.90.0130.07320.07
5.5.80.0100.07020.07
5.5.70.0170.07320.05
5.5.60.0070.07720.14
5.5.50.0000.06320.14
5.5.40.0030.07720.09
5.5.30.0000.09019.96
5.5.20.0200.06720.10
5.5.10.0170.06020.06
5.5.00.0070.08020.03
5.4.450.0100.07719.38
5.4.440.0170.07019.45
5.4.430.0030.08019.20
5.4.420.0100.07319.18
5.4.410.0030.04719.36
5.4.400.0070.07318.89
5.4.390.0130.07319.04
5.4.380.0130.03719.13
5.4.370.0100.07019.06
5.4.360.0070.08018.88
5.4.350.0070.07719.21
5.4.340.0100.04019.14
5.4.320.0130.07019.13
5.4.310.0130.07718.88
5.4.300.0130.07319.15
5.4.290.0070.05319.13
5.4.280.0200.06019.13
5.4.270.0100.07019.12
5.4.260.0030.06319.02
5.4.250.0000.06718.95
5.4.240.0130.05719.09
5.4.230.0130.06718.89
5.4.220.0200.05319.12
5.4.210.0070.06718.84
5.4.200.0170.06319.18
5.4.190.0070.05719.17
5.4.180.0100.06718.89
5.4.170.0130.06318.89
5.4.160.0100.04719.16
5.4.150.0100.07319.02
5.4.140.0070.06716.42
5.4.130.0030.07316.25
5.4.120.0030.07716.45
5.4.110.0000.07316.49
5.4.100.0030.08016.52
5.4.90.0030.07716.47
5.4.80.0070.07316.50
5.4.70.0070.06316.31
5.4.60.0070.07316.41
5.4.50.0070.05016.41
5.4.40.0070.04716.39
5.4.30.0070.07016.46
5.4.20.0170.04316.28
5.4.10.0070.05016.52
5.4.00.0070.07015.88
5.3.290.0130.07014.65
5.3.280.0070.07314.52
5.3.270.0070.07714.66
5.3.260.0070.06314.56
5.3.250.0100.07314.70
5.3.240.0070.08014.58
5.3.230.0030.08314.55
5.3.220.0130.06014.70
5.3.210.0030.07314.63
5.3.200.0100.06314.56
5.3.190.0170.07014.67
5.3.180.0100.07014.70
5.3.170.0130.06714.56
5.3.160.0070.07314.63
5.3.150.0070.07014.67
5.3.140.0030.07714.62
5.3.130.0100.06014.53
5.3.120.0030.07714.57
5.3.110.0030.07714.55
5.3.100.0100.06714.15
5.3.90.0070.07013.97
5.3.80.0070.06313.95
5.3.70.0030.07713.95
5.3.60.0130.07014.07
5.3.50.0100.06014.09
5.3.40.0170.06714.02
5.3.30.0000.06013.91
5.3.20.0000.08013.67
5.3.10.0100.05013.69
5.3.00.0070.06713.73
5.2.170.0130.05311.03
5.2.160.0030.06011.06
5.2.150.0070.06311.13
5.2.140.0100.05711.15
5.2.130.0170.05311.03
5.2.120.0030.06711.12
5.2.110.0070.05311.13
5.2.100.0130.05711.16
5.2.90.0070.06011.21
5.2.80.0100.05711.08
5.2.70.0070.06311.11
5.2.60.0070.06311.16
5.2.50.0030.06311.16
5.2.40.0070.04710.99
5.2.30.0070.06311.08
5.2.20.0030.06310.96
5.2.10.0070.06010.80
5.2.00.0070.06010.78
5.1.60.0030.05310.08
5.1.50.0070.05010.10
5.1.40.0030.0579.82
5.1.30.0030.03010.43
5.1.20.0130.05010.42
5.1.10.0030.02710.11
5.1.00.0030.03710.18
5.0.50.0070.0408.64
5.0.40.0030.0208.49
5.0.30.0000.0338.10
5.0.20.0030.0178.29
5.0.10.0030.0178.27
5.0.00.0000.0308.26
4.4.90.0000.0338.08
4.4.80.0030.0338.08
4.4.70.0030.0338.08
4.4.60.0000.0378.08
4.4.50.0070.0308.08
4.4.40.0070.0538.08
4.4.30.0030.0338.08
4.4.20.0030.0178.08
4.4.10.0030.0138.08
4.4.00.0000.0478.08
4.3.110.0030.0138.08
4.3.100.0030.0138.08
4.3.90.0000.0208.08
4.3.80.0000.0238.08
4.3.70.0030.0138.08
4.3.60.0000.0138.08
4.3.50.0000.0178.08
4.3.40.0000.0278.08
4.3.30.0030.0238.08
4.3.20.0000.0178.08
4.3.10.0000.0278.08
4.3.00.0000.0178.08

preferences:
49.65 ms | 401 KiB | 5 Q