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"?\u003eText~~~\u003c?dpf /sent ?\u003e'; echo decode($response, 'ISO 8859-1'); ?>

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.40.0090.00918.84
8.3.30.0090.00919.09
8.3.20.0070.00020.35
8.3.10.0040.00423.64
8.3.00.0050.00319.38
8.2.170.0070.00722.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0090.00020.37
8.2.100.0120.00018.03
8.2.90.0080.00419.08
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0050.00518.07
8.2.40.0030.00518.02
8.2.30.0000.00718.09
8.2.20.0000.00717.63
8.2.10.0000.00718.07
8.2.00.0040.00417.68
8.1.270.0080.00023.87
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.75
8.1.230.0070.00419.04
8.1.220.0080.00017.78
8.1.210.0050.00318.77
8.1.200.0070.00417.23
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00718.61
8.1.160.0040.00421.84
8.1.150.0040.00418.74
8.1.140.0040.00417.35
8.1.130.0050.00317.75
8.1.120.0070.00017.41
8.1.110.0000.00717.46
8.1.100.0000.00817.41
8.1.90.0000.00717.30
8.1.80.0030.00417.30
8.1.70.0000.00717.37
8.1.60.0060.00317.57
8.1.50.0040.00417.55
8.1.40.0030.00617.58
8.1.30.0030.00617.61
8.1.20.0030.00617.66
8.1.10.0050.00217.41
8.1.00.0040.00417.34
8.0.300.0060.00318.77
8.0.290.0070.00016.88
8.0.280.0030.00418.34
8.0.270.0040.00417.21
8.0.260.0030.00317.22
8.0.250.0030.00317.03
8.0.240.0030.00316.93
8.0.230.0070.00016.97
8.0.220.0070.00016.90
8.0.210.0000.00816.77
8.0.200.0000.00716.98
8.0.190.0080.00017.02
8.0.180.0040.00416.90
8.0.170.0000.00816.82
8.0.160.0050.00216.91
8.0.150.0030.00516.73
8.0.140.0050.00516.84
8.0.130.0000.00513.25
8.0.120.0030.00617.01
8.0.110.0000.00916.93
8.0.100.0030.00516.79
8.0.90.0000.00817.01
8.0.80.0030.01416.91
8.0.70.0000.00916.96
8.0.60.0000.00916.94
8.0.50.0060.00317.05
8.0.30.0120.01217.18
8.0.20.0090.01617.40
8.0.10.0030.00617.04
8.0.00.0130.00716.86
7.4.330.0060.00015.20
7.4.320.0040.00416.47
7.4.300.0030.00316.58
7.4.290.0030.00316.45
7.4.280.0040.00416.61
7.4.270.0040.00416.43
7.4.260.0000.00716.43
7.4.250.0030.00616.64
7.4.240.0020.00616.70
7.4.230.0040.00416.79
7.4.220.0070.01316.72
7.4.210.0030.01416.70
7.4.200.0060.00316.69
7.4.160.0130.00516.74
7.4.150.0120.00917.40
7.4.140.0120.00817.86
7.4.130.0110.00916.83
7.4.120.0120.00916.65
7.4.110.0060.01516.68
7.4.100.0100.01616.60
7.4.90.0130.00616.60
7.4.80.0090.00919.39
7.4.70.0130.01316.38
7.4.60.0140.00616.39
7.4.50.0060.00716.63
7.4.40.0130.00816.71
7.4.30.0090.01216.43
7.4.20.0130.00616.55
7.4.10.0100.01016.59
7.4.00.0070.01215.55
7.3.330.0000.00813.31
7.3.320.0000.00813.37
7.3.310.0030.00616.21
7.3.300.0000.00816.39
7.3.290.0060.01516.36
7.3.280.0100.00916.37
7.3.270.0100.01417.40
7.3.260.0100.01616.44
7.3.250.0130.00816.57
7.3.240.0150.00516.48
7.3.230.0090.00916.58
7.3.210.0130.00716.63
7.3.200.0100.00716.73
7.3.190.0120.01116.65
7.3.180.0090.01016.54
7.3.170.0090.01016.33
7.3.160.0070.01316.26
7.3.150.0110.00816.23
7.3.140.0160.00316.41
7.3.130.0040.01616.46
7.3.120.0090.00915.63
7.3.110.0080.00915.61
7.3.100.0140.00715.58
7.3.90.0050.01215.70
7.3.80.0070.00915.72
7.3.70.0050.01115.55
7.3.60.0100.00815.51
7.3.50.0050.01015.65
7.3.40.0080.00915.53
7.3.30.0100.00915.51
7.3.20.0070.00716.72
7.3.10.0090.00916.66
7.3.00.1230.01216.42
7.2.330.0040.01516.87
7.2.320.0070.01816.68
7.2.310.0100.00916.58
7.2.300.0080.01116.62
7.2.290.0110.01316.70
7.2.280.0030.01616.40
7.2.270.0100.01016.65
7.2.260.0120.01516.54
7.2.250.0070.01215.78
7.2.240.0090.01216.01
7.2.230.0100.01015.90
7.2.220.0060.01115.81
7.2.210.0060.01215.82
7.2.200.0070.01115.82
7.2.190.0120.00615.74
7.2.180.0040.01315.75
7.2.170.0000.01815.87
7.2.160.0080.01316.55
7.2.150.0100.01416.70
7.2.140.0110.01116.57
7.2.130.0160.00816.62
7.2.120.0140.01516.63
7.2.110.0150.00916.61
7.2.100.0060.01516.57
7.2.90.0150.00416.66
7.2.80.0120.00616.30
7.2.70.0060.01316.64
7.2.60.0090.01016.63
7.2.50.0120.00916.61
7.2.40.0080.01316.70
7.2.30.0180.00316.52
7.2.20.0100.01716.55
7.2.10.0090.01816.61
7.2.00.0120.00917.98
7.1.330.0190.00815.80
7.1.320.0100.01415.91
7.1.310.0780.00915.78
7.1.300.0090.01115.70
7.1.290.0090.01215.91
7.1.280.0150.01015.75
7.1.270.0130.01015.80
7.1.260.0110.00915.82
7.1.250.0150.01515.73
7.1.240.0260.00715.65
7.1.230.0240.00715.55
7.1.220.0280.00715.65
7.1.210.0210.00915.71
7.1.200.0210.00815.85
7.1.190.0200.00815.79
7.1.180.0240.00415.65
7.1.170.0190.01215.77
7.1.160.0180.01115.81
7.1.150.0210.01115.79
7.1.140.0200.01215.52
7.1.130.0270.00415.61
7.1.120.0270.00415.82
7.1.110.0180.01115.65
7.1.100.0120.01117.17
7.1.90.0170.01015.73
7.1.80.0250.01217.39
7.1.70.0140.00717.42
7.1.60.0210.00618.56
7.1.50.0150.01217.40
7.1.40.0230.01317.56
7.1.30.0190.00917.48
7.1.20.0200.00817.57
7.1.10.0110.02017.70
7.1.00.0130.04220.03
7.0.330.0240.00515.59
7.0.320.0150.01215.34
7.0.310.0250.00515.24
7.0.300.0160.01215.39
7.0.290.0220.00815.49
7.0.280.0150.01915.47
7.0.270.0110.01715.47
7.0.260.0150.01415.33
7.0.250.0180.00915.30
7.0.240.0220.00515.38
7.0.230.0700.01117.32
7.0.220.0200.01317.25
7.0.210.0230.00517.22
7.0.200.0100.01017.06
7.0.190.0210.00717.17
7.0.180.0240.00817.43
7.0.170.0200.01017.40
7.0.160.0190.00917.40
7.0.150.0220.00717.25
7.0.140.0110.04019.71
7.0.130.0240.00617.41
7.0.120.0140.01417.39
7.0.110.0290.00017.39
7.0.100.0120.01517.25
7.0.90.0200.01017.06
7.0.80.0200.00717.15
7.0.70.0190.00817.35
7.0.60.0080.03018.55
7.0.50.0110.02717.60
7.0.40.0100.02618.79
7.0.30.0260.02418.68
7.0.20.0210.04518.71
7.0.10.0130.04218.72
7.0.00.0170.04618.68
5.6.400.0190.01216.18
5.6.390.0160.01716.06
5.6.380.0180.01116.21
5.6.370.0140.01416.38
5.6.360.0180.01216.17
5.6.350.0180.01216.21
5.6.340.0240.01515.73
5.6.330.0150.02315.92
5.6.320.0160.01216.25
5.6.310.0190.01316.11
5.6.300.0240.01516.23
5.6.290.0110.01916.29
5.6.280.0110.04318.80
5.6.270.0170.01415.80
5.6.260.0160.01716.03
5.6.250.0130.01716.17
5.6.240.0240.00716.02
5.6.230.0180.01116.09
5.6.220.0140.01415.92
5.6.210.0140.02618.33
5.6.200.0110.04317.19
5.6.190.0200.04218.40
5.6.180.2090.03118.43
5.6.170.0170.02818.44
5.6.160.0110.03118.18
5.6.150.0130.03117.18
5.6.140.0130.04017.15
5.6.130.0150.04817.24
5.6.120.0150.04418.65
5.6.110.0130.02818.46
5.6.100.0100.05118.57
5.6.90.0140.04918.56
5.6.80.0120.04818.27
5.6.70.0160.04418.23
5.6.60.0210.00915.95
5.6.50.0140.01416.19
5.6.40.0160.01615.70
5.6.30.0160.01315.96
5.6.20.0240.01016.05
5.6.10.0220.01115.78
5.6.00.0240.00716.06
5.5.380.0120.01815.98
5.5.370.0180.01115.97
5.5.360.0160.01316.13
5.5.350.0170.04918.14
5.5.340.0150.03517.14
5.5.330.0150.04618.35
5.5.320.0290.02818.25
5.5.310.0220.03318.17
5.5.300.0130.04517.18
5.5.290.0210.02217.08
5.5.280.0120.04918.47
5.5.270.0160.03418.38
5.5.260.0120.02718.56
5.5.250.0150.02818.48
5.5.240.0180.04518.16
5.5.230.0140.01515.98
5.5.220.0130.01616.00
5.5.210.0170.01115.84
5.5.200.0180.01815.61
5.5.190.0170.01415.92
5.5.180.0170.01215.93
5.5.170.0250.00615.86
5.5.160.0230.00715.84
5.5.150.0160.01615.95
5.5.140.0240.01616.02
5.5.130.0180.01815.96
5.5.120.0180.01515.90
5.5.110.0140.01716.05
5.5.100.0280.00415.70
5.5.90.0220.00915.62
5.5.80.0160.01615.70
5.5.70.0160.01316.07
5.5.60.0140.01515.88
5.5.50.0220.01015.77
5.5.40.0200.01016.06
5.5.30.0220.00815.82
5.5.20.0190.01015.88
5.5.10.0230.01015.85
5.5.00.0190.01115.79
5.4.450.0150.02516.08
5.4.440.0190.01816.05
5.4.430.0160.02816.22
5.4.420.0370.02816.15
5.4.410.0350.02416.21
5.4.400.0270.02515.98
5.4.390.0200.02316.07
5.4.380.0580.03415.70
5.4.370.0590.02615.81
5.4.360.0750.03515.77
5.4.350.0570.03415.78
5.4.340.0540.03515.72
5.4.330.0140.01112.72
5.4.320.0100.02412.62
5.4.310.0130.02212.57
5.4.300.0150.02112.71
5.4.290.0100.02612.60
5.4.280.0120.02312.62
5.4.270.0100.02512.60
5.4.260.0060.02712.60
5.4.250.0100.02212.53
5.4.240.0090.02512.54
5.4.230.0130.02112.60
5.4.220.0090.02412.56
5.4.210.0100.02212.57
5.4.200.0120.02512.65
5.4.190.0090.02512.68
5.4.180.0110.02412.63
5.4.170.0140.02212.67
5.4.160.0140.02112.68
5.4.150.0140.02212.58
5.4.140.0110.02612.42
5.4.130.0120.02112.44
5.4.120.0130.02212.43
5.4.110.0130.02112.46
5.4.100.0120.02312.40
5.4.90.0130.02212.51
5.4.80.0110.02512.38
5.4.70.0070.02512.50
5.4.60.0110.02112.46
5.4.50.0110.01912.38
5.4.40.0070.02512.37
5.4.30.0060.02412.47
5.4.20.0140.01912.36
5.4.10.0080.02312.47
5.4.00.0100.02112.10
5.3.290.0120.02513.17
5.3.280.0110.02513.06
5.3.270.0130.02613.00
5.3.260.0120.03313.10
5.3.250.0140.02813.00
5.3.240.0120.02612.96
5.3.230.0090.02713.07
5.3.220.0150.02312.88
5.3.210.0140.02312.96
5.3.200.0090.02812.96
5.3.190.0120.02412.98
5.3.180.0100.03113.05
5.3.170.0120.02313.00
5.3.160.0110.02713.07
5.3.150.0120.02213.06
5.3.140.0080.02613.08
5.3.130.0120.02513.03
5.3.120.0090.02613.04
5.3.110.0100.02512.99
5.3.100.0120.02212.81
5.3.90.0090.02612.82
5.3.80.0140.02012.81
5.3.70.0130.02412.68
5.3.60.0080.02412.71
5.3.50.0070.02812.64
5.3.40.0100.02312.77
5.3.30.0080.02812.71
5.3.20.0120.02112.63
5.3.10.0110.02612.52
5.3.00.0100.02512.39
5.2.170.0100.02010.81
5.2.160.0030.02510.89
5.2.150.0120.01510.89
5.2.140.0050.02410.84
5.2.130.0060.02110.71
5.2.120.0090.01810.83
5.2.110.0080.02010.82
5.2.100.0110.01910.77
5.2.90.0100.01910.75
5.2.80.0090.02210.69
5.2.70.0100.02310.74
5.2.60.0050.02910.80
5.2.50.0100.02510.81
5.2.40.0120.01910.65
5.2.30.0140.01510.63
5.2.20.0080.02210.60
5.2.10.0080.01810.56
5.2.00.0060.02210.45
5.1.60.0090.01410.08
5.1.50.0070.01810.08
5.1.40.0060.01810.07
5.1.30.0090.01510.25
5.1.20.0100.01610.26
5.1.10.0110.02010.12
5.1.00.0120.02210.12
5.0.50.0060.0159.36
5.0.40.0090.0129.29
5.0.30.0060.0219.20
5.0.20.0060.0149.18
5.0.10.0080.0129.17
5.0.00.0050.0219.17
4.4.90.0070.0088.34
4.4.80.0070.0078.33
4.4.70.0060.0098.33
4.4.60.0020.0128.33
4.4.50.0060.0098.34
4.4.40.0070.0128.31
4.4.30.0050.0088.33
4.4.20.0050.0098.37
4.4.10.0040.0108.38
4.4.00.0050.0158.33
4.3.110.0040.0118.29
4.3.100.0050.0098.28
4.3.90.0030.0118.27
4.3.80.0020.0168.24
4.3.70.0050.0078.27
4.3.60.0020.0118.26
4.3.50.0030.0108.26
4.3.40.0050.0128.22
4.3.30.0020.0117.61
4.3.20.0020.0117.59
4.3.10.0010.0117.58
4.3.00.0030.01113.77

preferences:
47.53 ms | 400 KiB | 5 Q