3v4l.org

run code in 300+ PHP versions simultaneously
<?php class utils { public static function replace_unicode_escape_sequence($str) { return preg_replace_callback('/\\\\u([0-9a-f]{4})/i', function ($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); }, $str); } } $str = '{"name":"F\u00f6retag: Betalning"}'; echo utils::to_decode($str);

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.0140.00416.63
8.3.50.0100.00721.93
8.3.40.0180.00318.60
8.3.30.0090.00619.19
8.3.20.0040.00420.37
8.3.10.0090.00023.59
8.3.00.0000.00820.91
8.2.180.0080.00816.60
8.2.170.0140.00422.96
8.2.160.0030.01020.43
8.2.150.0050.00224.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.43
8.2.110.0030.00620.45
8.2.100.0080.00317.84
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00917.80
8.2.50.0030.00618.07
8.2.40.0040.00419.75
8.2.30.0060.00318.19
8.2.20.0040.00417.67
8.2.10.0040.00418.07
8.2.00.0070.00317.71
8.1.280.0080.00825.92
8.1.270.0090.00023.70
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00323.72
8.1.230.0120.00020.89
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.25
8.1.190.0040.00417.10
8.1.180.0040.00418.88
8.1.170.0000.00818.46
8.1.160.0080.00021.99
8.1.150.0000.00818.50
8.1.140.0040.00417.35
8.1.130.0000.00717.82
8.1.120.0070.00017.40
8.1.110.0040.00417.38
8.1.100.0040.00417.30
8.1.90.0070.00017.45
8.1.80.0060.00317.38
8.1.70.0000.00717.31
8.1.60.0060.00317.52
8.1.50.0050.00317.45
8.1.40.0000.01217.45
8.1.30.0040.00417.71
8.1.20.0000.00817.62
8.1.10.0040.00417.48
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0050.00317.05
8.0.280.0040.00418.39
8.0.270.0030.00317.07
8.0.260.0070.00017.07
8.0.250.0000.00716.84
8.0.240.0030.00316.96
8.0.230.0070.00016.93
8.0.220.0070.00016.77
8.0.210.0070.00016.83
8.0.200.0070.00016.95
8.0.190.0030.00516.89
8.0.180.0040.00416.95
8.0.170.0070.00016.82
8.0.160.0040.00316.77
8.0.150.0070.00016.82
8.0.140.0000.00816.90
8.0.130.0030.00313.29
8.0.120.0040.00416.75
8.0.110.0050.00216.78
8.0.100.0030.00516.86
8.0.90.0000.00716.79
8.0.80.0090.00616.91
8.0.70.0070.00016.79
8.0.60.0070.00016.89
8.0.50.0030.00516.68
8.0.30.0110.00816.89
8.0.20.0100.01117.40
8.0.10.0040.00417.01
8.0.00.0090.00816.83
7.4.330.0020.00215.00
7.4.320.0000.00716.54
7.4.300.0000.00616.62
7.4.290.0080.00316.59
7.4.280.0050.00316.50
7.4.270.0000.00716.37
7.4.260.0030.00316.56
7.4.250.0050.00316.62
7.4.240.0030.00316.60
7.4.230.0000.00716.72
7.4.220.0090.00916.59
7.4.210.0090.00716.65
7.4.200.0000.00716.45
7.4.190.0040.00416.61
7.4.160.0180.00416.39
7.4.150.0030.01617.40
7.4.140.0100.00717.86
7.4.130.0130.00816.67
7.4.120.0090.01216.45
7.4.110.0000.01716.46
7.4.100.0120.00616.59
7.4.90.0030.01316.33
7.4.80.0140.00719.39
7.4.70.0050.01116.42
7.4.60.0060.01316.45
7.4.50.0050.00016.27
7.4.40.0030.01316.50
7.4.30.0100.00616.36
7.4.00.0070.00914.89
7.3.330.0000.00513.16
7.3.320.0000.00513.38
7.3.310.0000.00716.29
7.3.300.0030.00316.30
7.3.290.0090.00916.29
7.3.280.0100.01016.35
7.3.270.0120.00617.40
7.3.260.0100.00616.31
7.3.250.0120.00816.36
7.3.240.0080.00816.27
7.3.230.0070.01016.55
7.3.210.0130.00316.23
7.3.200.0080.00819.39
7.3.190.0140.00316.32
7.3.180.0030.01216.29
7.3.170.0060.00916.36
7.3.160.0150.00616.27
7.3.120.0070.01014.80
7.3.110.0070.01115.09
7.3.100.0030.00914.68
7.3.90.0030.01314.89
7.3.80.0030.01014.61
7.3.70.0100.00314.68
7.3.60.0070.00414.66
7.3.50.0100.00714.80
7.3.40.0070.00714.78
7.3.30.0030.01014.84
7.3.20.0040.01116.40
7.3.10.0040.01116.60
7.3.00.0000.01316.53
7.2.330.0140.00316.61
7.2.320.0160.00716.55
7.2.310.0100.00716.35
7.2.300.0080.00816.68
7.2.290.0090.01216.24
7.2.250.0060.01014.99
7.2.240.0080.01114.80
7.2.230.0090.00614.75
7.2.220.0000.01414.83
7.2.210.0090.00614.99
7.2.200.0050.01014.79
7.2.190.0060.00914.66
7.2.180.0000.01214.80
7.2.170.0040.01214.91
7.2.60.0000.01316.81
7.2.00.0070.00319.21
7.1.330.0060.00915.43
7.1.320.0000.00915.76
7.1.310.0000.01715.42
7.1.300.0030.01015.65
7.1.290.0000.01415.53
7.1.280.0000.01415.39
7.1.270.0070.00315.68
7.1.260.0110.00415.66
7.1.200.0060.00915.56
7.1.100.0090.00915.90
7.1.70.0090.00617.07
7.1.60.0100.01319.46
7.1.50.0130.01316.84
7.1.00.0030.07322.45
7.0.200.0000.00916.57
7.0.140.0070.07022.21
7.0.100.0000.04021.70
7.0.90.0000.05021.80
7.0.80.0030.05321.70
7.0.70.0000.04021.72
7.0.60.0000.04321.69
7.0.50.0070.06722.15
7.0.40.0000.04020.09
7.0.30.0070.08020.05
7.0.20.0000.06320.20
7.0.10.0030.05720.07
7.0.00.0030.04019.99
5.6.280.0000.09321.13
5.6.250.0030.04020.79
5.6.240.0000.04320.70
5.6.230.0000.04020.57
5.6.220.0000.04020.69
5.6.210.0070.03320.46
5.6.200.0030.04321.18
5.6.190.0030.04021.04
5.6.180.0000.04021.14
5.6.170.0000.04321.06
5.6.160.0070.04020.97
5.6.150.0030.05321.06
5.6.140.0030.08021.11
5.6.130.0030.04721.11
5.6.120.0070.09321.02
5.6.110.0030.05721.11
5.6.100.0030.04021.00
5.6.90.0070.03721.04
5.6.80.0000.04020.51
5.6.70.0030.03720.41
5.6.60.0100.03320.42
5.6.50.0000.04020.51
5.6.40.0070.03320.47
5.6.30.0000.03720.40
5.6.20.0030.03720.32
5.6.10.0100.03020.32
5.6.00.0030.03720.41
5.5.380.0000.04020.43
5.5.370.0000.04020.38
5.5.360.0030.04020.51
5.5.350.0030.04020.49
5.5.340.0030.04020.88
5.5.330.0030.07020.88
5.5.320.0130.03320.93
5.5.310.0100.03320.84
5.5.300.0000.06020.89
5.5.290.0030.07320.81
5.5.280.0070.05020.62
5.5.270.0000.04320.73
5.5.260.0030.06320.84
5.5.250.0070.07020.62
5.5.240.0000.06020.23
5.5.230.0000.04020.30
5.5.220.0030.03320.28
5.5.210.0030.03720.03
5.5.200.0000.06320.25
5.5.190.0030.05320.13
5.5.180.0000.05720.20
5.5.160.0000.08020.23
5.5.150.0100.02720.27
5.5.140.0000.04020.09
5.5.130.0070.05720.09
5.5.120.0000.04020.15
5.5.110.0000.04020.22
5.5.100.0100.08020.08
5.5.90.0000.04320.16
5.5.80.0000.07719.95
5.5.70.0000.04720.13
5.5.60.0000.06020.16
5.5.50.0030.03320.07
5.5.40.0000.03720.16
5.5.30.0030.04020.06
5.5.20.0100.06320.20
5.5.10.0030.06720.03
5.5.00.0100.03019.96
5.4.450.0030.05019.38
5.4.440.0000.07319.38
5.4.430.0000.04019.51
5.4.420.0000.03719.58
5.4.410.0000.04019.36
5.4.400.0030.03319.05
5.4.390.0030.03719.16
5.4.380.0070.06319.14
5.4.370.0000.05019.05
5.4.360.0030.03719.05
5.4.350.0030.04718.91
5.4.340.0030.03718.90
5.4.320.0000.04019.09
5.4.310.0000.03719.23
5.4.300.0030.03719.04
5.4.290.0030.08019.16
5.4.280.0030.04018.88
5.4.270.0000.03719.04
5.4.260.0100.05719.07
5.4.250.0000.04719.18
5.4.240.0100.02718.95
5.4.230.0070.06319.03
5.4.220.0000.05019.13
5.4.210.0000.04719.13
5.4.200.0000.05019.18
5.4.190.0000.06319.04
5.4.180.0070.06718.84
5.4.170.0000.05718.87
5.4.160.0000.03719.19
5.4.150.0000.04019.22
5.4.140.0000.03716.42
5.4.130.0030.05316.40
5.4.120.0030.03316.41
5.4.110.0030.03316.54
5.4.100.0070.02716.33
5.4.90.0070.05716.54
5.4.80.0030.03316.53
5.4.70.0030.03716.53
5.4.60.0000.03716.37
5.4.50.0000.03316.25
5.4.40.0030.04316.50
5.4.30.0000.05016.31
5.4.20.0000.04016.41
5.4.10.0070.05016.54
5.4.00.0000.03715.80
5.3.290.0000.03714.64
5.3.280.0030.04314.65
5.3.270.0070.05714.59
5.3.260.0070.06314.68
5.3.250.0030.04314.54
5.3.240.0000.03714.59
5.3.230.0000.03714.59
5.3.220.0000.03714.66
5.3.210.0000.03714.59
5.3.200.0000.03714.63
5.3.190.0000.04314.55
5.3.180.0000.07014.49
5.3.170.0030.06714.52
5.3.160.0030.07314.52
5.3.150.0000.04714.55
5.3.140.0070.05714.65
5.3.130.0000.04314.64
5.3.120.0000.03714.56
5.3.110.0030.07014.60
5.3.100.0000.03314.12
5.3.90.0030.03713.95
5.3.80.0000.06013.95
5.3.70.0000.04014.06
5.3.60.0030.07013.93
5.3.50.0000.03314.06
5.3.40.0030.06313.97
5.3.30.0070.03013.95
5.3.20.0000.04313.63
5.3.10.0000.08013.59
5.3.00.0030.03313.62
5.2.170.0000.02711.17
5.2.160.0030.02311.23
5.2.150.0000.04011.21
5.2.140.0030.02711.20
5.2.130.0000.05311.02
5.2.120.0030.05010.96
5.2.110.0000.03311.16
5.2.100.0070.02010.98
5.2.90.0000.07311.17
5.2.80.0000.05311.08
5.2.70.0000.03011.23
5.2.60.0000.03011.16
5.2.50.0000.03010.93
5.2.40.0000.03010.86
5.2.30.0000.02711.04
5.2.20.0000.03010.97
5.2.10.0000.02710.97
5.2.00.0030.06010.77
5.1.60.0000.0309.88
5.1.50.0000.04710.07
5.1.40.0030.03710.07
5.1.30.0030.02310.46
5.1.20.0000.02710.41
5.1.10.0000.02310.19
5.1.00.0000.02310.16
5.0.50.0000.0208.63
5.0.40.0030.0178.43
5.0.30.0000.0308.43
5.0.20.0030.0138.43
5.0.10.0000.0208.43
5.0.00.0000.0278.43
4.4.90.0000.0238.43
4.4.80.0000.0138.43
4.4.70.0000.0138.43
4.4.60.0030.0338.43
4.4.50.0000.0308.43
4.4.40.0030.0508.43
4.4.30.0030.0178.43
4.4.20.0000.0178.43
4.4.10.0030.0138.43
4.4.00.0000.0278.43
4.3.110.0000.0178.43
4.3.100.0000.0338.43
4.3.90.0000.0338.43
4.3.80.0000.0538.43
4.3.70.0000.0238.43
4.3.60.0030.0308.43
4.3.50.0000.0378.43
4.3.40.0000.0408.43
4.3.30.0000.0338.43
4.3.20.0000.0378.43
4.3.10.0000.0478.43
4.3.00.0000.0238.43

preferences:
45.72 ms | 401 KiB | 5 Q