3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_encode(array("foo" => utf8_encode('è'), "bar" => "bar")), json_last_error() === JSON_ERROR_UTF8); var_dump(json_encode(array("foo" => utf8_encode('è'), "bar" => "bar"), JSON_PARTIAL_OUTPUT_ON_ERROR)); var_dump(json_encode(array("foo" => utf8_encode('è'), "bar" => "bar")));

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.0070.00718.56
8.3.50.0150.00722.12
8.3.40.0090.00618.79
8.3.30.0170.00319.08
8.3.20.0040.00420.34
8.3.10.0050.00320.51
8.3.00.0050.00319.38
8.2.180.0140.00016.36
8.2.170.0120.00622.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.05
8.2.110.0090.00022.13
8.2.100.0120.00019.35
8.2.90.0030.00719.04
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00317.92
8.2.50.0040.00418.07
8.2.40.0050.00317.98
8.2.30.0000.00819.45
8.2.20.0000.00817.65
8.2.10.0040.00418.03
8.2.00.0050.00217.59
8.1.280.0170.00725.92
8.1.270.0080.00022.05
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0110.00023.93
8.1.230.0090.00319.18
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0000.01217.10
8.1.190.0080.00017.10
8.1.180.0080.00018.10
8.1.170.0060.00318.53
8.1.160.0020.00521.89
8.1.150.0070.00018.85
8.1.140.0000.00717.42
8.1.130.0070.00017.85
8.1.120.0030.00317.43
8.1.110.0000.00717.46
8.1.100.0040.00417.48
8.1.90.0030.00317.45
8.1.80.0030.00317.46
8.1.70.0000.00717.41
8.1.60.0060.00317.35
8.1.50.0000.00717.33
8.1.40.0040.00417.36
8.1.30.0040.00417.45
8.1.20.0030.00617.52
8.1.10.0030.00617.43
8.1.00.0000.00917.54
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0040.00418.28
8.0.270.0000.00717.03
8.0.260.0030.00317.14
8.0.250.0030.00316.74
8.0.240.0000.00616.87
8.0.230.0070.00016.76
8.0.220.0030.00316.76
8.0.210.0000.00616.77
8.0.200.0050.00316.84
8.0.190.0040.00416.74
8.0.180.0040.00416.81
8.0.170.0000.00716.70
8.0.160.0040.00316.83
8.0.150.0000.00716.66
8.0.140.0000.00716.78
8.0.130.0000.00513.26
8.0.120.0040.00416.66
8.0.110.0030.00316.80
8.0.100.0000.00816.69
8.0.90.0000.00716.90
8.0.80.0070.00716.79
8.0.70.0000.00816.78
8.0.60.0000.00716.89
8.0.50.0050.00216.64
8.0.30.0110.01417.09
8.0.20.0180.01317.40
8.0.10.0070.00016.89
8.0.00.0150.00716.87
7.4.330.0030.00315.06
7.4.320.0060.00016.45
7.4.300.0040.00416.51
7.4.290.0040.00416.39
7.4.280.0000.00716.58
7.4.270.0000.00716.47
7.4.260.0000.00716.35
7.4.250.0040.00416.52
7.4.240.0030.00316.55
7.4.230.0030.00316.54
7.4.220.0060.00916.60
7.4.210.0030.01316.57
7.4.200.0070.00016.57
7.4.160.0100.01016.36
7.4.150.0040.01317.40
7.4.140.0100.00717.86
7.4.130.0140.00316.39
7.4.120.0090.00916.68
7.4.110.0100.00716.39
7.4.100.0130.00316.46
7.4.90.0080.00816.56
7.4.80.0100.00716.36
7.4.70.0070.01016.32
7.4.60.0070.01016.54
7.4.50.0000.00816.68
7.4.40.0100.00716.18
7.4.30.0030.01316.70
7.4.00.0030.01014.87
7.3.330.0060.00012.90
7.3.320.0030.00313.05
7.3.310.0000.00716.36
7.3.300.0060.00016.20
7.3.290.0060.00916.27
7.3.280.0110.00516.22
7.3.270.0070.01017.40
7.3.260.0120.00616.21
7.3.250.0080.00916.27
7.3.240.0080.00816.29
7.3.230.0090.00916.46
7.3.210.0030.01316.68
7.3.200.0150.00419.39
7.3.190.0090.00916.52
7.3.180.0110.01116.27
7.3.170.0070.01016.27
7.3.160.0120.00416.20
7.2.330.0070.01016.45
7.2.320.0100.01016.45
7.2.310.0100.01416.67
7.2.300.0140.00316.71
7.2.290.0130.01016.37
7.2.00.0100.00719.16
7.1.200.0060.00615.38
7.1.100.0680.01016.24
7.1.70.0030.00517.10
7.1.60.0030.02119.32
7.1.50.0140.00716.84
7.1.00.0000.08022.34
7.0.200.0040.00416.56
7.0.140.0030.07322.18
7.0.110.0130.08019.95
7.0.100.0100.07719.89
7.0.90.0500.05019.91
7.0.80.0530.07319.88
7.0.70.0400.08319.91
7.0.60.0370.07719.64
7.0.50.0430.08020.23
7.0.40.0130.08320.24
7.0.30.0070.08320.14
7.0.20.0000.09020.03
7.0.10.0070.08320.03
7.0.00.0130.07720.02
5.6.280.0070.07020.86
5.6.260.0130.07320.75
5.6.250.0070.08320.49
5.6.240.0100.06720.71
5.6.230.0130.07720.68
5.6.220.0030.05320.65
5.6.210.0070.08720.72
5.6.200.0130.08020.95
5.6.190.0100.07721.05
5.6.180.0170.06720.95
5.6.170.0100.08020.98
5.6.160.0070.05020.96
5.6.150.0130.07721.08
5.6.140.0130.07721.02
5.6.130.0230.02720.95
5.6.120.0070.09021.07
5.6.110.0130.07321.13
5.6.100.0130.05720.93
5.6.90.0000.04721.12
5.6.80.0030.08020.43
5.6.70.0230.05720.64
5.6.60.0130.07320.35
5.6.50.0030.07720.45
5.6.40.0100.08020.30
5.6.30.0070.04720.45
5.6.20.0100.07320.49
5.6.10.0100.07320.52
5.6.00.0100.06720.63
5.5.380.0030.08720.55
5.5.370.0030.08020.34
5.5.360.0100.06020.36
5.5.350.0070.08020.36
5.5.340.0100.06020.74
5.5.330.0230.03721.02
5.5.320.0100.07020.90
5.5.310.0070.08020.83
5.5.300.0070.08320.86
5.5.290.0100.07720.95
5.5.280.0030.08321.01
5.5.270.0100.05020.80
5.5.260.0030.04321.00
5.5.250.0130.04720.51
5.5.240.0000.08320.32
5.5.230.0100.06720.32
5.5.220.0070.06720.18
5.5.210.0070.06720.15
5.5.200.0070.05320.24
5.5.190.0100.07020.31
5.5.180.0070.07320.04
5.5.160.0100.07320.07
5.5.150.0030.07720.04
5.5.140.0100.08020.16
5.5.130.0100.07720.36
5.5.120.0100.07320.22
5.5.110.0100.06720.31
5.5.100.0070.07720.16
5.5.90.0130.04020.16
5.5.80.0130.07320.04
5.5.70.0030.07319.96
5.5.60.0000.05020.15
5.5.50.0030.07720.05
5.5.40.0070.08020.23
5.5.30.0000.08320.25
5.5.20.0100.06320.05
5.5.10.0000.08020.05
5.5.00.0070.07720.00
5.4.450.0030.05719.33
5.4.440.0130.06319.43
5.4.430.0030.08319.59
5.4.420.0170.07019.42
5.4.410.0000.04319.23
5.4.400.0030.07719.18
5.4.390.0100.07019.13
5.4.380.0100.07319.03
5.4.370.0030.07319.00
5.4.360.0100.05019.03
5.4.350.0030.04719.11
5.4.340.0100.05319.08
5.4.320.0070.07719.03
5.4.310.0200.06019.02
5.4.300.0070.06319.00
5.4.290.0030.08319.02
5.4.280.0070.07318.95
5.4.270.0000.07719.12
5.4.260.0070.05019.02
5.4.250.0070.07718.94
5.4.240.0070.04719.02
5.4.230.0100.06718.96
5.4.220.0200.06318.99
5.4.210.0100.06719.09
5.4.200.0030.07019.00
5.4.190.0100.07319.11
5.4.180.0030.04719.10
5.4.170.0100.07019.01
5.4.160.0130.07018.95
5.4.150.0100.07318.91
5.4.140.0030.05016.49
5.4.130.0030.07016.21
5.4.120.0070.07016.46
5.4.110.0100.06716.50
5.4.100.0070.06716.48
5.4.90.0070.05316.28
5.4.80.0100.06716.35
5.4.70.0100.07016.51
5.4.60.0070.06716.46
5.4.50.0030.07016.38
5.4.40.0070.07316.42
5.4.30.0100.06716.25
5.4.20.0100.07016.37
5.4.10.0070.05316.15
5.4.00.0070.07315.93
5.3.290.0000.08014.59
5.3.280.0030.07314.59
5.3.270.0030.08014.61
5.3.260.0000.08014.50
5.3.250.0070.07014.67
5.3.240.0100.05314.48
5.3.230.0100.07014.47
5.3.220.0100.07314.42
5.3.210.0030.07014.51
5.3.200.0070.07714.58
5.3.190.0130.07314.56
5.3.180.0070.07014.55
5.3.170.0030.07314.66
5.3.160.0100.07314.41
5.3.150.0030.08014.44
5.3.140.0070.07714.42
5.3.130.0030.08314.55
5.3.120.0100.07714.42
5.3.110.0030.07714.39
5.3.100.0030.07714.10
5.3.90.0030.07713.91
5.3.80.0100.06713.90
5.3.70.0030.06314.09
5.3.60.0030.07313.82
5.3.50.0100.07013.84
5.3.40.0070.07313.79
5.3.30.0100.07313.92
5.3.20.0170.06313.76
5.3.10.0070.06313.71
5.3.00.0030.07313.48
5.2.170.0000.04311.87
5.2.160.0100.04711.87
5.2.150.0000.06311.87
5.2.140.0070.05011.87
5.2.130.0000.04711.87
5.2.120.0100.04711.87
5.2.110.0070.05711.87
5.2.100.0030.06011.87
5.2.90.0000.05311.87
5.2.80.0100.06011.87
5.2.70.0130.05311.87
5.2.60.0000.04011.87
5.2.50.0070.04711.87
5.2.40.0030.06711.87
5.2.30.0100.05711.87
5.2.20.0130.05311.87
5.2.10.0030.06011.87
5.2.00.0030.06011.87
5.1.60.0100.04711.87
5.1.50.0170.04311.87
5.1.40.0070.05011.87
5.1.30.0070.04711.87
5.1.20.0070.05311.87
5.1.10.0030.04711.87
5.1.00.0100.05011.87
5.0.50.0000.04711.87
5.0.40.0070.03711.87
5.0.30.0030.06311.87
5.0.20.0100.03711.87
5.0.10.0030.04711.87
5.0.00.0030.05311.87
4.4.90.0000.02011.87
4.4.80.0000.03711.87
4.4.70.0070.03311.87
4.4.60.0030.03311.87
4.4.50.0030.01711.87
4.4.40.0070.04311.87
4.4.30.0000.03711.87
4.4.20.0000.02311.87
4.4.10.0030.03011.87
4.4.00.0000.03711.87
4.3.110.0000.03711.87
4.3.100.0000.03311.87
4.3.90.0000.03711.87
4.3.80.0030.05011.87
4.3.70.0030.03311.87
4.3.60.0000.03711.87
4.3.50.0000.03711.87
4.3.40.0100.04311.87
4.3.30.0030.01711.87
4.3.20.0000.02011.87
4.3.10.0000.02011.87
4.3.00.0030.03011.87

preferences:
57.08 ms | 401 KiB | 5 Q