3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"test-me+for": "X"}'; var_dump(json_encode($string));

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.40.0120.00318.67
8.3.30.0130.00718.98
8.3.20.0040.00420.20
8.3.10.0040.00420.39
8.3.00.0040.00419.26
8.2.170.0110.00422.96
8.2.160.0030.01219.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00821.07
8.2.110.0060.00320.25
8.2.100.0040.00817.94
8.2.90.0000.00819.08
8.2.80.0090.00017.97
8.2.70.0080.00017.50
8.2.60.0100.00017.92
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0040.00418.05
8.2.20.0000.00717.48
8.2.10.0040.00417.89
8.2.00.0040.00417.60
8.1.270.0030.00624.00
8.1.260.0020.00526.35
8.1.250.0140.00328.09
8.1.240.0040.00423.97
8.1.230.0070.00419.05
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0090.00017.10
8.1.190.0080.00016.88
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0000.00722.00
8.1.150.0050.00218.85
8.1.140.0040.00417.42
8.1.130.0050.00317.85
8.1.120.0000.00717.29
8.1.110.0050.00217.33
8.1.100.0000.00717.36
8.1.90.0000.00717.37
8.1.80.0030.00317.45
8.1.70.0000.00717.36
8.1.60.0000.00917.48
8.1.50.0030.00617.46
8.1.40.0000.00717.43
8.1.30.0080.00017.44
8.1.20.0000.00817.47
8.1.10.0040.00417.50
8.1.00.0090.00017.33
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0040.00417.24
8.0.260.0000.00617.09
8.0.250.0000.00716.86
8.0.240.0060.00016.87
8.0.230.0000.00716.88
8.0.220.0030.00316.71
8.0.210.0060.00016.70
8.0.200.0060.00016.86
8.0.190.0060.00616.81
8.0.180.0050.00216.88
8.0.170.0060.00316.84
8.0.160.0000.00816.69
8.0.150.0000.00816.71
8.0.140.0070.00016.74
8.0.130.0000.00513.23
8.0.120.0040.00416.78
8.0.110.0050.00316.79
8.0.100.0000.00716.79
8.0.90.0000.00716.82
8.0.80.0090.00616.79
8.0.70.0030.00516.64
8.0.60.0070.00016.83
8.0.50.0050.00316.66
8.0.30.0140.01016.94
8.0.20.0090.00917.40
8.0.10.0000.00717.04
8.0.00.0060.01116.60
7.4.330.0020.00215.07
7.4.320.0030.00316.51
7.4.300.0000.00616.52
7.4.290.0040.00416.37
7.4.280.0050.00316.43
7.4.270.0040.00416.57
7.4.260.0000.00716.43
7.4.250.0080.00016.53
7.4.240.0020.00516.43
7.4.230.0000.00716.42
7.4.220.0140.00416.55
7.4.210.0040.01116.45
7.4.200.0030.00616.38
7.4.160.0090.00616.58
7.4.150.0150.00917.40
7.4.140.0090.00817.86
7.4.130.0090.00816.46
7.4.120.0070.01016.50
7.4.110.0030.01316.54
7.4.100.0060.01616.26
7.4.90.0090.00916.39
7.4.80.0060.01219.39
7.4.70.0090.00916.36
7.4.60.0040.01216.54
7.4.50.0030.00616.19
7.4.40.0140.00416.29
7.4.30.0120.00616.47
7.4.00.0070.01015.06
7.3.330.0020.00312.88
7.3.320.0050.00012.97
7.3.310.0040.00416.05
7.3.300.0040.00416.13
7.3.290.0070.00716.15
7.3.280.0090.00816.12
7.3.270.0160.00717.40
7.3.260.0170.00016.38
7.3.250.0120.00516.45
7.3.240.0060.01616.50
7.3.230.0030.01316.39
7.3.210.0070.01016.37
7.3.200.0100.00619.39
7.3.190.0120.00616.34
7.3.180.0090.00916.41
7.3.170.0070.01016.27
7.3.160.0030.01716.17
7.2.330.0000.01616.30
7.2.320.0030.01316.48
7.2.310.0070.01016.50
7.2.300.0040.01216.54
7.2.290.0100.01016.48
7.1.200.0070.00715.77
7.1.70.0040.00416.86
7.1.60.0120.00919.32
7.1.50.0030.00816.77
7.1.00.0030.07722.41
7.0.200.0040.00416.85
7.0.140.0000.07322.00
7.0.110.0070.06319.97
7.0.100.0000.05019.91
7.0.90.0070.03719.98
7.0.80.0000.08319.79
7.0.70.0600.08320.00
7.0.60.0930.07320.00
7.0.50.0430.08020.11
7.0.40.0170.03720.12
7.0.30.0100.08020.04
7.0.20.0030.08319.98
7.0.10.0100.05720.13
7.0.00.0130.07719.98
5.6.280.0000.07720.78
5.6.250.0030.05020.61
5.6.240.0030.04320.49
5.6.230.0070.08020.51
5.6.220.0030.08720.59
5.6.210.0070.08320.62
5.6.200.0100.07020.96
5.6.190.0100.07721.12
5.6.180.0030.08320.88
5.6.170.0070.07021.00
5.6.160.0130.07320.87
5.6.150.0030.07721.09
5.6.140.0100.07721.03
5.6.130.0170.07720.90
5.6.120.0070.05020.87
5.6.110.0070.07021.18
5.6.100.0070.08320.98
5.6.90.0170.08321.19
5.6.80.0030.04720.42
5.6.70.0070.06720.30
5.6.60.0070.07320.40
5.6.50.0100.06720.31
5.6.40.0130.07720.25
5.6.30.0030.05020.39
5.6.20.0100.04320.48
5.6.10.0070.04020.58
5.6.00.0130.06720.42
5.5.380.0070.03720.52
5.5.370.0070.08020.48
5.5.360.0100.07720.23
5.5.350.0000.05720.34
5.5.340.0070.07320.98
5.5.330.0230.06320.64
5.5.320.0130.07320.77
5.5.310.0100.07320.81
5.5.300.0100.08020.72
5.5.290.0100.08320.72
5.5.280.0030.08320.91
5.5.270.0070.08020.82
5.5.260.0130.07720.68
5.5.250.0030.05320.42
5.5.240.0100.07720.23
5.5.230.0100.06020.31
5.5.220.0030.08320.12
5.5.210.0070.07720.21
5.5.200.0070.07020.24
5.5.190.0170.07020.13
5.5.180.0130.07320.07
5.5.160.0100.07320.05
5.5.150.0130.06320.24
5.5.140.0070.06320.10
5.5.130.0200.07320.27
5.5.120.0030.07020.18
5.5.110.0070.07320.06
5.5.100.0000.08020.05
5.5.90.0100.07720.19
5.5.80.0070.06720.14
5.5.70.0100.08320.12
5.5.60.0070.04020.15
5.5.50.0070.08720.15
5.5.40.0070.07719.97
5.5.30.0100.08020.00
5.5.20.0030.05020.09
5.5.10.0070.07319.87
5.5.00.0070.07720.00
5.4.450.0070.07319.33
5.4.440.0170.05319.60
5.4.430.0100.07319.56
5.4.420.0030.07019.41
5.4.410.0030.05319.28
5.4.400.0130.06719.18
5.4.390.0070.05018.95
5.4.380.0070.06718.93
5.4.370.0030.05319.00
5.4.360.0030.08318.99
5.4.350.0030.08019.13
5.4.340.0130.06319.13
5.4.320.0100.06719.09
5.4.310.0030.07318.96
5.4.300.0030.08019.13
5.4.290.0030.06319.18
5.4.280.0070.07719.03
5.4.270.0070.07719.03
5.4.260.0030.06718.95
5.4.250.0030.06718.98
5.4.240.0130.07018.91
5.4.230.0070.05719.22
5.4.220.0070.07318.98
5.4.210.0100.05319.21
5.4.200.0030.06719.08
5.4.190.0170.03719.00
5.4.180.0070.07019.21
5.4.170.0100.04319.06
5.4.160.0030.06318.98
5.4.150.0130.07319.11
5.4.140.0030.07316.14
5.4.130.0100.03716.29
5.4.120.0070.06316.28
5.4.110.0130.05016.20
5.4.100.0030.06016.50
5.4.90.0100.06316.44
5.4.80.0030.06316.18
5.4.70.0000.07316.52
5.4.60.0070.06716.46
5.4.50.0100.06316.25
5.4.40.0070.07716.35
5.4.30.0030.05716.34
5.4.20.0070.07016.50
5.4.10.0030.06016.37
5.4.00.0000.07315.94
5.3.290.0070.08014.60
5.3.280.0130.06714.42
5.3.270.0070.06014.48
5.3.260.0070.07014.53
5.3.250.0000.08014.68
5.3.240.0070.07014.48
5.3.230.0070.07314.55
5.3.220.0130.07314.57
5.3.210.0100.07014.41
5.3.200.0100.07014.50
5.3.190.0100.07314.58
5.3.180.0030.06714.44
5.3.170.0000.05314.62
5.3.160.0030.06314.48
5.3.150.0070.07714.43
5.3.140.0130.06714.57
5.3.130.0030.06714.42
5.3.120.0100.07714.55
5.3.110.0100.05014.40
5.3.100.0100.07013.98
5.3.90.0030.08014.03
5.3.80.0070.06313.95
5.3.70.0030.06713.95
5.3.60.0130.07013.93
5.3.50.0070.05013.95
5.3.40.0070.07313.87
5.3.30.0070.04013.73
5.3.20.0100.06713.64
5.3.10.0030.07013.52
5.3.00.0000.07013.55
5.2.170.0030.06011.03
5.2.160.0000.06311.06
5.2.150.0030.05011.21
5.2.140.0030.06311.07
5.2.130.0130.05311.05
5.2.120.0030.06011.25
5.2.110.0000.06311.09
5.2.100.0070.06011.05
5.2.90.0000.05711.17
5.2.80.0070.06310.98
5.2.70.0030.06311.25
5.2.60.0000.05011.10
5.2.50.0000.06011.05
5.2.40.0100.05710.78
5.2.30.0070.05710.98
5.2.20.0100.04010.84
5.2.10.0130.05310.76
5.2.00.0070.06010.85
5.1.60.0000.05710.14
5.1.50.0070.05010.14
5.1.40.0000.0579.96
5.1.30.0030.03710.32
5.1.20.0030.05310.34
5.1.10.0000.06010.00
5.1.00.0070.05710.23
5.0.50.0000.0508.51
5.0.40.0070.0408.41
5.0.30.0000.0678.23
5.0.20.0070.0408.44
5.0.10.0000.0478.12
5.0.00.0100.0478.30
4.4.90.0070.0236.72
4.4.80.0000.0276.72
4.4.70.0000.0236.72
4.4.60.0070.0306.72
4.4.50.0070.0206.72
4.4.40.0000.0376.72
4.4.30.0000.0336.72
4.4.20.0030.0176.72
4.4.10.0030.0336.72
4.4.00.0070.0506.72
4.3.110.0000.0376.72
4.3.100.0030.0176.72
4.3.90.0000.0336.72
4.3.80.0030.0536.72
4.3.70.0000.0376.72
4.3.60.0000.0376.72
4.3.50.0100.0136.72
4.3.40.0030.0536.72
4.3.30.0030.0236.72
4.3.20.0000.0276.72
4.3.10.0000.0236.72
4.3.00.0000.0306.72

preferences:
42.54 ms | 400 KiB | 5 Q