3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dec = json_decode('{"a":"A\u2028B"}'); print_r(json_encode($dec)); print_r(json_decode(json_encode($dec, JSON_UNESCAPED_UNICODE)));

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.0170.00316.50
8.3.50.0100.00721.93
8.3.40.0110.00418.60
8.3.30.0030.01019.05
8.3.20.0070.00020.16
8.3.10.0080.00023.44
8.3.00.0080.00020.87
8.2.180.0060.01216.50
8.2.170.0150.00322.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0050.00320.96
8.2.110.0000.00822.19
8.2.100.0070.00417.59
8.2.90.0000.00819.23
8.2.80.0000.00917.97
8.2.70.0080.00017.38
8.2.60.0050.00317.91
8.2.50.0040.00418.07
8.2.40.0060.00318.19
8.2.30.0050.00318.18
8.2.20.0080.00017.64
8.2.10.0040.00417.91
8.2.00.0040.00417.48
8.1.280.0110.00425.92
8.1.270.0080.00023.97
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.00918.74
8.1.230.0070.00418.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.01217.00
8.1.180.0080.00018.10
8.1.170.0100.00018.55
8.1.160.0080.00021.96
8.1.150.0040.00418.65
8.1.140.0040.00417.39
8.1.130.0030.00317.82
8.1.120.0030.00317.29
8.1.110.0000.00717.34
8.1.100.0000.00717.28
8.1.90.0070.00017.43
8.1.80.0000.00817.41
8.1.70.0030.00317.33
8.1.60.0040.00417.45
8.1.50.0040.00417.34
8.1.40.0040.00417.33
8.1.30.0000.00817.57
8.1.20.0000.00817.63
8.1.10.0030.00617.48
8.1.00.0030.00517.37
8.0.300.0030.00618.77
8.0.290.0040.00417.18
8.0.280.0000.00718.25
8.0.270.0000.00817.19
8.0.260.0000.00617.09
8.0.250.0030.00316.80
8.0.240.0000.00816.88
8.0.230.0030.00316.88
8.0.220.0040.00416.80
8.0.210.0040.00416.83
8.0.200.0060.00016.88
8.0.190.0000.00716.80
8.0.180.0040.00416.83
8.0.170.0050.00316.89
8.0.160.0080.00016.88
8.0.150.0000.00816.69
8.0.140.0090.00316.70
8.0.130.0000.00613.26
8.0.120.0080.00016.80
8.0.110.0000.00816.76
8.0.100.0040.00416.77
8.0.90.0050.00216.66
8.0.80.0090.00616.77
8.0.70.0000.00816.89
8.0.60.0040.00416.69
8.0.50.0030.00516.85
8.0.30.0120.00616.95
8.0.20.0040.01417.40
8.0.10.0040.00416.96
8.0.00.0110.00616.79
7.4.330.0060.00015.01
7.4.320.0000.00616.38
7.4.300.0030.00316.54
7.4.290.0040.00416.45
7.4.280.0080.00016.42
7.4.270.0080.00016.44
7.4.260.0080.00016.46
7.4.250.0050.00316.41
7.4.240.0050.00216.39
7.4.230.0070.00016.35
7.4.220.0120.00616.39
7.4.210.0060.00816.40
7.4.200.0000.00716.34
7.4.190.0030.00316.49
7.4.160.0160.00016.49
7.4.150.0060.01617.40
7.4.140.0120.00917.86
7.4.130.0130.00716.31
7.4.120.0100.00716.50
7.4.110.0180.00916.40
7.4.100.0060.01216.36
7.4.90.0100.01316.54
7.4.80.0180.00019.39
7.4.70.0070.01016.53
7.4.60.0060.01216.21
7.4.50.0000.00516.26
7.4.40.0060.01116.36
7.4.30.0140.00816.45
7.4.00.0040.01215.08
7.3.330.0030.00312.88
7.3.320.0050.00012.98
7.3.310.0020.00516.20
7.3.300.0000.00816.15
7.3.290.0070.01116.11
7.3.280.0100.00616.19
7.3.270.0130.00317.40
7.3.260.0060.01516.24
7.3.250.0150.00616.32
7.3.240.0110.00616.39
7.3.230.0110.00916.39
7.3.210.0080.01016.54
7.3.200.0030.01319.39
7.3.190.0170.00016.19
7.3.180.0040.01216.37
7.3.170.0080.00816.27
7.3.160.0120.00316.21
7.3.120.0000.01414.90
7.2.330.0060.01216.62
7.2.320.0200.00416.61
7.2.310.0030.01716.49
7.2.300.0060.01016.39
7.2.290.0100.00916.33
7.2.00.0000.01019.48
7.1.100.0140.00618.06
7.1.70.0060.00916.96
7.1.60.0130.01319.46
7.1.50.0100.01316.82
7.1.00.0070.07322.46
7.0.200.0040.00816.68
7.0.140.0030.07322.00
7.0.90.0070.06719.87
7.0.80.0030.04319.92
7.0.70.0100.07719.88
7.0.60.0100.08019.83
7.0.50.0100.07020.31
7.0.40.0100.08720.12
7.0.30.0100.08320.08
7.0.20.0070.08319.96
7.0.10.0030.08720.03
7.0.00.0100.06020.11
5.6.280.0030.07321.11
5.6.240.0070.08320.44
5.6.230.0070.07320.57
5.6.220.0030.08320.59
5.6.210.0130.07720.40
5.6.200.0030.08721.10
5.6.190.0030.05321.16
5.6.180.0170.06021.02
5.6.170.0070.09021.02
5.6.160.0030.06021.01
5.6.150.0130.07020.95
5.6.140.0170.07320.97
5.6.130.0100.08021.03
5.6.120.0000.04720.93
5.6.110.0070.08321.15
5.6.100.0100.04021.00
5.6.90.0100.08021.05
5.6.80.0100.05020.39
5.6.70.0030.08020.45
5.6.60.0030.05020.35
5.6.50.0000.08720.39
5.6.40.0070.08020.35
5.6.30.0030.05320.29
5.6.20.0030.06320.41
5.6.10.0100.06020.35
5.6.00.0030.08320.37
5.5.380.0030.04020.33
5.5.370.0000.04320.29
5.5.360.0030.08720.44
5.5.350.0100.07720.39
5.5.340.0070.08320.86
5.5.330.0070.04720.82
5.5.320.0130.07720.64
5.5.310.0100.08020.91
5.5.300.0030.06320.88
5.5.290.0070.08320.63
5.5.280.0130.06320.85
5.5.270.0130.07720.87
5.5.260.0070.08320.89
5.5.250.0030.05020.72
5.5.240.0030.05020.20
5.5.230.0070.07020.28
5.5.220.0030.04720.29
5.5.210.0000.08320.13
5.5.200.0000.04720.18
5.5.190.0070.08720.20
5.5.180.0070.04020.26
5.5.160.0130.05020.19
5.5.150.0130.07020.14
5.5.140.0070.07720.09
5.5.130.0100.03720.13
5.5.120.0070.07320.09
5.5.110.0030.06020.17
5.5.100.0100.07320.07
5.5.90.0070.04320.06
5.5.80.0070.05320.16
5.5.70.0130.06020.11
5.5.60.0070.06320.19
5.5.50.0100.04020.13
5.5.40.0100.07020.04
5.5.30.0100.07319.94
5.5.20.0030.04720.12
5.5.10.0170.05020.04
5.5.00.0100.08020.14
5.4.450.0030.07319.24
5.4.440.0070.04319.42
5.4.430.0070.08019.37
5.4.420.0070.06319.54
5.4.410.0000.06019.25
5.4.400.0030.07719.05
5.4.390.0130.06018.95
5.4.380.0100.05719.06
5.4.370.0000.08019.06
5.4.360.0070.07018.96
5.4.350.0130.03319.04
5.4.340.0070.03719.06
5.4.320.0000.08718.79
5.4.310.0130.07019.08
5.4.300.0100.07319.09
5.4.290.0070.04318.79
5.4.280.0070.06019.05
5.4.270.0030.06018.82
5.4.260.0030.07319.13
5.4.250.0070.04018.95
5.4.240.0070.07018.80
5.4.230.0130.03718.95
5.4.220.0070.05719.22
5.4.210.0070.04319.14
5.4.200.0130.07018.78
5.4.190.0170.07019.04
5.4.180.0170.04319.06
5.4.170.0070.05319.13
5.4.160.0130.06719.07
5.4.150.0230.04318.87
5.4.140.0070.07016.29
5.4.130.0030.03716.09
5.4.120.0100.03316.21
5.4.110.0030.07016.30
5.4.100.0030.08016.32
5.4.90.0070.07316.26
5.4.80.0130.06716.42
5.4.70.0170.06016.24
5.4.60.0070.04316.21
5.4.50.0100.07016.31
5.4.40.0030.03716.43
5.4.30.0070.06716.40
5.4.20.0070.03716.33
5.4.10.0100.06316.18
5.4.00.0070.04015.68
5.3.290.0070.07314.50
5.3.280.0070.06714.45
5.3.270.0130.06714.53
5.3.260.0030.04314.54
5.3.250.0100.04314.46
5.3.240.0070.03714.46
5.3.230.0030.04014.60
5.3.220.0070.04014.50
5.3.210.0130.04014.38
5.3.200.0100.07014.55
5.3.190.0130.06714.51
5.3.180.0070.04714.57
5.3.170.0100.07314.42
5.3.160.0030.04014.39
5.3.150.0100.05014.55
5.3.140.0000.04714.49
5.3.130.0130.05314.38
5.3.120.0070.07314.53
5.3.110.0030.07714.52
5.3.100.0030.06014.02
5.3.90.0070.07314.01
5.3.80.0030.08013.95
5.3.70.0130.04714.02
5.3.60.0100.06314.01
5.3.50.0070.05313.72
5.3.40.0070.07313.95
5.3.30.0070.07313.86
5.3.20.0030.06013.65
5.3.10.0000.04013.43
5.3.00.0000.07313.59
5.2.170.0070.05311.09
5.2.160.0030.03711.06
5.2.150.0070.04311.00
5.2.140.0070.05711.16
5.2.130.0170.04311.06
5.2.120.0070.05311.09
5.2.110.0070.06011.15
5.2.100.0070.06011.14
5.2.90.0030.06011.11
5.2.80.0030.04011.09
5.2.70.0000.06310.94
5.2.60.0070.04311.04
5.2.50.0070.06010.80
5.2.40.0070.05710.82
5.2.30.0130.04311.02
5.2.20.0100.05310.82
5.2.10.0030.05010.87
5.2.00.0030.03010.73
5.1.60.0070.02310.02
5.1.50.0030.0309.98
5.1.40.0000.04010.00
5.1.30.0030.05310.30
5.1.20.0130.04010.35
5.1.10.0030.0379.91
5.1.00.0130.04710.05
5.0.50.0030.0408.54
5.0.40.0000.0408.39
5.0.30.0070.0578.22
5.0.20.0000.0338.26
5.0.10.0000.0408.20
5.0.00.0000.0578.18
4.4.90.0000.0378.18
4.4.80.0000.0308.18
4.4.70.0000.0338.18
4.4.60.0030.0238.18
4.4.50.0000.0408.18
4.4.40.0030.0508.18
4.4.30.0030.0308.18
4.4.20.0070.0138.18
4.4.10.0070.0238.18
4.4.00.0100.0338.18
4.3.110.0000.0378.18
4.3.100.0070.0238.18
4.3.90.0070.0308.18
4.3.80.0070.0408.18
4.3.70.0000.0238.18
4.3.60.0030.0338.18
4.3.50.0070.0308.18
4.3.40.0000.0538.18
4.3.30.0000.0278.18
4.3.20.0000.0378.18
4.3.10.0000.0378.18
4.3.00.0000.0378.18

preferences:
37.79 ms | 401 KiB | 5 Q