3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 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.0160.00318.20
8.3.50.0120.00922.11
8.3.40.0000.01518.96
8.3.30.0000.01819.04
8.3.20.0000.00820.33
8.3.10.0040.00422.10
8.3.00.0040.00422.52
8.2.180.0140.00016.59
8.2.170.0080.00822.96
8.2.160.0000.01520.95
8.2.150.0040.00424.18
8.2.140.0180.00024.66
8.2.130.0120.00626.16
8.2.120.0060.00617.50
8.2.110.0060.00322.05
8.2.100.0080.00319.70
8.2.90.0000.00819.29
8.2.80.0040.00418.02
8.2.70.0090.00017.75
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0040.00418.28
8.2.30.0000.00718.02
8.2.20.0070.00017.79
8.2.10.0070.00019.34
8.2.00.0000.00817.60
8.1.280.0040.01125.92
8.1.270.0050.00322.11
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0070.00319.18
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00617.35
8.1.190.0040.00417.52
8.1.180.0050.00318.69
8.1.170.0090.00018.32
8.1.160.0000.00721.92
8.1.150.0020.00518.51
8.1.140.0040.00417.31
8.1.130.0050.00317.68
8.1.120.0000.00717.38
8.1.110.0040.00417.36
8.1.100.0070.00017.45
8.1.90.0040.00417.52
8.1.80.0030.00317.47
8.1.70.0000.00717.42
8.1.60.0030.00617.58
8.1.50.0000.00817.51
8.1.40.0040.00417.43
8.1.30.0030.00617.55
8.1.20.0050.00317.65
8.1.10.0030.00617.50
8.1.00.0060.00317.51
8.0.300.0030.00318.77
8.0.290.0000.00717.15
8.0.280.0050.00318.49
8.0.270.0040.00417.31
8.0.260.0030.00316.89
8.0.250.0030.00317.00
8.0.240.0000.00816.89
8.0.230.0000.00716.88
8.0.220.0040.00416.97
8.0.210.0070.00016.95
8.0.200.0060.00316.83
8.0.190.0040.00416.92
8.0.180.0000.00716.96
8.0.170.0000.00716.94
8.0.160.0000.00716.85
8.0.150.0080.00016.85
8.0.140.0000.00816.83
8.0.130.0000.00613.38
8.0.120.0050.00316.87
8.0.110.0000.00716.82
8.0.100.0030.00316.92
8.0.90.0060.00316.93
8.0.80.0070.00716.95
8.0.70.0050.00216.86
8.0.60.0000.00716.85
8.0.50.0000.00717.03
8.0.30.0150.00417.06
8.0.20.0090.00917.40
8.0.10.0000.00716.98
8.0.00.0090.00916.78
7.4.330.0030.00315.20
7.4.320.0030.00316.52
7.4.300.0000.00616.66
7.4.290.0030.00316.55
7.4.280.0040.00416.52
7.4.270.0000.00716.60
7.4.260.0030.00316.60
7.4.250.0040.00416.49
7.4.240.0030.00516.58
7.4.230.0000.00716.68
7.4.220.0040.01416.41
7.4.210.0100.00816.62
7.4.200.0030.00316.59
7.4.190.0070.00016.57
7.4.160.0090.00916.50
7.4.150.0070.01117.40
7.4.140.0090.01517.86
7.4.130.0050.01316.57
7.4.120.0120.00616.55
7.4.110.0090.01316.38
7.4.100.0080.01416.58
7.4.90.0100.00716.59
7.4.80.0150.00819.39
7.4.70.0070.01416.45
7.4.60.0030.01316.60
7.4.50.0040.00416.57
7.4.40.0120.00822.77
7.4.30.0090.00616.50
7.4.00.0120.00414.83
7.3.330.0000.00513.36
7.3.320.0000.00513.30
7.3.310.0070.00016.54
7.3.300.0040.00416.36
7.3.290.0110.00316.38
7.3.280.0080.00816.31
7.3.270.0070.01017.40
7.3.260.0070.01116.46
7.3.250.0060.01016.66
7.3.240.0120.01016.39
7.3.230.0090.01316.48
7.3.210.0140.00316.43
7.3.200.0070.01119.39
7.3.190.0180.00016.40
7.3.180.0150.00316.39
7.3.170.0070.01016.65
7.3.160.0060.01316.61
7.3.120.0080.00514.95
7.3.10.0120.00616.65
7.3.00.0070.00716.71
7.2.330.0100.00716.71
7.2.320.0030.01416.81
7.2.310.0130.01016.65
7.2.300.0030.01316.76
7.2.290.0000.01616.58
7.2.130.0090.00617.03
7.2.120.0120.00316.90
7.2.110.0080.00416.87
7.2.100.0100.00317.03
7.2.90.0130.00617.06
7.2.80.0000.01517.04
7.2.70.0080.00616.81
7.2.60.0050.00916.78
7.2.50.0040.01416.73
7.2.40.0030.00917.04
7.2.30.0050.00516.59
7.2.20.0060.00916.80
7.2.10.0000.01116.88
7.2.00.0050.01118.02
7.1.250.0060.01215.90
7.1.200.0030.00815.84
7.1.100.0250.00617.78
7.1.70.0090.00017.22
7.1.60.0070.01019.82
7.1.50.0170.00717.05
7.1.00.0030.08722.27
7.0.200.0000.01016.61
7.0.140.0100.07021.95
7.0.60.0070.07319.93
7.0.50.0030.04017.87
7.0.40.0030.05319.96
7.0.30.0370.07020.24
7.0.20.0230.04320.17
7.0.10.0070.08320.19
7.0.00.0030.06720.06
5.6.280.0000.07721.03
5.6.210.0030.04320.55
5.6.200.0070.04318.18
5.6.190.0130.06020.38
5.6.180.0430.05720.61
5.6.170.0370.07020.56
5.6.160.0000.07320.48
5.6.150.0100.08018.27
5.6.140.0070.08718.17
5.6.130.0030.04318.23
5.6.120.0000.08721.12
5.6.110.0130.07321.05
5.6.100.0070.08021.08
5.6.90.0030.04021.01
5.6.80.0000.04720.54
5.5.350.0100.06020.49
5.5.340.0000.05018.07
5.5.330.0070.08320.41
5.5.320.0100.05320.27
5.5.310.0270.07720.28
5.5.300.0100.03718.09
5.5.290.0000.07318.03
5.5.280.0000.04320.77
5.5.270.0030.08320.96
5.5.260.0070.05720.78
5.5.250.0070.08720.66
5.5.240.0000.08320.19
5.4.450.0200.08019.55
5.4.440.0300.05719.38
5.4.430.0130.05019.68
5.4.420.0170.04719.54
5.4.410.0170.05019.31
5.4.400.0830.00018.73
5.4.390.0770.00018.74
5.4.380.0300.05018.72
5.4.370.0730.05718.85
5.4.360.0270.05318.73
5.4.350.0270.06718.73
5.4.340.0330.04718.50
5.4.320.0050.03712.50
5.4.310.0060.03712.50
5.4.300.0050.04312.50
5.4.290.0020.04112.50
5.4.280.0050.03512.39
5.4.270.0100.03712.40
5.4.260.0170.04018.72
5.4.250.0100.07018.92
5.4.240.0100.05018.90
5.4.230.0100.05018.71
5.4.220.0100.06718.93
5.4.210.0030.05318.73
5.4.200.0170.04018.93
5.4.190.0130.04718.73
5.4.180.0130.05019.02
5.4.170.0100.05319.07
5.4.160.0130.04718.89
5.4.150.0130.04719.04
5.4.140.0100.07316.53
5.4.130.0100.04716.51
5.4.120.0130.04016.39
5.4.110.0130.05016.53
5.4.100.0000.05716.24
5.4.90.0030.05316.41
5.4.80.0200.05316.43
5.4.70.0170.03716.33
5.4.60.0070.05316.22
5.4.50.0130.05716.46
5.4.40.0130.04016.41
5.4.30.0100.06716.35
5.4.20.0070.04716.46
5.4.10.0070.04716.42
5.4.00.0000.05015.80
5.3.290.0040.04212.80
5.3.280.0070.06314.76
5.3.270.0000.06014.68
5.3.260.0070.05714.68
5.3.250.0070.05014.68
5.3.240.0100.04714.82
5.3.230.0100.04714.75
5.3.220.0070.05014.55
5.3.210.0100.05014.64
5.3.200.0070.05014.65
5.3.190.0070.05314.74
5.3.180.0000.05714.57
5.3.170.0130.04314.63
5.3.160.0100.05314.70
5.3.150.0070.07714.62
5.3.140.0130.06714.77
5.3.130.0100.04714.69
5.3.120.0030.06014.55
5.3.110.0170.04714.63
5.3.100.0030.05314.12
5.3.90.0000.05714.19
5.3.80.0100.04714.10
5.3.70.0030.05314.00

preferences:
52.95 ms | 401 KiB | 5 Q