3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ColorTemp($ThisTemp) { $ThisColor = ''; switch (true) { case ($ThisTemp <= -20): $ThisColor = 'C6TB20'; break; case ($ThisTemp <= -15) and ($ThisTemp >= -19): $ThisColor = 'C6TB15B19'; break; case ($ThisTemp <= -10) and ($ThisTemp >= -14): $ThisColo = 'C6TB10B14'; break; case ($ThisTemp <= -5) and ($ThisTemp >= -9): $ThisColor = 'C6TB05B09'; break; case ($ThisTemp <= 0) and ($ThisTemp >= -4): $ThisColor= 'C6T000B04'; break; case ($ThisTemp <= 4) and ($ThisTemp >= 1): $ThisColor = 'C6T004001'; break; case ($ThisTemp <= 9) and ($ThisTemp >= 5): $ThisColor = 'C6T009005'; break; case ($ThisTemp <= 14) and ($ThisTemp >= 10): $ThisColor = 'C6T014010'; break; case ($ThisTemp <= 19) and ($ThisTemp >= 15): $ThisColor = 'C6T019015'; break; case ($ThisTemp <= 24) and ($ThisTemp >= 20): $ThisColor = 'C6T024020'; break; case ($ThisTemp <= 29) and ($ThisTemp >= 25): $ThisColor = 'C6T029025'; break; case ($ThisTemp <= 32) and ($ThisTemp >= 30): $ThisColor = 'C6T032030'; break; case ($ThisTemp <= 34) and ($ThisTemp >= 33): $ThisColor = 'C6T034033'; break; case ($ThisTemp <= 39) and ($ThisTemp >= 35): $ThisColor = 'C6T039035'; break; case ($ThisTemp <= 44) and ($ThisTemp >= 40): $ThisColor = 'C6T044040'; break; case ($ThisTemp <= 49) and ($ThisTemp >= 45): $ThisColor = 'C6T049045'; break; case ($ThisTemp <= 54) and ($ThisTemp >= 50): $ThisColor = 'C6T054050'; break; case ($ThisTemp <= 59) and ($ThisTemp >= 55): $ThisColor = 'C6T059055'; break; case ($ThisTemp <= 64) and ($ThisTemp >= 60): $ThisColor = 'C6T064060'; break; case ($ThisTemp <= 69) and ($ThisTemp >= 65): $ThisColor = 'C6T069065'; break; case ($ThisTemp <= 74) and ($ThisTemp >= 70): $ThisColor = 'C6T074070'; break; case ($ThisTemp <= 79) and ($ThisTemp >= 75): $ThisColor = 'C6T079075'; break; case ($ThisTemp <= 84) and ($ThisTemp >= 80): $ThisColor = 'C6T084080'; break; case ($ThisTemp <= 89) and ($ThisTemp >= 85): $ThisColor = 'C6T089085'; break; case ($ThisTemp <= 94) and ($ThisTemp >= 90): $ThisColor = 'C6T094090'; break; case ($ThisTemp <= 99) and ($ThisTemp >= 95): $ThisColor = 'C6T099095'; break; case ($ThisTemp <= 104) and ($ThisTemp >= 100): $ThisColor = 'C6T104100'; break; case ($ThisTemp <= 109) and ($ThisTemp >= 105): $ThisColor = 'C6T109105'; break; case ($ThisTemp <= 114) and ($ThisTemp >= 110): $ThisColor = 'C6T114110'; break; case ($ThisTemp >= 115): $ThisColor = 'C6T115'; break; } return $ThisColor; } echo ColorTemp(12);

Abusive script

This script was stopped while abusing our resources

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.110.0000.00820.94
8.3.100.0060.00318.33
8.3.90.0040.00416.88
8.3.80.0030.00618.43
8.3.70.0120.00916.75
8.3.60.0070.00716.88
8.3.50.0100.00822.92
8.3.40.0070.00718.71
8.3.30.0030.01019.18
8.3.20.0050.00320.16
8.3.10.0040.00420.53
8.3.00.0040.00420.96
8.2.230.0100.00022.58
8.2.220.0040.00437.54
8.2.210.0000.00726.77
8.2.200.0040.00417.93
8.2.190.0060.01218.29
8.2.180.0120.00318.30
8.2.170.0110.00422.96
8.2.160.0140.00020.49
8.2.150.0070.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00926.16
8.2.120.0050.00319.36
8.2.110.0070.00320.75
8.2.100.0060.00617.78
8.2.90.0050.00317.78
8.2.80.0000.01017.97
8.2.70.0030.00617.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00817.86
8.2.30.0070.00019.39
8.2.20.0040.00417.65
8.2.10.0020.00518.24
8.2.00.0000.00817.60
8.1.290.0060.00318.88
8.1.280.0140.00325.92
8.1.270.0000.00823.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00322.00
8.1.230.0070.00420.88
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0000.00817.41
8.1.180.0000.00918.10
8.1.170.0040.00418.36
8.1.160.0000.00818.81
8.1.150.0070.00018.88
8.1.140.0040.00417.40
8.1.130.0000.00717.88
8.1.120.0000.00717.47
8.1.110.0040.00417.52
8.1.100.0000.00717.55
8.1.90.0000.00717.46
8.1.80.0000.00717.44
8.1.70.0050.00217.44
8.1.60.0000.00917.52
8.1.50.0000.00817.50
8.1.40.0080.00017.39
8.1.30.0080.00017.72
8.1.20.0020.00517.73
8.1.10.0060.00317.45
8.1.00.0050.00217.50
8.0.300.0030.00619.79
8.0.290.0030.00616.75
8.0.280.0000.00718.49
8.0.270.0000.00717.32
8.0.260.0000.00617.31
8.0.250.0070.00016.98
8.0.240.0000.00817.02
8.0.230.0070.00016.98
8.0.220.0030.00316.95
8.0.210.0030.00316.91
8.0.200.0000.00716.89
8.0.190.0040.00417.04
8.0.180.0050.00316.92
8.0.170.0000.00816.85
8.0.160.0070.00017.05
8.0.150.0040.00416.77
8.0.140.0050.00316.87
8.0.130.0030.00613.34
8.0.120.0050.00316.90
8.0.110.0040.00416.92
8.0.100.0040.00416.82
8.0.90.0040.00416.74
8.0.80.0070.00716.89
8.0.70.0040.00416.77
8.0.60.0050.00316.88
8.0.50.0040.00416.82
8.0.30.0110.00817.18
8.0.20.0040.01617.40
8.0.10.0000.00816.91
8.0.00.0110.00716.78
7.4.330.0030.00315.03
7.4.320.0060.00016.46
7.4.300.0030.00316.56
7.4.290.0000.00716.61
7.4.280.0030.00716.57
7.4.270.0030.00316.52
7.4.260.0070.00016.63
7.4.250.0050.00316.66
7.4.240.0000.00716.56
7.4.230.0070.00016.53
7.4.220.0100.00716.49
7.4.210.0130.00316.51
7.4.200.0070.00016.76
7.4.160.0100.00716.64
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0070.00916.51
7.4.120.0110.00616.49
7.4.110.0090.00616.66
7.4.100.0100.00716.45
7.4.90.0110.00716.66
7.4.80.0110.01119.39
7.4.70.0130.00716.32
7.4.60.0060.01016.62
7.4.50.0030.00616.59
7.4.40.0110.01116.54
7.4.30.0030.01316.52
7.4.00.0090.00315.12
7.3.330.0000.00513.35
7.3.320.0000.00513.33
7.3.310.0000.00716.25
7.3.300.0050.00216.37
7.3.290.0070.00616.33
7.3.280.0130.00616.37
7.3.270.0070.01017.40
7.3.260.0040.01516.58
7.3.250.0150.00216.38
7.3.240.0120.00616.34
7.3.230.0080.00816.48
7.3.210.0130.01016.45
7.3.200.0110.01119.39
7.3.190.0060.01216.41
7.3.180.0130.00316.58
7.3.170.0100.00616.42
7.3.160.0080.00816.35
7.3.10.0110.00716.74
7.3.00.0120.00616.77
7.2.330.0100.00716.43
7.2.320.0080.00816.71
7.2.310.0130.01016.70
7.2.300.0100.00716.57
7.2.290.0130.00916.67
7.2.130.0120.00916.82
7.2.120.0060.00616.82
7.2.110.0090.00916.72
7.2.100.0030.01216.76
7.2.90.0060.00617.04
7.2.80.0070.00716.91
7.2.70.0100.00317.01
7.2.60.0060.00316.79
7.2.50.0110.01116.69
7.2.40.0000.01016.60
7.2.30.0090.00816.77
7.2.20.0120.00416.60
7.2.10.0130.00317.01
7.2.00.0060.00618.03
7.1.250.0100.00715.51
7.1.240.0180.00315.53
7.1.230.0120.00915.39
7.1.220.0040.00715.58
7.1.210.0080.00615.59
7.1.200.0040.00715.41
7.1.190.0070.00715.77
7.1.180.0100.00215.56
7.1.170.0070.01015.50
7.1.160.0130.00815.50
7.1.150.0150.00415.77
7.1.140.0040.00815.35
7.1.130.0070.00715.35
7.1.120.0030.01015.68
7.1.110.0040.00715.65
7.1.100.0090.00716.88
7.1.90.0030.00915.68
7.1.80.0120.00015.76
7.1.70.0060.00416.54
7.1.60.0080.01117.57
7.1.50.0080.00416.15
7.1.40.0060.00615.77
7.1.30.0030.00515.60
7.1.20.0050.01215.57
7.1.10.0090.00015.60
7.1.00.0030.04218.94
7.0.330.0140.00715.08
7.0.320.0000.01015.11
7.0.310.0040.00815.38
7.0.300.0110.00015.35
7.0.290.0040.01515.19
7.0.280.0100.00515.32
7.0.270.0090.00315.28
7.0.260.0070.00315.37
7.0.250.0070.00315.40
7.0.240.0090.00615.53
7.0.230.0040.00815.17
7.0.220.0070.00715.06
7.0.210.0070.00315.30
7.0.200.0040.00715.97
7.0.190.0060.00615.14
7.0.180.0030.00715.29
7.0.170.0070.00715.35
7.0.160.0060.00315.31
7.0.150.0030.01015.27
7.0.140.0060.02418.69
7.0.130.0000.01515.21
7.0.120.0060.00915.61
7.0.110.0090.00615.43
7.0.100.0000.01415.34
7.0.90.0120.00315.14
7.0.80.0000.00915.18
7.0.70.0060.00615.38
7.0.60.0070.04417.70
7.0.50.0020.02716.71
7.0.40.0060.04916.81
7.0.30.0250.04216.93
7.0.20.0120.04716.85
7.0.10.0080.04916.79
7.0.00.0050.03216.83
5.6.380.0110.00314.01
5.6.370.0100.00614.50
5.6.360.0050.00814.04
5.6.350.0130.00314.11
5.6.340.0100.00314.45
5.6.330.0030.00914.47
5.6.320.0070.00414.18
5.6.310.0070.01014.20
5.6.300.0100.00313.95
5.6.290.0060.00614.28
5.6.280.0000.00914.66
5.6.270.0080.01114.20
5.6.260.0110.00714.45
5.6.250.0000.01314.32
5.6.240.0030.01414.42
5.6.230.0090.00614.43
5.6.220.0030.00714.47
5.6.210.0170.04917.51
5.6.200.0020.05016.35
5.6.190.0020.05717.48
5.6.180.0150.03517.46
5.6.170.0170.03217.64
5.6.160.0070.03517.52
5.6.150.0080.03516.40
5.6.140.0050.04716.34
5.6.130.0070.03716.39
5.6.120.0060.03017.81
5.6.110.0070.02717.51
5.6.100.0080.04417.62
5.6.90.0110.03617.78
5.6.80.0150.02517.24
5.6.70.1920.01717.40
5.6.60.0040.00414.03
5.6.50.0070.00714.12
5.6.40.0170.00014.22
5.6.30.0040.00814.18
5.6.20.0030.01014.23
5.6.10.0060.00614.30
5.6.00.0030.00714.25
5.5.380.0000.01111.21
5.5.370.0000.00811.02
5.5.360.0070.00011.26
5.5.350.0050.03715.85
5.5.340.0030.03014.64
5.5.330.0120.02615.68
5.5.320.0150.03115.60
5.5.310.0140.02715.71
5.5.300.0030.03514.60
5.5.290.0050.04514.71
5.5.280.0070.04016.14
5.5.270.0070.04715.87
5.5.260.0050.02216.01
5.5.250.0030.04515.88
5.5.240.0130.03315.58
5.5.230.0030.00610.79
5.5.220.0060.00611.05
5.5.210.0120.00011.02
5.5.200.0030.00511.15
5.5.190.0110.00011.20
5.5.180.0000.00611.21
5.5.170.0030.00711.21
5.5.160.0030.00310.91
5.5.150.0060.00310.96
5.5.140.0000.01111.09
5.5.130.0040.00711.26
5.5.120.0030.00611.38
5.5.110.0030.00311.20
5.5.100.0060.00311.25
5.5.90.0120.00011.21
5.5.80.0110.00011.17
5.5.70.0040.00810.88
5.5.60.0000.00510.99
5.5.50.0000.01110.55
5.5.40.0050.00210.75
5.5.30.0030.00310.93
5.5.20.0000.01311.13
5.5.10.0060.00010.90
5.5.00.0030.00310.67
5.4.450.0180.02018.69
5.4.440.0150.02318.42
5.4.430.0240.02317.79
5.4.420.0040.02017.21
5.4.410.0160.02016.69
5.4.400.0150.02416.24
5.4.390.0140.02515.90
5.4.380.0130.02015.86
5.4.370.0100.02415.67
5.4.360.0080.02815.42
5.4.350.0050.01812.17
5.4.340.0000.02412.33
5.4.330.0100.00010.90
5.4.320.0090.01512.70
5.4.310.0060.02312.64
5.4.300.0060.02012.67
5.4.290.0000.02812.71
5.4.280.0030.02112.74
5.4.270.0040.02212.51
5.4.260.0090.01812.56
5.4.250.0050.02012.60
5.4.240.0000.02712.71
5.4.230.0080.01812.67
5.4.220.0050.02012.61
5.4.210.0050.01912.79
5.4.200.0030.02312.52
5.4.190.0050.02212.71
5.4.180.0070.01812.58
5.4.170.0050.02212.45
5.4.160.0040.02112.72
5.4.150.0010.02112.65
5.4.140.0050.01812.31
5.4.130.0020.02312.50
5.4.120.0050.01912.39
5.4.110.0030.02012.27
5.4.100.0070.01812.37
5.4.90.0050.02012.31
5.4.80.0030.02112.24
5.4.70.0070.02112.41
5.4.60.0020.02312.46
5.4.50.0030.02212.56
5.4.40.0030.02112.38
5.4.30.0000.02612.42
5.4.20.0030.01912.42
5.4.10.0030.02012.36
5.4.00.0040.02012.27
5.3.290.0030.02312.63
5.3.280.0010.02412.60
5.3.270.0050.02212.60
5.3.260.0030.02412.71
5.3.250.0070.01812.67
5.3.240.0030.02212.55
5.3.230.0070.02012.45
5.3.220.0050.02212.50
5.3.210.0020.02612.48
5.3.200.0020.02212.34
5.3.190.0020.02412.47
5.3.180.0030.02212.58
5.3.170.0010.02612.59
5.3.160.0020.02512.68
5.3.150.0020.02612.61
5.3.140.0070.01712.50
5.3.130.0060.02112.65
5.3.120.0000.02512.59
5.3.110.0000.02512.65
5.3.100.0050.02212.19
5.3.90.0030.02412.49
5.3.80.0080.01712.13
5.3.70.0030.02212.28
5.3.60.0090.01712.31
5.3.50.0070.02312.22
5.3.40.0030.02412.23
5.3.30.0020.02312.39
5.3.20.0070.02312.17
5.3.10.0120.01512.03
5.3.00.0030.02512.01
5.2.170.0060.01710.55
5.2.160.0050.01710.53
5.2.150.0030.01810.55
5.2.140.0050.01810.55
5.2.130.0020.01910.49
5.2.120.0040.01810.50
5.2.110.0030.02310.50
5.2.100.0020.02010.59
5.2.90.0000.02210.50
5.2.80.0020.02110.52
5.2.70.0070.01510.51
5.2.60.0020.02110.46
5.2.50.0070.01610.45
5.2.40.0020.02010.45
5.2.30.0050.01710.46
5.2.20.0030.01610.45
5.2.10.0040.02010.41
5.2.00.0020.02010.30
5.1.60.0040.0129.98
5.1.50.0060.0139.98
5.1.40.0050.01310.04
5.1.30.0020.02010.14
5.1.20.0020.02410.22
5.1.10.0020.02110.09
5.1.00.0030.0169.98
5.0.50.0050.0109.21
5.0.40.0030.0119.17
5.0.30.0040.0179.06
5.0.20.0040.0129.13
5.0.10.0060.0119.15
5.0.00.0020.0199.04
4.4.90.0050.0077.93
4.4.80.0020.0127.90
4.4.70.0020.0117.88
4.4.60.0000.0137.89
4.4.50.0030.0107.98
4.4.40.0000.0187.90
4.4.30.0000.0117.93
4.4.20.0010.0137.92
4.4.10.0030.0127.95
4.4.00.0020.0177.91
4.3.110.0030.0127.87
4.3.100.0020.0127.85
4.3.90.0020.0087.88
4.3.80.0010.0187.87
4.3.70.0010.0097.86
4.3.60.0020.0097.83
4.3.50.0000.0137.85
4.3.40.0000.0197.88
4.3.30.0040.0117.24
4.3.20.0020.0107.21
4.3.10.0020.0097.22
4.3.00.0020.01114.62

preferences:
41.67 ms | 403 KiB | 5 Q