3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeText($texts) { if(is_array($texts)) { $encoded = array(); foreach($texts as $key => $text) { var_dump(is_array($key)); var_dump(is_array($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.0150.00318.43
8.3.50.0100.00721.98
8.3.40.0120.00318.85
8.3.30.0100.00620.18
8.3.20.0050.00220.21
8.3.10.0090.00022.09
8.3.00.0080.00022.52
8.2.180.0140.00418.51
8.2.170.0120.00322.96
8.2.160.0070.00721.97
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0040.00420.96
8.2.110.0100.00021.15
8.2.100.0000.01217.84
8.2.90.0000.00819.34
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0080.00018.04
8.2.50.0000.00818.10
8.2.40.0060.00318.22
8.2.30.0070.00018.07
8.2.20.0040.00417.72
8.2.10.0020.00517.86
8.2.00.0100.00017.79
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00621.04
8.1.230.0080.00417.77
8.1.220.0040.00417.74
8.1.210.0190.00018.77
8.1.200.0090.00017.35
8.1.190.0030.00617.48
8.1.180.0050.00318.10
8.1.170.0060.00318.51
8.1.160.0000.00822.14
8.1.150.0000.00818.63
8.1.140.0080.00017.36
8.1.130.0000.00717.84
8.1.120.0040.00417.36
8.1.110.0040.00417.35
8.1.100.0040.00417.45
8.1.90.0000.00717.45
8.1.80.0030.00417.49
8.1.70.0000.00717.38
8.1.60.0030.00617.47
8.1.50.0080.00017.55
8.1.40.0040.00417.53
8.1.30.0090.00017.58
8.1.20.0000.00717.64
8.1.10.0030.00517.53
8.1.00.0090.00317.46
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0030.00318.44
8.0.270.0000.00717.21
8.0.260.0030.00316.75
8.0.250.0030.00317.02
8.0.240.0080.00017.10
8.0.230.0000.00716.96
8.0.220.0030.00316.96
8.0.210.0060.00316.98
8.0.200.0070.00017.00
8.0.190.0000.00817.00
8.0.180.0000.00716.88
8.0.170.0070.00017.04
8.0.160.0030.00316.89
8.0.150.0030.00516.96
8.0.140.0050.00316.96
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0040.00416.84
8.0.100.0000.00816.95
8.0.90.0000.00716.81
8.0.80.0060.00916.91
8.0.70.0030.00316.83
8.0.60.0000.00716.95
8.0.50.0040.00416.98
8.0.30.0110.00917.25
8.0.20.0070.01917.40
8.0.10.0040.00417.01
8.0.00.0050.01416.93
7.4.330.0000.00415.00
7.4.320.0000.00616.59
7.4.300.0060.00016.62
7.4.290.0000.00716.60
7.4.280.0030.00516.64
7.4.270.0030.00316.43
7.4.260.0050.00213.30
7.4.250.0000.00816.47
7.4.240.0020.00516.59
7.4.230.0040.00416.71
7.4.220.0090.01016.70
7.4.210.0090.00716.49
7.4.200.0070.00016.39
7.4.190.0050.00316.41
7.4.160.0070.00716.40
7.4.150.0140.00317.40
7.4.140.0100.01017.86
7.4.130.0120.00516.63
7.4.120.0120.00716.41
7.4.110.0030.01316.57
7.4.100.0160.00616.57
7.4.90.0200.00016.39
7.4.80.0030.01319.39
7.4.70.0030.01316.64
7.4.60.0090.00616.54
7.4.50.0000.00816.33
7.4.40.0000.01122.77
7.4.30.0130.00416.63
7.4.00.0070.00714.82
7.3.330.0000.00513.20
7.3.320.0000.00513.23
7.3.310.0000.00816.22
7.3.300.0030.00316.33
7.3.290.0060.00916.40
7.3.280.0090.00816.43
7.3.270.0090.00917.40
7.3.260.0070.01516.43
7.3.250.0100.00816.57
7.3.240.0110.00716.57
7.3.230.0110.00616.39
7.3.210.0090.00916.42
7.3.200.0130.00919.39
7.3.190.0090.01316.50
7.3.180.0100.00616.32
7.3.170.0130.00716.66
7.3.160.0060.00916.50
7.3.120.0060.01014.95
7.3.10.0060.01016.71
7.3.00.0030.01016.49
7.2.330.0070.01116.50
7.2.320.0110.00816.84
7.2.310.0160.00716.53
7.2.300.0110.01116.59
7.2.290.0040.01216.71
7.2.130.0080.00316.99
7.2.120.0040.01417.09
7.2.110.0070.01016.87
7.2.100.0100.00716.73
7.2.90.0080.01616.94
7.2.80.0080.01216.99
7.2.70.0100.01016.79
7.2.60.0170.01016.83
7.2.50.0090.01217.00
7.2.40.0070.01417.04
7.2.30.0220.00616.85
7.2.20.0070.01517.05
7.2.10.0250.00416.96
7.2.00.0100.00917.90
7.1.250.0030.01415.71
7.1.240.0110.00615.49
7.1.230.0050.01015.86
7.1.220.0110.00415.83
7.1.210.0170.01015.66
7.1.200.0170.00915.77
7.1.190.0110.01515.83
7.1.180.0120.00815.72
7.1.170.0100.01315.75
7.1.160.0120.00815.52
7.1.150.0150.00915.77
7.1.140.0100.01315.71
7.1.130.0040.01615.69
7.1.120.0120.00816.04
7.1.110.0030.01415.85
7.1.100.0070.01015.81
7.1.90.0060.00615.95
7.1.80.0000.01415.80
7.1.70.0030.00716.55
7.1.60.0050.00516.38
7.1.50.0100.00816.09
7.1.40.0090.00615.51
7.1.30.0070.00716.00
7.1.20.0130.00615.74
7.1.10.0000.01015.80
7.1.00.0070.01919.12
7.0.330.0030.00915.49
7.0.320.0090.00915.26
7.0.310.0190.00715.10
7.0.300.0230.00015.32
7.0.290.0050.01215.24
7.0.280.0110.00715.27
7.0.270.0100.01315.35
7.0.260.0120.01515.13
7.0.250.0110.01115.39
7.0.240.0080.00815.63
7.0.230.0110.00315.31
7.0.220.0120.01015.55
7.0.210.0040.00715.42
7.0.200.0060.00816.11
7.0.190.0060.00315.19
7.0.180.0080.00815.43
7.0.170.0060.00915.27
7.0.160.0000.01515.52
7.0.150.0130.00715.56
7.0.140.0020.04418.67
7.0.130.0100.00615.52
7.0.120.0170.00315.42
7.0.110.0190.00615.30
7.0.100.0050.01015.40
7.0.90.0100.00715.46
7.0.80.0030.01315.18
7.0.70.0110.00415.43
7.0.60.0060.03317.76
7.0.50.0090.03716.62
7.0.40.0080.03716.76
7.0.30.0160.04316.79
7.0.20.0150.04016.85
7.0.10.0120.03516.86
7.0.00.0070.04216.86
5.6.380.0090.00614.16
5.6.370.0120.00314.60
5.6.360.0070.00714.37
5.6.350.0060.00314.39
5.6.340.0060.00914.53
5.6.330.0030.01314.28
5.6.320.0040.01614.25
5.6.310.0060.00614.39
5.6.300.0030.01013.99
5.6.290.0060.00914.50
5.6.280.0040.03717.59
5.6.270.0000.01513.94
5.6.260.0040.01114.09
5.6.250.0090.00014.08
5.6.240.0160.00014.22
5.6.230.0030.00614.72
5.6.220.0090.00614.30
5.6.210.0070.02817.45
5.6.200.0070.04216.15
5.6.190.0070.04317.37
5.6.180.0120.03117.35
5.6.170.0120.02717.32
5.6.160.0080.03017.51
5.6.150.0040.04016.23
5.6.140.0020.03016.27
5.6.130.0030.04516.22
5.6.120.0070.04917.72
5.6.110.0030.03917.63
5.6.100.0100.01817.66
5.6.90.0090.04717.65
5.6.80.0060.04617.30
5.6.70.0060.00314.18
5.6.60.0040.01114.29
5.6.50.0030.01014.32
5.6.40.0120.00313.90
5.6.30.0120.00014.00
5.6.20.0110.00613.95
5.6.10.0070.00714.18
5.6.00.0100.00314.03
5.5.380.0090.00411.19
5.5.370.0070.00311.16
5.5.360.0030.00711.28
5.5.350.0120.03815.93
5.5.340.0020.02414.63
5.5.330.0030.02815.78
5.5.320.0120.04415.67
5.5.310.0170.04215.56
5.5.300.0030.02314.60
5.5.290.0080.03814.61
5.5.280.0090.02216.03
5.5.270.0000.02816.09
5.5.260.0110.03815.89
5.5.250.0060.04016.03
5.5.240.0050.04315.63
5.5.230.0000.00810.69
5.5.220.0060.00011.00
5.5.210.0000.01010.65
5.5.200.0080.00510.70
5.5.190.0080.00011.05
5.5.180.0090.00011.16
5.5.170.0060.00611.16
5.5.160.0100.00311.06
5.5.150.0030.00311.23
5.5.140.0000.01011.36
5.5.130.0030.00911.27
5.5.120.0110.00011.19
5.5.110.0070.00011.50
5.5.100.0130.00011.40
5.5.90.0070.00011.22
5.5.80.0030.00711.01
5.5.70.0030.00711.25
5.5.60.0060.00610.86
5.5.50.0030.00610.91
5.5.40.0030.00611.27
5.5.30.0060.00611.25
5.5.20.0040.00711.35
5.5.10.0030.00611.04
5.5.00.0060.00011.04
5.4.450.0320.04215.41
5.4.440.0470.03415.07
5.4.430.0060.03315.27
5.4.420.0540.02715.30
5.4.410.0500.02815.32
5.4.400.0650.02814.73
5.4.390.0760.03114.93
5.4.380.0110.03514.51
5.4.370.0150.02314.83
5.4.360.0070.03115.02
5.4.350.0040.02111.63
5.4.340.0060.02311.46
5.4.330.0060.00011.36
5.4.320.0020.02511.70
5.4.310.0020.02311.67
5.4.300.0040.02011.80
5.4.290.0060.02211.64
5.4.280.0040.02211.71
5.4.270.0050.02211.64
5.4.260.0020.03111.72
5.4.250.0080.01911.66
5.4.240.0070.03015.08
5.4.230.0120.03015.12
5.4.220.0100.03514.90
5.4.210.0030.03314.79
5.4.200.0100.02415.00
5.4.190.0020.03014.82
5.4.180.0030.03014.92
5.4.170.0100.02914.94
5.4.160.0090.02414.81
5.4.150.0050.02914.99
5.4.140.0020.02813.93
5.4.130.0100.02213.84
5.4.120.0080.02713.68
5.4.110.0030.02813.84
5.4.100.0080.02313.95
5.4.90.0030.02813.67
5.4.80.0100.02213.81
5.4.70.0030.02813.83
5.4.60.0030.02813.77
5.4.50.0080.02513.73
5.4.40.0130.02213.67
5.4.30.0080.02413.77
5.4.20.0080.02213.85
5.4.10.0070.02713.63
5.4.00.0020.02813.51
5.3.290.0050.02611.74
5.3.280.0130.02612.61
5.3.270.0100.02412.59
5.3.260.0100.02512.64
5.3.250.0070.02412.72
5.3.240.0050.02712.54
5.3.230.0050.02712.67
5.3.220.0030.04112.72
5.3.210.0080.02512.67
5.3.200.0070.02512.56
5.3.190.0070.03312.51
5.3.180.0070.02512.57
5.3.170.0050.02812.62
5.3.160.0050.02912.56
5.3.150.0050.02712.66
5.3.140.0060.02812.57
5.3.130.0030.02912.67
5.3.120.0140.02212.72
5.3.110.0050.03112.69
5.3.100.0030.02612.31
5.3.90.0050.02812.43
5.3.80.0100.02212.37
5.3.70.0110.02412.29
5.3.60.0070.02712.35
5.3.50.0050.02712.29
5.3.40.0020.02912.31
5.3.30.0060.02512.20
5.3.20.0030.02612.22
5.3.10.0070.02212.11
5.3.00.0100.02011.98
5.2.170.0040.02210.80
5.2.160.0020.02410.79
5.2.150.0030.02310.85
5.2.140.0050.02710.80
5.2.130.0090.01710.78
5.2.120.0100.01510.88
5.2.110.0060.02010.82
5.2.100.0050.02010.77
5.2.90.0100.01710.78
5.2.80.0030.02110.87
5.2.70.0070.02010.81
5.2.60.0020.02510.76
5.2.50.0020.02410.84
5.2.40.0050.02010.78
5.2.30.0030.02310.73
5.2.20.0050.02010.63
5.2.10.0060.02110.71
5.2.00.0050.02310.68
5.1.60.0050.01810.27
5.1.50.0050.01710.22
5.1.40.0060.01810.19
5.1.30.0100.02210.38
5.1.20.0020.03010.41
5.1.10.0020.02210.32
5.1.00.0070.01810.31
5.0.50.0050.0139.47
5.0.40.0020.0159.56
5.0.30.0050.0189.33
5.0.20.0030.0159.32
5.0.10.0030.0159.36
5.0.00.0020.0249.31
4.4.90.0000.0168.60
4.4.80.0000.0148.60
4.4.70.0000.0148.60
4.4.60.0030.0128.60
4.4.50.0050.0118.60
4.4.40.0020.0178.60
4.4.30.0020.0178.60
4.4.20.0030.0138.60
4.4.10.0000.0148.60
4.4.00.0030.0168.60
4.3.110.0000.0148.60
4.3.100.0040.0108.60
4.3.90.0000.0148.60
4.3.80.0030.0178.60
4.3.70.0020.0138.60
4.3.60.0050.0128.60
4.3.50.0030.0108.60
4.3.40.0060.0158.60
4.3.30.0000.0138.60
4.3.20.0020.0128.60
4.3.10.0000.0148.60
4.3.00.0070.0158.65

preferences:
49.41 ms | 401 KiB | 5 Q