3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeText($texts) { if(is_array($texts)) { $encoded = array(); foreach($texts as $key => $text) { if (!is_array($text )) { $encoded[$key] = utf8_decode($text); } else { decodeText($text); } } } else { $encoded = utf8_decode($text); } return $encoded; } $smth = array('test' => 'ääõölö', 'test2' => array('öüõü', 'dasd212äöäöä' )); $smth = decodeText($smth); var_dump($smth); var_dump(decodeText('köõöõüpõ'));

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.0040.01118.43
8.3.50.0070.00917.43
8.3.40.0070.00718.97
8.3.30.0080.00818.85
8.3.20.0040.00418.89
8.3.10.0060.00320.48
8.3.00.0050.00519.50
8.2.180.0110.01117.13
8.2.170.0160.00322.96
8.2.160.0040.01122.12
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00619.89
8.2.110.0040.00722.25
8.2.100.0110.00017.78
8.2.90.0000.00817.84
8.2.80.0000.00817.97
8.2.70.0000.01117.75
8.2.60.0000.01017.93
8.2.50.0030.00619.31
8.2.40.0080.00018.16
8.2.30.0000.00718.12
8.2.20.0000.00817.67
8.2.10.0000.00817.91
8.2.00.0000.00817.69
8.1.280.0110.00425.92
8.1.270.0070.00323.99
8.1.260.0060.00326.35
8.1.250.0070.00728.09
8.1.240.0060.00322.14
8.1.230.0030.00920.83
8.1.220.0000.00817.74
8.1.210.0030.00518.78
8.1.200.0000.00917.35
8.1.190.0040.00417.52
8.1.180.0080.00018.10
8.1.170.0000.00820.49
8.1.160.0070.00018.81
8.1.150.0080.00018.54
8.1.140.0040.00417.50
8.1.130.0040.00417.84
8.1.120.0000.00817.50
8.1.110.0030.00517.38
8.1.100.0040.00417.51
8.1.90.0000.00717.50
8.1.80.0000.00717.42
8.1.70.0040.00417.45
8.1.60.0030.00617.53
8.1.50.0000.00917.46
8.1.40.0000.00817.59
8.1.30.0040.00417.55
8.1.20.0000.00817.63
8.1.10.0040.00417.61
8.1.00.0030.00617.50
8.0.300.0070.00019.93
8.0.290.0080.00316.75
8.0.280.0030.00318.38
8.0.270.0040.00417.23
8.0.260.0000.00718.68
8.0.250.0060.00316.99
8.0.240.0030.00616.91
8.0.230.0000.00716.91
8.0.220.0000.00816.86
8.0.210.0000.00716.84
8.0.200.0030.00316.92
8.0.190.0000.00716.96
8.0.180.0040.00416.83
8.0.170.0080.00016.98
8.0.160.0000.00717.01
8.0.150.0040.00416.85
8.0.140.0040.00416.85
8.0.130.0030.00313.45
8.0.120.0040.00416.91
8.0.110.0040.00416.79
8.0.100.0000.00716.88
8.0.90.0040.00416.86
8.0.80.0110.00717.02
8.0.70.0050.00316.98
8.0.60.0050.00316.79
8.0.50.0070.00016.79
8.0.30.0110.01217.10
8.0.20.0100.01017.18
8.0.10.0000.00717.08
8.0.00.0130.00616.82
7.4.330.0050.00014.82
7.4.320.0030.00316.66
7.4.300.0030.00316.60
7.4.290.0000.00716.44
7.4.280.0030.00516.62
7.4.270.0020.00516.58
7.4.260.0060.00013.24
7.4.250.0040.00416.55
7.4.240.0000.00816.50
7.4.230.0030.00316.63
7.4.220.0100.01016.60
7.4.210.0060.00816.59
7.4.200.0050.00316.50
7.4.190.0070.00016.46
7.4.160.0030.01316.74
7.4.150.0090.00917.07
7.4.140.0130.00817.31
7.4.130.0170.00316.56
7.4.120.0100.00816.56
7.4.110.0110.00716.37
7.4.100.0120.00616.55
7.4.90.0100.01416.37
7.4.80.0160.00918.80
7.4.70.0030.01316.52
7.4.60.0070.01016.70
7.4.50.0000.00816.56
7.4.40.0030.01222.27
7.4.30.0000.01616.44
7.4.00.0110.00314.83
7.3.330.0040.00413.22
7.3.320.0000.00613.40
7.3.310.0000.00716.52
7.3.300.0030.00316.43
7.3.290.0070.00716.43
7.3.280.0080.00916.45
7.3.270.0070.01017.18
7.3.260.0160.00418.24
7.3.250.0100.00816.41
7.3.240.0000.01616.55
7.3.230.0130.00416.53
7.3.210.0090.00916.40
7.3.200.0030.01319.39
7.3.190.0070.01016.38
7.3.180.0030.01416.48
7.3.170.0040.01116.45
7.3.160.0120.00916.36
7.3.120.0040.00814.70
7.3.10.0080.00416.73
7.3.00.0070.01016.45
7.2.330.0090.00916.58
7.2.320.0170.00716.88
7.2.310.0100.01016.43
7.2.300.0060.01316.71
7.2.290.0090.00616.57
7.2.130.0000.01116.84
7.2.120.0100.00317.13
7.2.110.0030.00816.75
7.2.100.0090.00316.77
7.2.90.0000.01416.74
7.2.80.0030.01216.93
7.2.70.0030.00716.86
7.2.60.0060.01016.96
7.2.50.0100.00317.07
7.2.40.0040.01117.00
7.2.30.0090.00617.10
7.2.20.0060.00617.07
7.2.10.0040.00816.69
7.2.00.0090.00318.12
7.1.250.0030.00615.86
7.1.100.0060.00618.06
7.1.70.0000.00817.24
7.1.60.0140.01019.40
7.1.50.0060.01516.79
7.1.00.0000.07722.46
7.0.200.0100.00316.79
7.0.140.0000.07322.09
7.0.60.0070.07320.08
7.0.50.0000.09017.97
7.0.40.0170.07720.18
7.0.30.0600.06720.09
7.0.20.0270.06020.23
7.0.10.0230.03720.23
7.0.00.0130.07020.34
5.6.280.0000.07721.07
5.6.210.0070.07720.50
5.6.200.0000.06018.19
5.6.190.0000.05020.67
5.6.180.0470.06720.47
5.6.170.0300.06020.47
5.6.160.0070.04320.44
5.6.150.0030.08318.29
5.6.140.0030.04018.15
5.6.130.0030.05718.20
5.6.120.0100.05721.08
5.6.110.0100.04720.89
5.6.100.0100.08021.01
5.6.90.0070.03720.89
5.6.80.0100.08020.44
5.6.70.4430.04020.35
5.5.350.0300.07720.41
5.5.340.0100.03317.96
5.5.330.0000.05020.47
5.5.320.0200.04720.20
5.5.310.0370.04320.27
5.5.300.0030.08717.98
5.5.290.0000.05717.95
5.5.280.0100.07320.88
5.5.270.0230.02720.72
5.5.260.0100.07720.77
5.5.250.0070.03720.79
5.5.240.0070.07720.16
5.4.450.0030.07719.47
5.4.440.0030.07319.47
5.4.430.0030.04019.32
5.4.420.0030.07019.53
5.4.410.0100.04019.34
5.4.400.0070.07318.87
5.4.390.0100.07019.24
5.4.380.0100.03319.16
5.4.370.0030.05719.12
5.4.360.0070.08019.00
5.4.350.0070.07719.08
5.4.340.0070.07319.24
5.4.320.0070.04318.87
5.4.310.0030.07719.15
5.4.300.0130.03319.14
5.4.290.0100.06319.23
5.4.280.0130.04019.16
5.4.270.0100.03719.14
5.4.260.0070.03719.14
5.4.250.0170.05319.14
5.4.240.0030.05018.91
5.4.230.0000.07718.92
5.4.220.0170.05719.20
5.4.210.0100.04319.13
5.4.200.0070.07319.11
5.4.190.0130.07319.14
5.4.180.0100.06018.97
5.4.170.0100.07319.19
5.4.160.0070.07319.22
5.4.150.0070.04319.13
5.4.140.0030.04016.43
5.4.130.0030.04316.41
5.4.120.0170.06716.43
5.4.110.0030.08016.45
5.4.100.0030.04316.41
5.4.90.0070.05716.38
5.4.80.0070.07016.41
5.4.70.0030.06016.48
5.4.60.0070.04316.41
5.4.50.0000.07716.34
5.4.40.0070.03716.36
5.4.30.0130.06316.65
5.4.20.0000.06016.38
5.4.10.0000.07716.34
5.4.00.0100.04315.95
5.3.290.0100.04314.81
5.3.280.0070.07314.68
5.3.270.0030.08014.68
5.3.260.0100.04314.61
5.3.250.0030.06314.63
5.3.240.0070.03314.52
5.3.230.0070.07714.61
5.3.220.0130.05714.71
5.3.210.0070.04014.59
5.3.200.0100.06014.64
5.3.190.0070.04014.57
5.3.180.0030.06714.48
5.3.170.0030.07314.56
5.3.160.0030.07014.63
5.3.150.0070.08014.56
5.3.140.0070.04714.58
5.3.130.0030.04314.60
5.3.120.0070.07314.70
5.3.110.0000.06714.57
5.3.100.0000.07714.18
5.3.90.0070.03714.07
5.3.80.0030.03714.03
5.3.70.0030.03713.96
5.3.60.0000.04014.04
5.3.50.0030.03713.94
5.3.40.0030.04014.02
5.3.30.0070.04013.80
5.3.20.0070.07013.71
5.3.10.0130.06313.68
5.3.00.0000.04713.66
5.2.170.0030.06311.09
5.2.160.0070.04311.19
5.2.150.0000.05311.18
5.2.140.0070.02711.11
5.2.130.0030.05011.18
5.2.120.0030.06711.11
5.2.110.0030.06011.11
5.2.100.0000.06311.16
5.2.90.0070.06311.15
5.2.80.0030.06311.11
5.2.70.0030.06711.11
5.2.60.0070.05711.11
5.2.50.0000.03711.06
5.2.40.0100.05311.14
5.2.30.0030.02710.96
5.2.20.0000.03311.00
5.2.10.0030.03310.91
5.2.00.0000.06310.79
5.1.60.0030.04710.14
5.1.50.0000.03010.06
5.1.40.0030.0279.97
5.1.30.0070.04710.35
5.1.20.0030.05010.40
5.1.10.0000.03010.07
5.1.00.0000.04310.11
5.0.50.0000.0278.69
5.0.40.0000.0278.32
5.0.30.0070.0308.24
5.0.20.0100.0278.25
5.0.10.0070.0408.08
5.0.00.0030.0678.16
4.4.90.0000.0237.98
4.4.80.0070.0277.98
4.4.70.0030.0337.98
4.4.60.0000.0207.98
4.4.50.0000.0207.98
4.4.40.0000.0307.98
4.4.30.0000.0277.98
4.4.20.0030.0207.98
4.4.10.0030.0237.98
4.4.00.0070.0407.98
4.3.110.0000.0207.98
4.3.100.0000.0377.98
4.3.90.0070.0177.98
4.3.80.0030.0507.98
4.3.70.0030.0337.98
4.3.60.0000.0237.98
4.3.50.0000.0207.98
4.3.40.0070.0277.98
4.3.30.0030.0337.98
4.3.20.0070.0237.98
4.3.10.0030.0337.98
4.3.00.0000.0277.98

preferences:
52.96 ms | 401 KiB | 5 Q