3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "{'name': 'Vanliga fr\u00e5gor'}"; function replace_unicode_escape_sequence($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); } $str = json_decode($str); print $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.0110.00416.25
8.3.50.0110.00421.93
8.3.40.0180.00018.76
8.3.30.0070.00718.96
8.3.20.0050.00220.21
8.3.10.0030.00623.39
8.3.00.0050.00319.01
8.2.180.0040.01116.32
8.2.170.0040.01122.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.50
8.2.110.0100.00022.20
8.2.100.0100.00319.40
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0050.00217.93
8.2.50.0000.00818.07
8.2.40.0000.00819.78
8.2.30.0000.00718.18
8.2.20.0000.00717.55
8.2.10.0040.00418.11
8.2.00.0070.00417.80
8.1.280.0130.00925.92
8.1.270.0060.00323.91
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0110.00623.88
8.1.230.0000.01117.42
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.22
8.1.180.0030.00619.01
8.1.170.0030.00618.47
8.1.160.0050.00221.98
8.1.150.0040.00418.62
8.1.140.0000.00717.38
8.1.130.0070.00017.82
8.1.120.0000.00717.29
8.1.110.0000.00917.35
8.1.100.0030.00317.41
8.1.90.0000.00817.29
8.1.80.0070.00017.35
8.1.70.0030.00717.23
8.1.60.0110.00017.48
8.1.50.0080.00017.31
8.1.40.0120.00017.35
8.1.30.0040.00417.52
8.1.20.0070.00017.51
8.1.10.0040.00417.53
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0080.00018.37
8.0.270.0030.00317.17
8.0.260.0000.00618.44
8.0.250.0000.00716.93
8.0.240.0030.00716.97
8.0.230.0040.00416.86
8.0.220.0030.00316.70
8.0.210.0000.00716.73
8.0.200.0030.00316.90
8.0.190.0000.00716.76
8.0.180.0070.00016.86
8.0.170.0040.00416.82
8.0.160.0070.00016.87
8.0.150.0000.00716.87
8.0.140.0030.00516.68
8.0.130.0060.00013.25
8.0.120.0000.00816.77
8.0.110.0040.00416.80
8.0.100.0030.00616.72
8.0.90.0050.00216.73
8.0.80.0150.00016.80
8.0.70.0000.00716.86
8.0.60.0040.00416.89
8.0.50.0000.00716.93
8.0.30.0100.00917.08
8.0.20.0080.01217.40
8.0.10.0030.00516.93
8.0.00.0060.01216.72
7.4.330.0020.00215.00
7.4.320.0000.00616.42
7.4.300.0000.00616.42
7.4.290.0030.00316.53
7.4.280.0070.00016.35
7.4.270.0030.00416.45
7.4.260.0000.00816.43
7.4.250.0070.00016.53
7.4.240.0020.00516.50
7.4.230.0030.00316.63
7.4.220.0060.01216.36
7.4.210.0100.00916.54
7.4.200.0000.00716.62
7.4.190.0000.00716.66
7.4.160.0090.00616.54
7.4.150.0060.01317.40
7.4.140.0070.01017.86
7.4.130.0060.01316.45
7.4.120.0130.00516.51
7.4.110.0140.00316.47
7.4.100.0140.00416.45
7.4.90.0070.01016.43
7.4.80.0120.00919.39
7.4.70.0080.00816.50
7.4.60.0060.00916.48
7.4.50.0080.00016.25
7.4.40.0090.00716.43
7.4.30.0130.00316.64
7.4.00.0070.00314.90
7.3.330.0000.00613.30
7.3.320.0050.00013.18
7.3.310.0000.00716.26
7.3.300.0000.00716.23
7.3.290.0110.00816.26
7.3.280.0120.00716.27
7.3.270.0070.01017.40
7.3.260.0100.00716.25
7.3.250.0050.01216.51
7.3.240.0100.00916.25
7.3.230.0120.00616.41
7.3.210.0110.01116.29
7.3.200.0100.01319.39
7.3.190.0070.01016.54
7.3.180.0140.00016.16
7.3.170.0110.00416.45
7.3.160.0130.00316.28
7.3.120.0070.00414.73
7.2.330.0100.01316.68
7.2.320.0140.00316.71
7.2.310.0140.00316.61
7.2.300.0160.00016.63
7.2.290.0000.01616.66
7.2.60.0000.01616.82
7.2.00.0030.00919.40
7.1.200.0030.01015.65
7.1.100.0080.00817.90
7.1.70.0000.00917.13
7.1.60.0100.01319.46
7.1.50.0090.01616.63
7.1.00.0030.07722.30
7.0.200.0000.00716.56
7.0.140.0070.07021.95
7.0.100.0100.04019.93
7.0.90.0130.07719.98
7.0.80.0170.08019.95
7.0.70.0100.04319.95
7.0.60.0070.04019.95
7.0.50.0330.08320.39
7.0.40.0100.08020.03
7.0.30.0100.08720.13
7.0.20.0100.07320.13
7.0.10.0070.05320.07
7.0.00.0170.05020.17
5.6.280.0000.07721.10
5.6.250.0130.06320.57
5.6.240.0030.08320.66
5.6.230.0170.07320.59
5.6.220.0230.05020.57
5.6.210.0100.04320.72
5.6.200.0070.07321.14
5.6.190.0030.07021.08
5.6.180.0130.07321.09
5.6.170.0100.05721.02
5.6.160.0070.07721.07
5.6.150.0130.08021.14
5.6.140.0030.04321.08
5.6.130.0070.05321.08
5.6.120.0030.08321.10
5.6.110.0170.06721.00
5.6.100.0170.06021.01
5.6.90.0130.07721.04
5.6.80.0030.05320.49
5.6.70.0070.08020.40
5.6.60.0000.06320.50
5.6.50.0030.05020.44
5.6.40.0070.07320.38
5.6.30.0170.07720.44
5.6.20.0070.06720.49
5.6.10.0030.04720.46
5.6.00.0070.05020.42
5.5.380.0170.04720.40
5.5.370.0100.07020.38
5.5.360.0030.04320.29
5.5.350.0170.03720.34
5.5.340.0270.05720.76
5.5.330.0100.06020.79
5.5.320.0030.05320.89
5.5.310.0100.07320.80
5.5.300.0130.06320.78
5.5.290.0100.04720.87
5.5.280.0100.04320.76
5.5.270.0100.03720.79
5.5.260.0100.05320.92
5.5.250.0100.05720.75
5.5.240.0130.04320.27
5.5.230.0030.07020.02
5.5.220.0030.07020.25
5.5.210.0030.07020.30
5.5.200.0100.05720.15
5.5.190.0100.06719.99
5.5.180.0070.06320.19
5.5.160.0170.07020.23
5.5.150.0070.07720.12
5.5.140.0070.07720.12
5.5.130.0070.08020.18
5.5.120.0030.08020.25
5.5.110.0130.05320.20
5.5.100.0130.07320.02
5.5.90.0030.05719.95
5.5.80.0070.04320.11
5.5.70.0130.07720.16
5.5.60.0070.03720.13
5.5.50.0100.04720.14
5.5.40.0100.06020.14
5.5.30.0130.07720.14
5.5.20.0170.05019.96
5.5.10.0030.07719.96
5.5.00.0100.07320.05
5.4.450.0100.07719.46
5.4.440.0070.08319.35
5.4.430.0100.07719.31
5.4.420.0070.08019.35
5.4.410.0100.07319.38
5.4.400.0170.06719.13
5.4.390.0100.04719.25
5.4.380.0070.07719.20
5.4.370.0030.06319.03
5.4.360.0130.07019.23
5.4.350.0070.07019.16
5.4.340.0100.06719.13
5.4.320.0170.06719.12
5.4.310.0100.07719.05
5.4.300.0030.08019.09
5.4.290.0000.04718.88
5.4.280.0030.08018.94
5.4.270.0070.04319.13
5.4.260.0070.05019.05
5.4.250.0100.06719.04
5.4.240.0170.06718.96
5.4.230.0070.06719.02
5.4.220.0030.04719.18
5.4.210.0130.04719.02
5.4.200.0100.05719.04
5.4.190.0070.07318.87
5.4.180.0100.07019.01
5.4.170.0070.07318.87
5.4.160.0030.08019.03
5.4.150.0100.06719.01
5.4.140.0070.05716.41
5.4.130.0070.07016.42
5.4.120.0130.04016.43
5.4.110.0100.03016.43
5.4.100.0030.05316.43
5.4.90.0100.06716.27
5.4.80.0100.07016.48
5.4.70.0000.08016.32
5.4.60.0070.04016.46
5.4.50.0130.05716.32
5.4.40.0070.07716.40
5.4.30.0070.05016.45
5.4.20.0000.04716.41
5.4.10.0000.08316.45
5.4.00.0130.06315.58
5.3.290.0070.08014.59
5.3.280.0030.05014.55
5.3.270.0100.07314.73
5.3.260.0200.06014.69
5.3.250.0100.07014.71
5.3.240.0030.05714.66
5.3.230.0130.07314.64
5.3.220.0070.06714.49
5.3.210.0100.03714.71
5.3.200.0200.05714.58
5.3.190.0070.04714.52
5.3.180.0130.06014.55
5.3.170.0130.06714.49
5.3.160.0030.06714.68
5.3.150.0070.07314.57
5.3.140.0100.06014.63
5.3.130.0000.07714.51
5.3.120.0100.05714.46
5.3.110.0030.07714.50
5.3.100.0100.04714.06
5.3.90.0030.04314.09
5.3.80.0100.04313.95
5.3.70.0000.06714.09
5.3.60.0130.03014.06
5.3.50.0070.07314.00
5.3.40.0070.07014.07
5.3.30.0070.04013.93
5.3.20.0130.03013.75
5.3.10.0030.06713.61
5.3.00.0070.06313.54
5.2.170.0100.05311.23
5.2.160.0130.05311.16
5.2.150.0130.05711.20
5.2.140.0100.05311.15
5.2.130.0070.06311.16
5.2.120.0070.05711.18
5.2.110.0030.04011.18
5.2.100.0070.03311.12
5.2.90.0000.03311.09
5.2.80.0070.03711.16
5.2.70.0100.03011.00
5.2.60.0100.04011.10
5.2.50.0030.05010.95
5.2.40.0030.06311.10
5.2.30.0100.03010.96
5.2.20.0070.05710.88
5.2.10.0100.02710.81
5.2.00.0030.03010.73
5.1.60.0030.02310.44
5.1.50.0030.02710.44
5.1.40.0100.01710.44
5.1.30.0030.02710.44
5.1.20.0000.02710.44
5.1.10.0030.03010.44
5.1.00.0000.02710.44
5.0.50.0030.03010.44
5.0.40.0000.02010.44
5.0.30.0000.03010.44
5.0.20.0030.01710.44
5.0.10.0000.02010.44
5.0.00.0030.04310.44
4.4.90.0070.03010.44
4.4.80.0030.02710.44
4.4.70.0070.03310.44
4.4.60.0030.03710.44
4.4.50.0000.02010.44
4.4.40.0030.02310.44
4.4.30.0000.01710.44
4.4.20.0000.02010.44
4.4.10.0000.01710.44
4.4.00.0030.02310.44
4.3.110.0000.01710.44
4.3.100.0000.01710.44
4.3.90.0000.01710.44
4.3.80.0030.02310.44
4.3.70.0030.01310.44
4.3.60.0000.01710.44
4.3.50.0000.01710.44
4.3.40.0000.04310.44
4.3.30.0030.01310.44
4.3.20.0000.01310.44
4.3.10.0000.01310.44
4.3.00.0000.01310.44

preferences:
38.54 ms | 401 KiB | 5 Q