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.0090.00616.88
8.3.50.0050.01321.99
8.3.40.0070.00718.80
8.3.30.0060.00819.09
8.3.20.0040.00420.16
8.3.10.0090.00023.70
8.3.00.0080.00020.80
8.2.180.0040.01218.41
8.2.170.0070.00722.96
8.2.160.0140.00020.34
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0020.00520.38
8.2.110.0090.00022.13
8.2.100.0080.00417.72
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00917.93
8.2.50.0030.00618.07
8.2.40.0060.00618.09
8.2.30.0040.00418.17
8.2.20.0030.00517.70
8.2.10.0000.00718.11
8.2.00.0130.00017.67
8.1.280.0100.01025.92
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0090.00318.90
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0110.00017.35
8.1.190.0080.00017.13
8.1.180.0080.00018.10
8.1.170.0040.00418.45
8.1.160.0000.00821.93
8.1.150.0030.00618.56
8.1.140.0040.00417.44
8.1.130.0030.00317.77
8.1.120.0070.00017.40
8.1.110.0040.00417.35
8.1.100.0070.00017.43
8.1.90.0000.00717.28
8.1.80.0050.00317.38
8.1.70.0070.00317.32
8.1.60.0060.00317.44
8.1.50.0000.00917.46
8.1.40.0000.01117.47
8.1.30.0050.00317.49
8.1.20.0070.00017.54
8.1.10.0040.00417.61
8.1.00.0050.00517.42
8.0.300.0070.00020.72
8.0.290.0040.00416.92
8.0.280.0030.00318.48
8.0.270.0040.00417.15
8.0.260.0000.00617.25
8.0.250.0000.00716.97
8.0.240.0060.00316.97
8.0.230.0000.00716.96
8.0.220.0000.00716.95
8.0.210.0000.00716.94
8.0.200.0000.00616.93
8.0.190.0000.00717.00
8.0.180.0000.00816.84
8.0.170.0060.00316.88
8.0.160.0030.00316.88
8.0.150.0040.00416.85
8.0.140.0040.00416.86
8.0.130.0000.00613.28
8.0.120.0060.00316.79
8.0.110.0070.00016.93
8.0.100.0090.00016.78
8.0.90.0000.00716.84
8.0.80.0060.01016.83
8.0.70.0000.00716.78
8.0.60.0000.00716.93
8.0.50.0040.00416.74
8.0.30.0020.01717.10
8.0.20.0050.01317.40
8.0.10.0000.00717.06
8.0.00.0080.00816.78
7.4.330.0020.00215.00
7.4.320.0000.00616.51
7.4.300.0070.00016.64
7.4.290.0000.00716.51
7.4.280.0070.00016.50
7.4.270.0030.00316.49
7.4.260.0000.00716.50
7.4.250.0040.00416.55
7.4.240.0020.00416.56
7.4.230.0030.00316.67
7.4.220.0070.01116.45
7.4.210.0090.00716.59
7.4.200.0070.00016.50
7.4.190.0000.00716.63
7.4.160.0120.00416.54
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0100.00516.56
7.4.120.0090.00816.59
7.4.110.0050.01016.34
7.4.100.0100.00716.50
7.4.90.0030.01416.67
7.4.80.0130.00719.39
7.4.70.0120.00616.45
7.4.60.0090.00916.44
7.4.50.0080.00016.29
7.4.40.0140.00716.60
7.4.30.0070.01016.46
7.4.00.0080.00814.67
7.3.330.0000.00613.24
7.3.320.0050.00013.31
7.3.310.0030.00316.25
7.3.300.0000.00716.29
7.3.290.0100.00316.29
7.3.280.0080.00816.31
7.3.270.0160.00017.40
7.3.260.0140.00416.49
7.3.250.0110.00716.43
7.3.240.0120.00616.34
7.3.230.0200.00316.59
7.3.210.0130.01016.55
7.3.200.0090.01219.39
7.3.190.0140.00716.31
7.3.180.0190.00316.29
7.3.170.0040.01216.46
7.3.160.0160.00316.27
7.3.120.0090.00714.52
7.2.330.0150.00316.70
7.2.320.0080.01216.55
7.2.310.0100.00616.30
7.2.300.0100.00616.38
7.2.290.0160.00516.40
7.2.80.0050.00516.45
7.2.60.0110.00416.91
7.2.00.0040.00419.53
7.1.200.0030.00715.64
7.1.100.0040.01118.11
7.1.70.0060.00616.95
7.1.60.0140.01119.46
7.1.50.0090.01217.07
7.1.00.0000.08022.36
7.0.200.0070.00016.76
7.0.140.0000.07722.21
7.0.100.0330.04319.92
7.0.90.0000.09019.86
7.0.80.0400.04719.97
7.0.70.0000.08719.96
7.0.60.0130.04019.94
7.0.50.0400.07320.30
7.0.40.0070.08320.17
7.0.30.0130.07020.18
7.0.20.0100.08720.18
7.0.10.0100.08320.13
7.0.00.0200.08020.03
5.6.280.0070.07020.90
5.6.250.0100.05320.60
5.6.240.0100.08720.60
5.6.230.0130.06720.57
5.6.220.0070.07020.61
5.6.210.0030.08320.47
5.6.200.0030.06021.05
5.6.190.0130.07721.02
5.6.180.0070.04021.14
5.6.170.0070.08720.96
5.6.160.0130.08321.09
5.6.150.0070.05321.08
5.6.140.0130.08320.96
5.6.130.0100.08321.11
5.6.120.0130.05721.02
5.6.110.0130.07721.03
5.6.100.0000.06720.95
5.6.90.0100.07321.07
5.6.80.0170.07320.32
5.6.70.0070.07320.42
5.6.60.0030.04020.34
5.6.50.0070.06020.44
5.6.40.0030.04320.46
5.6.30.0070.07320.40
5.6.20.0130.04020.31
5.6.10.0000.04720.52
5.6.00.0000.07020.43
5.5.380.0070.09020.42
5.5.370.0100.08320.36
5.5.360.0000.05320.41
5.5.350.0070.04320.42
5.5.340.0100.08020.80
5.5.330.0200.03320.80
5.5.320.0070.08320.78
5.5.310.0070.04720.86
5.5.300.0070.06720.77
5.5.290.0100.08020.89
5.5.280.0130.08320.86
5.5.270.0100.08020.63
5.5.260.0100.08020.77
5.5.250.0100.09320.54
5.5.240.0000.07320.18
5.5.230.0030.06020.14
5.5.220.0100.05720.30
5.5.210.0030.05020.32
5.5.200.0000.05720.28
5.5.190.0100.06720.15
5.5.180.0130.07320.13
5.5.160.0100.03320.20
5.5.150.0200.06720.24
5.5.140.0070.08720.12
5.5.130.0070.07320.14
5.5.120.0000.05020.14
5.5.110.0070.07020.20
5.5.100.0000.05020.10
5.5.90.0030.08019.95
5.5.80.0030.07720.07
5.5.70.0100.06320.04
5.5.60.0030.04720.09
5.5.50.0100.03320.05
5.5.40.0130.06720.06
5.5.30.0000.08720.16
5.5.20.0100.07720.04
5.5.10.0100.03319.98
5.5.00.0030.06719.97
5.4.450.0070.07319.29
5.4.440.0030.05719.23
5.4.430.0000.06019.50
5.4.420.0070.08319.41
5.4.410.0070.05319.35
5.4.400.0130.03319.18
5.4.390.0100.06719.21
5.4.380.0200.05719.01
5.4.370.0070.04719.09
5.4.360.0100.04018.88
5.4.350.0000.04719.03
5.4.340.0030.04319.03
5.4.320.0030.06019.07
5.4.310.0000.06019.18
5.4.300.0070.06719.04
5.4.290.0030.06719.03
5.4.280.0070.07319.09
5.4.270.0070.07319.09
5.4.260.0100.07319.10
5.4.250.0030.04719.12
5.4.240.0070.04019.05
5.4.230.0100.06719.02
5.4.220.0070.07019.17
5.4.210.0070.07319.12
5.4.200.0100.07319.16
5.4.190.0100.04018.85
5.4.180.0070.03719.04
5.4.170.0000.08318.89
5.4.160.0070.08018.88
5.4.150.0070.07718.93
5.4.140.0030.04716.41
5.4.130.0170.06716.42
5.4.120.0100.08016.45
5.4.110.0070.06716.46
5.4.100.0070.04016.43
5.4.90.0030.06716.43
5.4.80.0100.04016.34
5.4.70.0100.03016.34
5.4.60.0070.04316.41
5.4.50.0070.07016.40
5.4.40.0030.05716.41
5.4.30.0100.04016.40
5.4.20.0130.06016.31
5.4.10.0100.03716.24
5.4.00.0000.04315.90
5.3.290.0070.05314.67
5.3.280.0030.07714.63
5.3.270.0000.05314.69
5.3.260.0070.08014.61
5.3.250.0030.05314.54
5.3.240.0070.05714.72
5.3.230.0030.08314.66
5.3.220.0170.06014.62
5.3.210.0130.05014.61
5.3.200.0030.08014.64
5.3.190.0030.05714.59
5.3.180.0030.04014.70
5.3.170.0070.04314.58
5.3.160.0070.04014.58
5.3.150.0100.05314.51
5.3.140.0030.05714.50
5.3.130.0100.04014.48
5.3.120.0030.08014.53
5.3.110.0100.03314.68
5.3.100.0070.06014.10
5.3.90.0100.03714.01
5.3.80.0100.08713.92
5.3.70.0000.06314.04
5.3.60.0070.06314.14
5.3.50.0030.05313.86
5.3.40.0030.06713.87
5.3.30.0070.07313.81
5.3.20.0030.05713.84
5.3.10.0070.03013.58
5.3.00.0100.06713.69
5.2.170.0030.03311.15
5.2.160.0070.05711.19
5.2.150.0030.03011.27
5.2.140.0000.03011.02
5.2.130.0000.03311.13
5.2.120.0070.02311.09
5.2.110.0030.05311.23
5.2.100.0000.06711.14
5.2.90.0000.03011.21
5.2.80.0170.05011.01
5.2.70.0030.05711.11
5.2.60.0100.03010.97
5.2.50.0030.04711.02
5.2.40.0070.05711.12
5.2.30.0070.05711.08
5.2.20.0030.05711.02
5.2.10.0070.05710.95
5.2.00.0130.04010.72
5.1.60.0070.0239.84
5.1.50.0100.04310.09
5.1.40.0070.0409.86
5.1.30.0030.03010.44
5.1.20.0030.05710.21
5.1.10.0030.0509.95
5.1.00.0100.02710.16
5.0.50.0000.0478.38
5.0.40.0030.0478.48
5.0.30.0070.0608.31
5.0.20.0000.0278.31
5.0.10.0030.0438.31
5.0.00.0070.0338.31
4.4.90.0030.0338.31
4.4.80.0000.0378.31
4.4.70.0000.0238.31
4.4.60.0000.0378.31
4.4.50.0030.0278.31
4.4.40.0000.0238.31
4.4.30.0070.0378.31
4.4.20.0070.0308.31
4.4.10.0030.0378.31
4.4.00.0030.0438.31
4.3.110.0030.0308.31
4.3.100.0000.0378.31
4.3.90.0070.0308.31
4.3.80.0030.0438.31
4.3.70.0000.0308.31
4.3.60.0030.0378.31
4.3.50.0000.0378.31
4.3.40.0030.0478.31
4.3.30.0000.0278.31
4.3.20.0000.0338.31
4.3.10.0000.0378.31
4.3.00.0000.0238.31

preferences:
45.64 ms | 401 KiB | 5 Q