3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_encode(["foo" => chr(132), "bar" => "bar"]), json_last_error() === JSON_ERROR_UTF8); var_dump(json_encode(["foo" => chr(132), "bar" => "bar"], JSON_PARTIAL_OUTPUT_ON_ERROR));

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.0110.00318.89
8.3.30.0030.01018.92
8.3.20.0070.00020.21
8.3.10.0040.00423.65
8.3.00.0040.00420.86
8.2.170.0070.00722.96
8.2.160.0100.00320.30
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0020.00522.29
8.2.110.0060.00322.25
8.2.100.0070.00417.78
8.2.90.0050.00319.28
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0030.00619.95
8.2.30.0030.00518.19
8.2.20.0040.00417.65
8.2.10.0040.00417.99
8.2.00.0000.00817.53
8.1.270.0090.00623.86
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0040.00423.93
8.1.230.0060.00619.19
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0000.00817.10
8.1.180.0060.00319.01
8.1.170.0080.00018.37
8.1.160.0050.00321.94
8.1.150.0070.00018.46
8.1.140.0000.00717.31
8.1.130.0030.00317.79
8.1.120.0080.00017.23
8.1.110.0000.00817.33
8.1.100.0040.00417.36
8.1.90.0000.00717.36
8.1.80.0040.00417.28
8.1.70.0030.00317.28
8.1.60.0030.00617.45
8.1.50.0000.00817.38
8.1.40.0030.00517.44
8.1.30.0000.00817.45
8.1.20.0000.00717.43
8.1.10.0040.00417.51
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0000.00717.04
8.0.280.0000.00718.31
8.0.270.0080.00017.04
8.0.260.0030.00317.18
8.0.250.0040.00416.87
8.0.240.0070.00316.82
8.0.230.0000.00816.86
8.0.220.0050.00216.76
8.0.210.0000.00716.76
8.0.200.0030.00316.80
8.0.190.0000.00716.75
8.0.180.0040.00416.80
8.0.170.0040.00416.65
8.0.160.0070.00016.63
8.0.150.0000.00716.78
8.0.140.0040.00416.75
8.0.130.0050.00013.18
8.0.120.0030.00516.75
8.0.110.0030.00516.80
8.0.100.0050.00316.65
8.0.90.0040.00416.55
8.0.80.0100.00616.79
8.0.70.0000.00716.65
8.0.60.0040.00416.79
8.0.50.0070.00016.70
8.0.30.0100.01016.80
8.0.20.0090.00917.40
8.0.10.0040.00416.73
8.0.00.0060.01116.52
7.4.330.0000.00515.00
7.4.320.0000.00816.48
7.4.300.0040.00416.50
7.4.290.0060.00016.37
7.4.280.0000.00816.50
7.4.270.0030.00316.54
7.4.260.0000.00716.52
7.4.250.0040.00416.48
7.4.240.0030.00416.53
7.4.230.0030.00316.48
7.4.220.0090.00916.38
7.4.210.0080.00516.50
7.4.200.0000.00716.55
7.4.190.0040.00416.44
7.4.160.0040.01216.30
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0100.01016.60
7.4.120.0080.00916.30
7.4.110.0130.00316.28
7.4.100.0070.01016.35
7.4.90.0090.00916.43
7.4.80.0120.01019.39
7.4.70.0110.01016.42
7.4.60.0130.00316.42
7.4.50.0000.00816.52
7.4.40.0030.01416.50
7.4.30.0150.00616.46
7.4.00.0130.00314.78
7.3.330.0050.00012.95
7.3.320.0030.00312.91
7.3.310.0040.00416.05
7.3.300.0030.00316.18
7.3.290.0040.01116.16
7.3.280.0080.00716.20
7.3.270.0110.01117.40
7.3.260.0080.00816.19
7.3.250.0170.00316.31
7.3.240.0080.00816.18
7.3.230.0060.01016.39
7.3.210.0070.01016.45
7.3.200.0160.00019.39
7.3.190.0070.01016.45
7.3.180.0070.00716.31
7.3.170.0060.00916.48
7.3.160.0090.00616.29
7.3.120.0050.01114.66
7.3.110.0050.01114.77
7.3.100.0040.01114.70
7.3.90.0040.00614.77
7.3.80.0030.01114.65
7.3.70.0020.00814.68
7.3.60.0060.00614.76
7.3.50.0030.01014.61
7.3.40.0010.01014.77
7.3.30.0070.00514.85
7.3.20.0000.01116.65
7.3.10.0060.00516.43
7.3.00.0060.00616.60
7.2.330.0090.01316.59
7.2.320.0150.01316.62
7.2.310.0000.01716.37
7.2.300.0090.00916.32
7.2.290.0040.01216.49
7.2.250.0030.01515.11
7.2.240.0070.00814.71
7.2.230.0080.00815.08
7.2.220.0040.01014.79
7.2.210.0070.00815.01
7.2.200.0020.01014.70
7.2.190.0090.00814.91
7.2.180.0020.01314.96
7.2.170.0110.00514.84
7.2.160.0070.00414.78
7.2.150.0070.01017.03
7.2.140.0030.01016.47
7.2.130.0170.00316.66
7.2.120.0020.01516.65
7.2.110.0070.00816.58
7.2.100.0120.00616.67
7.2.90.0090.00616.74
7.2.80.0100.00716.46
7.2.70.0100.00816.39
7.2.60.0080.00716.79
7.2.50.0080.00716.64
7.2.40.0020.01216.52
7.2.30.0050.00716.71
7.2.20.0040.00916.72
7.2.10.0060.00916.68
7.2.00.0050.00717.65
7.1.330.0020.01315.92
7.1.320.0080.00615.71
7.1.310.0030.00915.75
7.1.300.0070.00515.67
7.1.290.0060.00515.75
7.1.280.0030.01115.63
7.1.270.0050.00915.62
7.1.260.0040.00915.70
7.1.250.0090.00715.44
7.1.200.0030.01015.41
7.1.100.0120.00617.95
7.1.70.0000.00716.80
7.1.60.0030.02019.46
7.1.50.0230.01016.90
7.1.00.0000.08022.40
7.0.200.0040.00416.77
7.0.140.0000.07721.97
7.0.90.0770.07319.81
7.0.80.0570.07319.81
7.0.70.0530.05719.80
7.0.60.0600.04719.91
7.0.50.0630.07320.23
7.0.40.0170.06720.11
7.0.30.0130.07320.14
7.0.20.0070.04320.08
7.0.10.0130.08020.02
7.0.00.0000.09020.02
5.6.280.0000.07721.14
5.6.240.0070.05320.46
5.6.230.0100.08020.69
5.6.220.0030.06020.59
5.6.210.0070.05020.53
5.6.200.0270.06321.14
5.6.190.0070.06021.07
5.6.180.0100.08321.11
5.6.170.0100.05021.05
5.6.160.0030.08321.03
5.6.150.0170.07721.05
5.6.140.0100.08021.13
5.6.130.0170.06721.00
5.6.120.0100.05321.10
5.6.110.0100.07721.09
5.6.100.0070.08321.05
5.6.90.0130.08021.05
5.6.80.0130.07720.43
5.6.70.0070.07020.42
5.6.60.0200.06320.44
5.6.50.0000.08320.52
5.6.40.0130.07320.31
5.6.30.0030.08020.42
5.6.20.0070.05020.27
5.6.10.0100.07320.39
5.6.00.0000.05320.51
5.5.380.0170.07720.30
5.5.370.0030.08720.30
5.5.360.0070.08320.29
5.5.350.0070.07720.38
5.5.340.0030.04720.88
5.5.330.0070.04020.77
5.5.320.0070.07720.64
5.5.310.0000.09320.86
5.5.300.0000.04720.79
5.5.290.0030.08320.82
5.5.280.0070.08720.72
5.5.270.0070.04320.63
5.5.260.0100.07720.90
5.5.250.0070.08020.68
5.5.240.0030.04720.27
5.5.230.0070.04020.21
5.5.220.0070.07720.17
5.5.210.0130.07020.26
5.5.200.0100.07720.15
5.5.190.0130.06720.12
5.5.180.0130.07720.14
5.5.160.0170.04320.14
5.5.150.0030.08020.07
5.5.140.0030.07720.20
5.5.130.0100.06020.17
5.5.120.0030.04720.26
5.5.110.0070.08720.14
5.5.100.0070.05020.01
5.5.90.0170.07020.07
5.5.80.0070.05720.16
5.5.70.0030.05320.09
5.5.60.0100.06320.15
5.5.50.0070.08020.14
5.5.40.0070.05020.06
5.5.30.0170.06720.04
5.5.20.0100.05320.09
5.5.10.0100.07720.08
5.5.00.0070.08020.10
5.4.450.0130.06319.36
5.4.440.0130.06719.40
5.4.430.0100.05019.45
5.4.420.0030.05719.30
5.4.410.0070.06019.27
5.4.400.0030.05019.23
5.4.390.0100.07319.12
5.4.380.0030.08318.96
5.4.370.0100.07319.10
5.4.360.0030.08018.96
5.4.350.0030.08019.05
5.4.340.0070.05318.81
5.4.320.0100.06318.90
5.4.310.0000.06019.07
5.4.300.0030.04719.01
5.4.290.0170.06718.94
5.4.280.0030.07019.14
5.4.270.0200.04319.03
5.4.260.0030.07318.98
5.4.250.0070.07719.12
5.4.240.0070.06719.02
5.4.230.0000.08719.11
5.4.220.0130.05018.81
5.4.210.0030.04718.77
5.4.200.0130.06719.05
5.4.190.0070.07718.95
5.4.180.0130.07319.02
5.4.170.0070.07718.79
5.4.160.0030.08018.88
5.4.150.0000.07718.94
5.4.140.0030.07016.22
5.4.130.0000.04716.22
5.4.120.0200.06016.32
5.4.110.0100.07016.23
5.4.100.0030.05316.33
5.4.90.0030.04016.34
5.4.80.0030.07716.41
5.4.70.0030.05016.41
5.4.60.0030.05316.29
5.4.50.0100.07316.31
5.4.40.0070.07316.47
5.4.30.0030.05316.23
5.4.20.0070.04016.18
5.4.10.0100.04716.20
5.4.00.0000.05015.66
5.3.290.0000.08014.60
5.3.280.0130.06014.46
5.3.270.0100.04014.43
5.3.260.0070.05714.57
5.3.250.0170.04714.59
5.3.240.0230.04314.60
5.3.230.0100.07714.55
5.3.220.0130.07014.55
5.3.210.0130.07014.56
5.3.200.0030.05314.55
5.3.190.0130.07014.48
5.3.180.0070.06314.40
5.3.170.0100.05714.45
5.3.160.0200.06314.38
5.3.150.0070.08014.50
5.3.140.0070.07714.56
5.3.130.0070.04014.41
5.3.120.0100.04014.37
5.3.110.0030.07714.51
5.3.100.0030.08013.95
5.3.90.0070.07714.02
5.3.80.0070.04314.02
5.3.70.0100.07013.99
5.3.60.0170.05713.86
5.3.50.0000.06313.94
5.3.40.0100.07013.71
5.3.30.0070.07013.91
5.3.20.0100.03713.59
5.3.10.0070.07013.61
5.3.00.0030.06713.54
5.2.170.0100.04711.13
5.2.160.0070.05710.98
5.2.150.0030.06310.97
5.2.140.0100.05011.22
5.2.130.0030.06311.12
5.2.120.0030.06011.06
5.2.110.0170.04711.10
5.2.100.0100.05310.89
5.2.90.0030.05011.06
5.2.80.0070.05710.89
5.2.70.0000.04711.13
5.2.60.0070.07011.08
5.2.50.0070.03010.80
5.2.40.0100.03310.85
5.2.30.0030.05710.93
5.2.20.0000.04010.84
5.2.10.0000.06710.90
5.2.00.0070.03310.74
5.1.60.0030.05010.04
5.1.50.0000.05310.06
5.1.40.0070.0309.96
5.1.30.0030.05710.37
5.1.20.0070.05310.41
5.1.10.0100.03710.05
5.1.00.0030.05010.10
5.0.50.0030.0338.54
5.0.40.0030.0408.39
5.0.30.0070.0438.23
5.0.20.0070.0408.29
5.0.10.0000.0408.25
5.0.00.0100.0308.22
4.4.90.0000.0377.02
4.4.80.0070.0307.02
4.4.70.0000.0407.02
4.4.60.0000.0307.02
4.4.50.0100.0277.02
4.4.40.0070.0437.02
4.4.30.0030.0307.02
4.4.20.0030.0337.02
4.4.10.0030.0307.02
4.4.00.0070.0377.02
4.3.110.0100.0277.02
4.3.100.0070.0307.02
4.3.90.0070.0307.02
4.3.80.0000.0577.02
4.3.70.0030.0177.02
4.3.60.0030.0307.02
4.3.50.0000.0377.02
4.3.40.0030.0507.02
4.3.30.0000.0377.02
4.3.20.0030.0307.02
4.3.10.0000.0377.02
4.3.00.0000.0337.02

preferences:
46.14 ms | 400 KiB | 5 Q