3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decode($data, $encoding) { // convert string if (is_string($data)) { if (function_exists('iconv')) { // iconv is by far the most flexible approach, try this first $return_value = iconv('UTF-8', $encoding, $data); } elseif ($encoding == 'ISO-8859-1') { // for ISO-8859-1 we can use utf8-decode() $return_value = utf8_decode($data); } else { // give up. if data was supplied in the correct format everything is fine! $return_value = $data; } // end: if } else { // non-string value $return_value = $data; } // end: if return $return_value; } $response = "0;78d13qqoglyszmorspfwfdmwffgnubgr;\u003c?dpf sent len=\"1\"?\u003e\u003c?dpf orth code=\"unknown\" prop=\"Lesen;Lehnen;Lehren;Leasen;Leisen\" ?\u003elehsen\u003c?dpf /orth ?\u003e~~~\u003c?dpf /sent ?\u003e"; //$response = str_replace("\u003c", "<", $response); //$response = str_replace("\u003e", ">", $response); echo utf8_decode($response);

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.0070.00716.50
8.3.50.0120.00922.78
8.3.40.0120.00318.71
8.3.30.0140.00319.10
8.3.20.0050.00220.39
8.3.10.0040.00423.48
8.3.00.0000.00819.15
8.2.180.0070.01116.50
8.2.170.0120.00322.96
8.2.160.0100.00320.46
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.84
8.2.110.0040.00420.27
8.2.100.0070.00418.22
8.2.90.0030.00619.27
8.2.80.0050.00517.97
8.2.70.0000.00817.63
8.2.60.0040.00418.03
8.2.50.0060.00318.07
8.2.40.0000.00919.88
8.2.30.0030.00619.91
8.2.20.0050.00317.64
8.2.10.0000.00717.90
8.2.00.0040.00417.60
8.1.280.0110.00425.92
8.1.270.0060.00323.91
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.94
8.1.230.0060.00619.02
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0040.00418.58
8.1.160.0000.00721.99
8.1.150.0000.00718.69
8.1.140.0040.00417.38
8.1.130.0040.00417.86
8.1.120.0040.00417.31
8.1.110.0000.00717.39
8.1.100.0040.00417.42
8.1.90.0000.00717.28
8.1.80.0000.00717.41
8.1.70.0030.00517.37
8.1.60.0030.00617.53
8.1.50.0000.00817.42
8.1.40.0080.00017.43
8.1.30.0040.00417.51
8.1.20.0000.00717.62
8.1.10.0000.00817.50
8.1.00.0000.00717.38
8.0.300.0050.00218.77
8.0.290.0000.00816.63
8.0.280.0070.00018.36
8.0.270.0040.00417.12
8.0.260.0030.00517.24
8.0.250.0070.00017.00
8.0.240.0000.00616.88
8.0.230.0050.00216.72
8.0.220.0030.00316.87
8.0.210.0000.00716.82
8.0.200.0060.00016.84
8.0.190.0030.00616.84
8.0.180.0040.00316.85
8.0.170.0000.00816.73
8.0.160.0030.00316.82
8.0.150.0050.00316.66
8.0.140.0030.00616.77
8.0.130.0000.00813.24
8.0.120.0070.00016.63
8.0.110.0000.00716.69
8.0.100.0040.00416.86
8.0.90.0040.00416.84
8.0.80.0140.00716.81
8.0.70.0030.00516.77
8.0.60.0000.00716.72
8.0.50.0000.00716.63
8.0.30.0110.00816.89
8.0.20.0210.01017.40
8.0.10.0040.00416.92
8.0.00.0090.00816.67
7.4.330.0000.00515.00
7.4.320.0030.00316.40
7.4.300.0000.00616.55
7.4.290.0030.00316.39
7.4.280.0050.00316.52
7.4.270.0000.00716.43
7.4.260.0070.00016.48
7.4.250.0000.00816.39
7.4.240.0040.00416.54
7.4.230.0030.00316.61
7.4.220.0060.01216.54
7.4.210.0150.00016.36
7.4.200.0000.00816.45
7.4.160.0110.00416.41
7.4.150.0120.01217.40
7.4.140.0070.01117.86
7.4.130.0050.01316.36
7.4.120.0070.01016.46
7.4.110.0150.00916.46
7.4.100.0080.00816.49
7.4.90.0030.01416.48
7.4.80.0090.00919.39
7.4.70.0090.00816.14
7.4.60.0060.01016.36
7.4.50.0050.00816.35
7.4.40.0060.01316.33
7.4.30.0120.00816.32
7.4.20.0110.00816.23
7.4.10.0150.00316.18
7.4.00.0000.01415.82
7.3.330.0000.00713.17
7.3.320.0070.00013.04
7.3.310.0000.00716.05
7.3.300.0000.00716.13
7.3.290.0030.01616.19
7.3.280.0060.01216.17
7.3.270.0030.01617.40
7.3.260.0090.00916.12
7.3.250.0100.00816.38
7.3.240.0130.00316.37
7.3.230.0160.00316.39
7.3.210.0100.00716.03
7.3.200.0040.01316.38
7.3.190.0070.01116.43
7.3.180.0040.01216.08
7.3.170.0090.01016.35
7.3.160.0070.00916.44
7.3.150.0130.00316.39
7.3.140.0070.01015.95
7.3.130.0060.01216.18
7.3.120.0050.00915.17
7.3.110.0050.00915.31
7.3.100.0100.00515.12
7.3.90.0030.01215.17
7.3.80.0050.00915.19
7.3.70.0090.00815.10
7.3.60.0020.01115.09
7.3.50.0060.01015.03
7.3.40.0090.00615.03
7.3.30.0070.00815.19
7.3.20.0080.00916.50
7.3.10.0060.01316.30
7.3.00.0110.00616.36
7.2.330.0090.00916.64
7.2.320.0090.00916.49
7.2.310.0100.01016.44
7.2.300.0090.01016.27
7.2.290.0120.00516.43
7.2.280.0100.00716.50
7.2.270.0070.01416.38
7.2.260.0070.01016.34
7.2.250.0070.01016.41
7.2.240.0080.00715.28
7.2.230.0040.01315.35
7.2.220.0040.01015.45
7.2.210.0040.01015.27
7.2.200.0070.00815.24
7.2.190.0080.00715.38
7.2.180.0060.01015.29
7.2.170.0110.00615.19
7.2.160.0060.01215.32
7.2.150.0100.00916.67
7.2.140.0060.01316.46
7.2.130.0510.01316.64
7.2.120.0110.01017.14
7.2.110.0140.00816.90
7.2.100.0080.01117.13
7.2.90.0080.01217.29
7.2.80.0070.01117.21
7.2.70.0100.00817.24
7.2.60.0080.00817.25
7.2.50.0100.01017.20
7.2.40.0090.01017.32
7.2.30.0110.00717.16
7.2.20.0130.00716.62
7.2.10.0080.01016.53
7.2.00.0060.00917.38
7.1.330.0050.01115.57
7.1.320.0070.00915.53
7.1.310.0130.00915.47
7.1.300.0070.00615.47
7.1.290.0070.00815.62
7.1.280.0080.00615.49
7.1.270.0100.00515.59
7.1.260.0080.01015.73
7.1.250.0120.00616.17
7.1.240.0100.01215.41
7.1.230.0100.00717.21
7.1.220.0120.00417.34
7.1.210.0140.00517.34
7.1.200.0110.01117.26
7.1.190.0030.01417.43
7.1.180.0110.00815.57
7.1.170.0030.01317.29
7.1.160.0070.01117.34
7.1.150.0070.01417.22
7.1.140.0000.02115.61
7.1.130.0100.00715.48
7.1.120.0000.01515.49
7.1.110.0130.00515.62
7.1.100.0050.01016.77
7.1.90.0100.01015.46
7.1.80.0080.00815.50
7.1.70.0100.00616.05
7.1.60.0090.00916.37
7.1.50.0090.01016.07
7.1.40.0110.00915.94
7.1.30.0090.01116.12
7.1.20.0120.00616.16
7.1.10.0100.00616.09
7.1.00.0200.00516.10
7.0.330.0130.00716.85
7.0.320.0130.00515.07
7.0.310.0120.00616.94
7.0.300.0170.00015.14
7.0.290.0090.00917.04
7.0.280.0120.00917.03
7.0.270.0080.00715.24
7.0.260.0150.00515.24
7.0.250.0070.01115.36
7.0.240.0110.00515.18
7.0.230.0070.01015.18
7.0.220.0030.01315.32
7.0.210.0040.01315.21
7.0.200.0100.00516.00
7.0.190.0070.01115.99
7.0.180.0050.00915.52
7.0.170.0130.01115.78
7.0.160.0050.01015.87
7.0.150.0060.00815.66
7.0.140.0070.00615.61
7.0.130.0080.00715.82
7.0.120.0080.00715.81
7.0.110.0070.01115.69
7.0.100.0120.00215.70
7.0.90.0090.00815.86
7.0.80.0050.01015.81
7.0.70.0070.00715.66
7.0.60.0120.00215.66
7.0.50.0090.00515.86
7.0.40.0100.00515.14
7.0.30.0060.00715.17
7.0.20.0050.00915.20
7.0.10.0090.00515.16
7.0.00.0100.00615.12
5.6.400.0040.01916.11
5.6.390.0070.01215.59
5.6.380.0140.00616.01
5.6.370.0170.00515.90
5.6.360.0110.00815.86
5.6.350.0070.01115.97
5.6.340.0190.00215.89
5.6.330.0030.01516.03
5.6.320.0110.00615.78
5.6.310.0000.01915.67
5.6.300.0080.03718.39
5.6.290.0080.02518.36
5.6.280.0100.02218.25
5.6.270.0050.04418.36
5.6.260.0100.04118.34
5.6.250.0100.02418.39
5.6.240.0060.03018.42
5.6.230.0030.05218.32
5.6.220.0070.04018.33
5.6.210.0090.02718.49
5.6.200.0030.03218.33
5.6.190.0050.02918.45
5.6.180.0160.01718.54
5.6.170.0080.02618.27
5.6.160.0070.02918.35
5.6.150.0090.04818.45
5.6.140.0070.03118.30
5.6.130.0110.02618.26
5.6.120.0150.02418.44
5.6.110.0040.03218.40
5.6.100.0090.02418.25
5.6.90.0030.03718.39
5.6.80.0070.02518.09
5.6.70.0080.02518.13
5.6.60.0100.02517.97
5.6.50.0040.02618.17
5.6.40.0080.02818.07
5.6.30.0080.04918.12
5.6.20.0060.02817.98
5.6.10.0100.02317.93
5.6.00.0050.02818.10
5.5.380.0080.02516.64
5.5.370.0080.02716.67
5.5.360.0080.02716.67
5.5.350.0100.03116.61
5.5.340.0100.02716.95
5.5.330.0050.02616.86
5.5.320.0050.02616.74
5.5.310.0090.02316.68
5.5.300.0060.03116.75
5.5.290.0060.02816.91
5.5.280.0050.03016.85
5.5.270.0010.03116.79
5.5.260.0080.02616.86
5.5.250.0060.03816.70
5.5.240.0080.02816.55
5.5.230.0030.02516.55
5.5.220.0090.02816.53
5.5.210.0070.04216.59
5.5.200.0090.02416.29
5.5.190.0050.04716.59
5.5.180.0100.02116.57
5.5.170.0090.00915.60
5.5.160.0060.02316.59
5.5.150.0090.02916.44
5.5.140.0080.02316.69
5.5.130.0050.02716.31
5.5.120.0080.02616.47
5.5.110.0030.03016.53
5.5.100.0150.02816.41
5.5.90.0050.03016.46
5.5.80.0100.02316.41
5.5.70.0130.02316.57
5.5.60.0070.02416.52
5.5.50.0100.02816.21
5.5.40.0110.02316.51
5.5.30.0060.02716.38
5.5.20.0100.02516.33
5.5.10.0120.02316.40
5.5.00.0100.02316.48
5.4.450.0050.03616.10
5.4.440.0080.02216.05
5.4.430.0070.02316.08
5.4.420.0070.02216.10
5.4.410.0030.02816.03
5.4.400.0080.01815.81
5.4.390.0080.02415.78
5.4.380.0050.02115.77
5.4.370.0070.02315.94
5.4.360.0050.04015.86
5.4.350.0040.02715.77
5.4.340.0040.02415.85
5.4.330.0060.00612.63
5.4.320.0050.03215.93
5.4.310.0040.02815.78
5.4.300.0030.02815.80
5.4.290.0100.02015.88
5.4.280.0080.02415.75
5.4.270.0090.01815.80
5.4.260.0070.02415.71
5.4.250.0040.02515.88
5.4.240.0050.02615.81
5.4.230.0090.02115.86
5.4.220.0110.02016.01
5.4.210.0080.02415.85
5.4.200.0050.02615.89
5.4.190.0090.02215.86
5.4.180.0110.02015.76
5.4.170.0100.02115.67
5.4.160.0130.02115.84
5.4.150.0070.02315.81
5.4.140.0050.02014.63
5.4.130.0080.03514.65
5.4.120.0050.02514.58
5.4.110.0090.02014.66
5.4.100.0060.02614.65
5.4.90.0070.02114.69
5.4.80.0090.02114.68
5.4.70.0050.02314.69
5.4.60.0090.02214.62
5.4.50.0070.02114.52
5.4.40.0070.02114.68
5.4.30.0080.02214.62
5.4.20.0090.02114.56
5.4.10.0090.02114.62
5.4.00.0060.02214.26
5.3.290.0050.04414.09
5.3.280.0070.02613.81
5.3.270.0080.02313.86
5.3.260.0120.02814.07
5.3.250.0100.02114.03
5.3.240.0060.02414.01
5.3.230.0090.02314.05
5.3.220.0110.02014.03
5.3.210.0050.02314.03
5.3.200.0030.02413.97
5.3.190.0030.02514.06
5.3.180.0040.02414.06
5.3.170.0120.02314.08
5.3.160.0070.02414.08
5.3.150.0140.01914.11
5.3.140.0070.02214.12
5.3.130.0090.02214.05
5.3.120.0150.01713.96
5.3.110.0060.02414.08
5.3.100.0090.02214.03
5.3.90.0040.02614.05
5.3.80.0040.02614.03
5.3.70.0030.02713.69
5.3.60.0080.01914.12
5.3.50.0100.01614.05
5.3.40.0080.02313.97
5.3.30.0050.02213.98
5.3.20.0090.01914.02
5.3.10.0030.02113.90
5.3.00.0060.02213.92
5.2.170.0080.01913.56
5.2.160.0110.01413.57
5.2.150.0030.02013.58
5.2.140.0040.01813.53
5.2.130.0060.01813.60
5.2.120.0030.01913.63
5.2.110.0030.02313.60
5.2.100.0060.01913.55
5.2.90.0050.02013.54
5.2.80.0050.01713.53
5.2.70.0030.02013.54
5.2.60.0070.01513.53
5.2.50.0050.01713.53
5.2.40.0050.01913.53
5.2.30.0050.01713.53
5.2.20.0080.01713.53
5.2.10.0020.02313.53
5.2.00.0050.02113.53
5.1.60.0050.01413.53
5.1.50.0060.01413.53
5.1.40.0050.01713.53
5.1.30.0050.01713.53
5.1.20.0030.02013.53
5.1.10.0070.01213.53
5.1.00.0030.01913.53
5.0.50.0010.01613.53
5.0.40.0030.01613.53
5.0.30.0060.01413.53
5.0.20.0050.01213.53
5.0.10.0040.01213.53
5.0.00.0040.02813.53
4.4.90.0000.01113.53
4.4.80.0020.01013.53
4.4.70.0050.01713.53
4.4.60.0020.01113.53
4.4.50.0000.01113.53
4.4.40.0010.02213.53
4.4.30.0030.01013.53
4.4.20.0020.01013.53
4.4.10.0000.01313.53
4.4.00.0050.01213.53
4.3.110.0020.01013.53
4.3.100.0040.00913.53
4.3.90.0040.00713.53
4.3.80.0000.02713.53
4.3.70.0020.01113.53
4.3.60.0020.00913.53
4.3.50.0020.01013.53
4.3.40.0020.01413.53
4.3.30.0020.01313.53
4.3.20.0040.00813.53
4.3.10.0040.00813.53
4.3.00.0010.01013.53

preferences:
41.09 ms | 401 KiB | 5 Q