3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "\xc2\xa0"; var_dump($test); var_dump(mb_convert_encoding($test, 'UTF-7', 'UTF-8')); var_dump(mb_convert_encoding($test, 'UCS-2', 'UTF-8')); var_dump(mb_detect_encoding($test, ['UTF-7'])); var_dump(mb_detect_encoding($test));

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.0170.00318.71
8.3.30.0120.00319.02
8.3.20.0040.00420.19
8.3.10.0000.00823.52
8.3.00.0110.00018.88
8.2.170.0120.00322.96
8.2.160.0140.00020.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0100.00322.23
8.2.110.0040.00422.16
8.2.100.0080.00417.59
8.2.90.0030.00617.75
8.2.80.0080.00018.59
8.2.70.0000.00818.04
8.2.60.0060.00317.93
8.2.50.0070.00318.10
8.2.40.0050.00220.55
8.2.30.0070.00018.03
8.2.20.0050.00217.72
8.2.10.0040.00418.15
8.2.00.0040.00417.61
8.1.270.0080.00023.83
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00320.16
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0080.00017.35
8.1.190.0080.00017.22
8.1.180.0080.00018.10
8.1.170.0050.00318.65
8.1.160.0000.00722.09
8.1.150.0040.00418.88
8.1.140.0040.00417.45
8.1.130.0030.00317.82
8.1.120.0000.00717.37
8.1.110.0000.00717.48
8.1.100.0040.00417.47
8.1.90.0000.00717.48
8.1.80.0040.00417.41
8.1.70.0030.00317.43
8.1.60.0050.00317.64
8.1.50.0000.00817.42
8.1.40.0040.00417.52
8.1.30.0000.00817.55
8.1.20.0040.00417.55
8.1.10.0080.00017.39
8.1.00.0000.00817.46
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.44
8.0.270.0060.00317.29
8.0.260.0000.00817.17
8.0.250.0070.00016.99
8.0.240.0030.00316.92
8.0.230.0030.00316.93
8.0.220.0000.00716.91
8.0.210.0070.00016.89
8.0.200.0000.00916.96
8.0.190.0030.00316.85
8.0.180.0040.00416.79
8.0.170.0030.00516.84
8.0.160.0070.00016.91
8.0.150.0000.00816.84
8.0.140.0000.00816.71
8.0.130.0030.00313.27
8.0.120.0030.00516.86
8.0.110.0060.00316.86
8.0.100.0050.00316.88
8.0.90.0030.00516.86
8.0.80.0000.01816.80
8.0.70.0040.00416.91
8.0.60.0000.00816.95
8.0.50.0000.00816.90
8.0.30.0090.01317.10
8.0.20.0100.00817.40
8.0.10.0000.00816.79
8.0.00.0140.00516.66
7.4.330.0050.00015.09
7.4.320.0060.00016.61
7.4.300.0000.00816.49
7.4.290.0030.00316.48
7.4.280.0070.00016.52
7.4.270.0000.00716.61
7.4.260.0080.00016.48
7.4.250.0040.00416.37
7.4.240.0030.00416.56
7.4.230.0000.00816.32
7.4.220.0130.00716.54
7.4.210.0000.01316.45
7.4.200.0040.00416.57
7.4.160.0060.01616.37
7.4.150.0100.01017.40
7.4.140.0080.01017.86
7.4.130.0070.01016.48
7.4.120.0120.00516.45
7.4.110.0080.01616.47
7.4.100.0070.01116.46
7.4.90.0130.00716.58
7.4.80.0080.01419.39
7.4.70.0100.00616.55
7.4.60.0060.01416.37
7.4.50.0050.00316.53
7.4.40.0100.00616.28
7.4.30.0090.00616.39
7.4.00.0060.01015.05
7.3.330.0050.00013.06
7.3.320.0000.00613.20
7.3.310.0040.00416.16
7.3.300.0000.00616.05
7.3.290.0120.00416.18
7.3.280.0110.00616.15
7.3.270.0110.00617.40
7.3.260.0150.00316.32
7.3.250.0100.00716.23
7.3.240.0070.01016.21
7.3.230.0060.01016.52
7.3.210.0130.00616.25
7.3.200.0140.00719.39
7.3.190.0090.00616.28
7.3.180.0030.01216.43
7.3.170.0040.01716.38
7.3.160.0120.00616.09
7.3.120.0140.00014.54
7.3.110.0130.00014.86
7.3.100.0090.00314.90
7.3.90.0100.00314.55
7.3.80.0030.01014.39
7.3.70.0050.00814.82
7.3.60.0130.00314.80
7.3.50.0020.01114.38
7.3.40.0000.01414.54
7.3.30.0100.00714.73
7.3.20.0080.00416.40
7.3.10.0080.00616.24
7.3.00.0130.00716.60
7.2.330.0070.01016.42
7.2.320.0090.00916.41
7.2.310.0140.00316.54
7.2.300.0070.01016.40
7.2.290.0090.01416.48
7.2.250.0050.00915.02
7.2.240.0100.00714.96
7.2.230.0000.01414.82
7.2.220.0100.00314.95
7.2.210.0000.01114.60
7.2.200.0040.01114.76
7.2.190.0030.00614.89
7.2.180.0000.01214.89
7.2.170.0080.01214.89
7.2.130.0110.00316.49
7.2.120.0040.00816.67
7.2.110.0070.00716.60
7.2.100.0000.01316.46
7.2.90.0100.00616.70
7.2.80.0080.00616.82
7.2.70.0030.01016.83
7.2.60.0030.01016.82
7.2.50.0100.00716.77
7.2.40.0070.00716.90
7.2.30.0030.00916.47
7.2.20.0070.00716.64
7.2.10.0060.00616.69
7.2.00.0020.01017.84
7.1.330.0130.00715.86
7.1.320.0170.00315.70
7.1.310.0230.00415.84
7.1.300.0070.01115.73
7.1.290.0000.00915.66
7.1.280.0150.00015.77
7.1.270.0030.01015.49
7.1.260.0100.00315.91
7.1.250.0040.00415.77
7.1.240.0090.00615.73
7.1.230.0040.00715.59
7.1.220.0050.00515.73
7.1.210.0100.00315.80
7.1.200.0060.00915.90
7.1.190.0060.00615.66
7.1.180.0100.00315.85
7.1.170.0030.01015.41
7.1.160.0070.00715.75
7.1.150.0060.00315.76
7.1.140.0040.01115.78
7.1.130.0000.01115.50
7.1.120.0030.00915.83
7.1.110.0050.00515.84
7.1.100.0050.00816.63
7.1.90.0040.01115.84
7.1.80.0070.00715.65
7.1.70.0410.00815.42
7.1.60.0080.01017.48
7.1.50.0070.01316.38
7.1.40.0080.00315.40
7.1.30.0130.00015.80
7.1.20.0000.01015.68
7.1.10.0000.01515.91
7.1.00.0070.03819.04
7.0.330.0080.00015.33
7.0.320.0040.00414.87
7.0.310.0040.00815.24
7.0.300.0030.01315.11
7.0.290.0070.00315.04
7.0.280.0090.00315.40
7.0.270.0100.00715.36
7.0.260.0040.00815.61
7.0.250.0070.00315.31
7.0.240.0100.00315.49
7.0.230.0090.00015.30
7.0.220.0000.00915.43
7.0.210.0030.01015.11
7.0.200.0080.00516.11
7.0.190.0040.00415.48
7.0.180.0070.00715.46
7.0.170.0030.01015.34
7.0.160.0100.00315.41
7.0.150.0000.01315.31
7.0.140.0080.03718.76
7.0.130.0070.01015.57
7.0.120.0080.00615.34
7.0.110.0030.01015.46
7.0.100.0060.00615.43
7.0.90.0080.00415.54
7.0.80.0090.00315.40
7.0.70.0060.00315.56
7.0.60.0080.03517.60
7.0.50.0050.04016.68
7.0.40.0070.03516.64
7.0.30.0180.04216.81
7.0.20.0140.02716.63
7.0.10.0030.02716.83
7.0.00.0090.04016.95
5.6.380.0060.00614.14
5.6.370.0120.00613.97
5.6.360.0100.00614.34
5.6.350.0070.00714.53
5.6.340.0100.00314.18
5.6.330.0070.00414.32
5.6.320.0000.01814.29
5.6.310.0030.00914.46
5.6.300.0040.00713.81
5.6.290.0110.00014.11
5.6.280.0050.04017.50
5.6.270.0000.01614.63
5.6.260.0000.00914.07
5.6.250.0040.01213.94
5.6.240.0090.00314.40
5.6.230.0040.01114.16
5.6.220.0030.00713.91
5.6.210.0030.04917.25
5.6.200.0030.02516.21
5.6.190.0080.04317.35
5.6.180.0290.03417.20
5.6.170.0120.05017.34
5.6.160.0100.04017.50
5.6.150.0050.04816.16
5.6.140.0050.03116.12
5.6.130.0070.04316.08
5.6.120.0080.03117.61
5.6.110.0100.04017.52
5.6.100.0080.04217.54
5.6.90.0020.02717.68
5.6.80.0130.04017.17
5.6.70.0030.01013.93
5.6.60.0090.00614.43
5.6.50.0060.01014.49
5.6.40.0000.01614.45
5.6.30.0030.01114.29
5.6.20.0080.00313.98
5.6.10.0070.00314.09
5.6.00.0060.01014.16
5.5.380.0090.00310.64
5.5.370.0030.00310.84
5.5.360.0080.00310.89
5.5.350.0110.03115.60
5.5.340.0030.03314.39
5.5.330.0070.02815.66
5.5.320.0190.03215.75
5.5.310.0170.03515.45
5.5.300.0100.01814.38
5.5.290.0030.02314.65
5.5.280.0100.02215.94
5.5.270.0070.02915.63
5.5.260.0030.04615.67
5.5.250.0060.03415.75
5.5.240.0150.03015.66
5.5.230.0030.00310.58
5.5.220.0040.00410.71
5.5.210.0060.00610.81
5.5.200.0030.00811.07
5.5.190.0070.00310.89
5.5.180.0050.00510.79
5.5.170.0040.00711.10
5.5.160.0070.00010.69
5.5.150.0060.00310.96
5.5.140.0060.00611.20
5.5.130.0030.00911.05
5.5.120.0100.00011.09
5.5.110.0000.00810.82
5.5.100.0030.00711.18
5.5.90.0000.00610.97
5.5.80.0050.00311.20
5.5.70.0030.01010.80
5.5.60.0050.00510.94
5.5.50.0080.00411.14
5.5.40.0000.00610.91
5.5.30.0070.00411.00
5.5.20.0060.00011.02
5.5.10.0030.00910.81
5.5.00.0040.00710.94
5.4.450.0500.01815.06
5.4.440.0410.02115.10
5.4.430.0670.02615.36
5.4.420.0360.00215.33
5.4.410.0350.00115.18
5.4.400.0360.00115.07
5.4.390.0320.00314.99
5.4.380.0320.00414.82
5.4.370.0310.00315.01
5.4.360.0300.00414.79
5.4.350.0330.00114.95
5.4.340.0060.01911.34
5.4.330.0030.00610.53
5.4.320.0060.01911.57
5.4.310.0060.02311.45
5.4.300.0070.02511.69
5.4.290.0070.03811.66
5.4.280.0070.02511.66
5.4.270.0080.02311.62
5.4.260.0060.02711.46
5.4.250.0090.02811.54
5.4.240.0070.02611.47
5.4.230.0090.02411.53
5.4.220.0110.03111.46
5.4.210.0070.02611.58
5.4.200.0060.02711.64
5.4.190.0060.02411.58
5.4.180.0100.02611.54
5.4.170.0090.02011.56
5.4.160.0030.02211.39
5.4.150.0040.02711.58
5.4.140.0030.02811.55
5.4.130.0090.01811.47
5.4.120.0050.02011.34
5.4.110.0070.02111.42
5.4.100.0070.01911.44
5.4.90.0020.02611.48
5.4.80.0080.01911.40
5.4.70.0050.02111.43
5.4.60.0070.01811.47
5.4.50.0080.01911.31
5.4.40.0080.01711.41
5.4.30.0050.02011.37
5.4.20.0040.02311.23
5.4.10.0040.02211.30
5.4.00.0050.02211.10
5.3.290.0050.02411.53
5.3.280.0060.02111.32
5.3.270.0050.02411.41
5.3.260.0050.02311.36
5.3.250.0060.01911.49
5.3.240.0060.02011.30
5.3.230.0040.02311.38
5.3.220.0070.02011.44
5.3.210.0050.02211.44
5.3.200.0030.02311.44
5.3.190.0020.02611.39
5.3.180.0060.02011.48
5.3.170.0060.02911.42
5.3.160.0030.02911.49
5.3.150.0050.02311.49
5.3.140.0050.02211.45
5.3.130.0080.02111.49
5.3.120.0050.02611.44
5.3.110.0050.03011.44
5.3.100.0040.02111.19
5.3.90.0040.02111.23
5.3.80.0060.02311.04
5.3.70.0110.02511.11
5.3.60.0050.02511.05
5.3.50.0050.02211.09
5.3.40.0080.02411.07
5.3.30.0080.02711.09
5.3.20.0070.02510.98
5.3.10.0040.02210.70
5.3.00.0030.02210.78
5.2.170.0050.0189.23
5.2.160.0040.0189.23
5.2.150.0050.0189.23
5.2.140.0040.0189.23
5.2.130.0020.0209.21
5.2.120.0050.0149.21
5.2.110.0090.0149.21
5.2.100.0060.0169.21
5.2.90.0040.0189.21
5.2.80.0020.0229.21
5.2.70.0050.0239.21
5.2.60.0070.0219.18
5.2.50.0080.0169.16
5.2.40.0090.0159.15
5.2.30.0030.0239.14
5.2.20.0040.0199.14
5.2.10.0030.0189.10
5.2.00.0030.0179.03
5.1.60.0030.0148.67
5.1.50.0050.0138.67
5.1.40.0050.0148.66
5.1.30.0060.0148.84
5.1.20.0050.0138.85
5.1.10.0040.0158.71
5.1.00.0050.0168.71
5.0.50.0020.0127.95
5.0.40.0030.0127.88
5.0.30.0040.0217.78
5.0.20.0030.0177.77
5.0.10.0020.0177.76
5.0.00.0040.0207.76
4.4.90.0020.0137.03
4.4.80.0020.0127.01
4.4.70.0020.0127.01
4.4.60.0020.0107.01
4.4.50.0030.0097.02
4.4.40.0030.0166.99
4.4.30.0030.0127.02
4.4.20.0050.0097.06
4.4.10.0030.0097.06
4.4.00.0020.0177.02
4.3.110.0020.0106.97
4.3.100.0020.0116.97
4.3.90.0030.0086.96
4.3.80.0020.0146.93
4.3.70.0030.0076.95
4.3.60.0030.0086.95
4.3.50.0020.0096.95
4.3.40.0020.0156.91
4.3.30.0030.0106.28
4.3.20.0020.0096.27
4.3.10.0040.0086.25
4.3.00.0130.0188.88

preferences:
51.88 ms | 400 KiB | 5 Q