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::replace_unicode_escape_sequence($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.70.0040.01416.62
8.3.60.0090.00916.63
8.3.50.0120.00622.21
8.3.40.0070.01418.92
8.3.30.0140.00019.08
8.3.20.0070.00020.34
8.3.10.0000.00823.69
8.3.00.0050.00320.80
8.2.180.0120.00417.00
8.2.170.0110.00322.96
8.2.160.0000.01420.39
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00020.52
8.2.110.0130.00322.38
8.2.100.0110.00617.97
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0050.00517.75
8.2.60.0000.00817.92
8.2.50.0000.00818.07
8.2.40.0040.00419.83
8.2.30.0000.01118.33
8.2.20.0000.00818.03
8.2.10.0040.00418.26
8.2.00.0040.00817.85
8.1.280.0040.01225.92
8.1.270.0060.00323.94
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0040.00819.01
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0070.00317.48
8.1.190.0000.00817.48
8.1.180.0060.00319.38
8.1.170.0040.00418.84
8.1.160.0000.00722.11
8.1.150.0050.00318.88
8.1.140.0040.00417.55
8.1.130.0020.00517.92
8.1.120.0020.00517.71
8.1.110.0000.00717.71
8.1.100.0050.00317.67
8.1.90.0080.00017.74
8.1.80.0050.00417.64
8.1.70.0000.00717.69
8.1.60.0000.00817.80
8.1.50.0000.00817.62
8.1.40.0060.00317.72
8.1.30.0030.00617.89
8.1.20.0040.00417.91
8.1.10.0040.00417.80
8.1.00.0060.00317.63
8.0.300.0040.00418.77
8.0.290.0000.00717.17
8.0.280.0000.00718.57
8.0.270.0030.00517.35
8.0.260.0060.00017.25
8.0.250.0070.00017.23
8.0.240.0000.00717.19
8.0.230.0060.00317.11
8.0.220.0000.00717.05
8.0.210.0000.00716.95
8.0.200.0030.00517.19
8.0.190.0040.00417.20
8.0.180.0020.00517.16
8.0.170.0040.00417.18
8.0.160.0040.00417.08
8.0.150.0070.00017.04
8.0.140.0000.00817.07
8.0.130.0000.00613.58
8.0.120.0030.00616.96
8.0.110.0000.00717.02
8.0.100.0000.00716.97
8.0.90.0030.00416.95
8.0.80.0120.01017.11
8.0.70.0050.00316.93
8.0.60.0040.00417.23
8.0.50.0040.00417.05
8.0.30.0080.01117.25
8.0.20.0100.00817.40
8.0.10.0000.00817.13
8.0.00.0080.00817.05
7.4.330.0030.00315.08
7.4.320.0000.00616.74
7.4.300.0040.00416.91
7.4.290.0000.01016.91
7.4.280.0040.00416.78
7.4.270.0030.00316.86
7.4.260.0000.00716.91
7.4.250.0070.00016.70
7.4.240.0030.00316.72
7.4.230.0000.00716.77
7.4.220.0160.00916.91
7.4.210.0070.01116.81
7.4.200.0070.00016.68
7.4.190.0000.00816.84
7.4.160.0090.00816.71
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0100.00716.81
7.4.120.0130.00916.77
7.4.110.0100.00716.69
7.4.100.0070.01016.70
7.4.90.0140.00616.75
7.4.80.0150.00919.39
7.4.70.0150.00816.76
7.4.60.0070.01716.70
7.4.50.0030.00616.56
7.4.40.0090.01416.54
7.4.30.0140.01016.82
7.4.00.0100.00515.30
7.3.330.0000.00513.45
7.3.320.0000.00513.54
7.3.310.0000.00816.59
7.3.300.0030.00316.60
7.3.290.0000.01416.52
7.3.280.0080.01116.54
7.3.270.0110.00517.40
7.3.260.0120.00616.63
7.3.250.0140.00316.62
7.3.240.0140.00716.77
7.3.230.0060.01016.70
7.3.210.0060.01016.66
7.3.200.0110.00619.39
7.3.190.0070.01016.83
7.3.180.0080.00816.66
7.3.170.0040.01216.54
7.3.160.0190.00316.75
7.3.120.0090.00915.17
7.3.110.0130.00315.02
7.3.100.0090.00615.22
7.3.90.0000.01515.05
7.3.80.0090.00315.10
7.3.70.0040.00414.79
7.3.60.0030.00614.95
7.3.50.0030.00714.86
7.3.40.0140.00314.84
7.3.30.0000.01015.14
7.3.20.0030.01016.85
7.3.10.0030.01216.86
7.3.00.0060.01616.78
7.2.330.0170.00016.64
7.2.320.0110.01516.89
7.2.310.0130.01016.72
7.2.300.0070.01116.72
7.2.290.0080.01116.96
7.2.250.0070.01115.24
7.2.240.0090.00915.02
7.2.230.0100.00715.14
7.2.220.0090.00615.26
7.2.210.0070.00315.30
7.2.200.0030.00714.98
7.2.190.0000.00914.99
7.2.180.0090.00615.23
7.2.170.0070.00715.26
7.2.160.0100.00315.38
7.2.150.0060.00316.89
7.2.140.0060.00917.14
7.2.130.0030.01317.34
7.2.120.0110.00417.11
7.2.110.0040.01217.30
7.2.100.0060.00916.86
7.2.90.0080.00817.19
7.2.80.0090.00417.23
7.2.70.0030.00717.12
7.2.60.0060.01017.21
7.2.50.0030.00617.05
7.2.40.0120.00416.95
7.2.30.0000.01417.18
7.2.20.0040.01117.18
7.2.10.0040.01117.20
7.2.00.0050.00918.47
7.1.330.0060.01316.23
7.1.320.0070.01016.32
7.1.310.0000.00916.13
7.1.300.0070.00715.84
7.1.290.0030.01215.97
7.1.280.0070.00716.04
7.1.270.0000.00815.75
7.1.260.0110.00715.80
7.1.250.0110.00315.85
7.1.240.0040.01116.23
7.1.230.0100.00315.70
7.1.220.0070.00416.04
7.1.210.0060.00616.06
7.1.200.0060.00916.09
7.1.190.0040.00715.85
7.1.180.0030.00616.20
7.1.170.0070.00715.79
7.1.160.0000.00916.13
7.1.150.0000.00915.95
7.1.140.0060.00616.09
7.1.130.0090.00616.06
7.1.120.0000.01616.11
7.1.110.0070.00716.01
7.1.100.0040.00716.92
7.1.90.0000.01216.09
7.1.80.0100.00316.12
7.1.70.0050.00716.72
7.1.60.0080.01217.66
7.1.50.0150.00716.78
7.1.40.0060.00816.07
7.1.30.0040.01116.22
7.1.20.0040.00715.91
7.1.10.0070.00716.09
7.1.00.0050.04119.32
7.0.330.0070.00715.27
7.0.320.0030.00715.24
7.0.310.0040.00815.68
7.0.300.0060.00615.38
7.0.290.0060.00315.58
7.0.280.0110.00315.41
7.0.270.0040.00415.61
7.0.260.0070.00715.61
7.0.250.0090.00615.68
7.0.240.0060.00615.75
7.0.230.0030.01015.66
7.0.220.0000.01115.55
7.0.210.0100.00015.75
7.0.200.0020.00916.32
7.0.190.0040.00915.50
7.0.180.0030.01015.39
7.0.170.0060.00615.51
7.0.160.0030.01215.64
7.0.150.0070.00715.35
7.0.140.0050.03818.64
7.0.130.0040.00815.45
7.0.120.0030.01415.66
7.0.110.0030.00915.43
7.0.100.0100.04217.86
7.0.90.0110.03617.67
7.0.80.0080.04417.76
7.0.70.0180.04517.79
7.0.60.0190.03517.59
7.0.50.0100.04017.91
7.0.40.0050.04516.95
7.0.30.0080.03716.86
7.0.20.0090.04216.97
7.0.10.0070.04516.81
7.0.00.0140.03816.94
5.6.400.0110.01114.32
5.6.390.0070.01314.58
5.6.380.0110.00414.89
5.6.370.0100.00314.45
5.6.360.0090.00914.33
5.6.350.0040.00814.40
5.6.340.0040.00414.55
5.6.330.0110.00014.54
5.6.320.0030.01014.23
5.6.310.0040.01214.31
5.6.300.0060.00314.90
5.6.290.0000.00914.67
5.6.280.0030.03917.71
5.6.270.0070.00314.61
5.6.260.0000.01114.09
5.6.250.0070.04317.53
5.6.240.0080.04417.60
5.6.230.0100.02817.63
5.6.220.0100.04517.59
5.6.210.0090.03917.47
5.6.200.0060.03017.77
5.6.190.0070.04117.71
5.6.180.0140.03917.80
5.6.170.0120.03517.71
5.6.160.0050.04117.63
5.6.150.0030.03917.62
5.6.140.0150.02517.77
5.6.130.0100.02317.76
5.6.120.0050.02817.75
5.6.110.0020.03517.60
5.6.100.0090.02517.88
5.6.90.0030.04717.70
5.6.80.0100.04517.38
5.6.70.0090.03417.55
5.6.60.0080.02017.32
5.6.50.0030.02817.44
5.6.40.0040.03017.37
5.6.30.0070.04517.34
5.6.20.0050.02317.44
5.6.10.0050.03817.34
5.6.00.0070.03217.30
5.5.380.0100.03817.37
5.5.370.0060.04517.56
5.5.360.0030.03317.30
5.5.350.0070.04217.39
5.5.340.0090.03917.53
5.5.330.0030.03617.63
5.5.320.0050.03017.73
5.5.310.0250.01217.71
5.5.300.0060.04017.56
5.5.290.0070.04317.61
5.5.280.0080.03517.61
5.5.270.0090.04417.59
5.5.260.0070.03517.66
5.5.250.0090.04017.46
5.5.240.0060.03617.18
5.5.230.0090.03517.25
5.5.220.0030.04617.19
5.5.210.0050.03517.38
5.5.200.0130.01817.28
5.5.190.0070.04217.34
5.5.180.0080.04117.29
5.5.170.0140.00014.18
5.5.160.0070.02317.34
5.5.150.0090.02817.25
5.5.140.0080.03517.17
5.5.130.0060.03317.26
5.5.120.0100.02917.23
5.5.110.0030.02517.23
5.5.100.0050.03817.30
5.5.90.0100.03916.99
5.5.80.0090.03617.18
5.5.70.0050.02417.09
5.5.60.0060.04117.08
5.5.50.0100.03317.28
5.5.40.0070.02817.25
5.5.30.0070.04217.35
5.5.20.0150.03217.29
5.5.10.0080.04317.28
5.5.00.0040.03817.19
5.4.450.0110.03315.28
5.4.440.0130.03515.46
5.4.430.0050.02515.42
5.4.420.0010.03815.46
5.4.410.0100.03315.36
5.4.400.0120.03815.30
5.4.390.0120.03715.22
5.4.380.0020.02315.30
5.4.370.0040.03715.32
5.4.360.0070.03615.29
5.4.350.0040.03115.28
5.4.340.0060.04115.13
5.4.330.0070.00411.39
5.4.320.0050.02315.26
5.4.310.0020.02615.27
5.4.300.0050.03615.21
5.4.290.0050.03815.26
5.4.280.0080.03315.12
5.4.270.0020.04715.14
5.4.260.0080.04015.28
5.4.250.0070.03715.16
5.4.240.0070.04215.14
5.4.230.0040.04115.30
5.4.220.0030.02515.13
5.4.210.0030.03115.24
5.4.200.0100.02215.25
5.4.190.0030.04515.16
5.4.180.0030.04615.21
5.4.170.0050.04515.21
5.4.160.0030.04215.20
5.4.150.0040.02615.11
5.4.140.0070.03413.95
5.4.130.0060.04013.94
5.4.120.0050.03713.89
5.4.110.0030.03813.96
5.4.100.0070.03713.95
5.4.90.0090.03713.96
5.4.80.0050.04013.91
5.4.70.0040.04013.91
5.4.60.0090.03413.93
5.4.50.0020.02413.92
5.4.40.0070.03913.88
5.4.30.0070.04013.90
5.4.20.0040.02513.85
5.4.10.0010.02513.87
5.4.00.0070.03913.51
5.3.290.0060.03313.09
5.3.280.0050.03813.03
5.3.270.0030.02313.05
5.3.260.0080.03312.96
5.3.250.0070.03313.05
5.3.240.0080.03812.96
5.3.230.0080.03812.99
5.3.220.0080.02613.05
5.3.210.0020.04612.96
5.3.200.0090.03212.96
5.3.190.0050.04212.98
5.3.180.0020.03813.03
5.3.170.0050.02413.02
5.3.160.0030.04313.05
5.3.150.0020.02012.95
5.3.140.0020.04313.01
5.3.130.0120.03713.00
5.3.120.0030.04313.00
5.3.110.0050.04012.96
5.3.100.0050.04212.75
5.3.90.0090.03512.73
5.3.80.0080.03012.67
5.3.70.0020.03712.66
5.3.60.0050.02512.69
5.3.50.0080.01812.70
5.3.40.0070.03812.68
5.3.30.0100.01512.66
5.3.20.0030.02612.50
5.3.10.0080.04312.54
5.3.00.0060.02312.58
5.2.170.0070.06012.22
5.2.160.0070.05712.22
5.2.150.0030.05312.22
5.2.140.0070.02712.22
5.2.130.0000.03712.22
5.2.120.0030.06712.22
5.2.110.0070.06012.22
5.2.100.0070.06012.22
5.2.90.0030.05312.22
5.2.80.0030.06012.22
5.2.70.0030.03712.22
5.2.60.0000.07012.22
5.2.50.0000.06012.22
5.2.40.0000.03312.22
5.2.30.0000.05712.22
5.2.20.0070.03012.22
5.2.10.0100.03712.22
5.2.00.0070.03312.22
5.1.60.0030.03012.22
5.1.50.0000.02712.22
5.1.40.0030.05712.22
5.1.30.0070.04712.22
5.1.20.0070.03712.22
5.1.10.0070.05012.22
5.1.00.0000.05012.22
5.0.50.0000.02312.22
5.0.40.0000.02012.22
5.0.30.0000.03312.22
5.0.20.0000.02012.22
5.0.10.0000.02312.22
5.0.00.0030.03012.22
4.4.90.0000.02012.22
4.4.80.0070.03712.22
4.4.70.0000.03012.22
4.4.60.0030.02312.22
4.4.50.0030.03712.22
4.4.40.0000.04712.22
4.4.30.0030.02012.22
4.4.20.0030.02312.22
4.4.10.0030.03712.22
4.4.00.0000.02712.22
4.3.110.0030.01712.22
4.3.100.0030.01312.22
4.3.90.0030.01312.22
4.3.80.0030.02312.22
4.3.70.0000.01712.22
4.3.60.0030.01312.22
4.3.50.0030.01312.22
4.3.40.0000.03012.22
4.3.30.0030.01312.22
4.3.20.0000.03312.22
4.3.10.0030.01312.22
4.3.00.0000.01312.22

preferences:
42.55 ms | 401 KiB | 5 Q