3v4l.org

run code in 200+ PHP versions simultaneously
<?php echo json_encode(array(1=>2,3=>'4'),JSON_NUMERIC_CHECK); echo json_encode(array(1=>2,3=>'4'));

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)
7.4.00.0120.00414.66
7.3.120.0100.00714.89
7.2.60.0080.00816.80
7.1.200.0040.01115.71
7.1.100.0030.01017.58
7.1.70.0130.00316.79
7.1.60.0000.01119.29
7.1.50.0160.00634.40
7.1.00.0070.07322.58
7.0.200.0060.00316.63
7.0.140.0000.07722.04
7.0.90.0130.07719.91
7.0.80.0030.06719.95
7.0.70.0000.08719.88
7.0.60.0130.08020.05
7.0.50.0100.05020.32
7.0.40.0100.08320.11
7.0.30.0030.08320.15
7.0.20.0000.04719.95
7.0.10.0100.04319.91
7.0.00.0000.08320.18
5.6.280.0000.07720.80
5.6.240.0030.05320.75
5.6.230.0030.04720.61
5.6.220.0070.08020.64
5.6.210.0070.06720.64
5.6.200.0030.08321.11
5.6.190.0000.09321.16
5.6.180.0100.07721.02
5.6.170.0070.04721.01
5.6.160.0100.06321.08
5.6.150.0100.07320.98
5.6.140.0070.08021.01
5.6.130.0130.04321.07
5.6.120.0100.04721.13
5.6.110.0170.07021.03
5.6.100.0170.05720.93
5.6.90.0030.06020.93
5.6.80.0100.08020.45
5.6.70.0100.08320.54
5.6.60.0100.07720.38
5.6.50.0070.08320.43
5.6.40.0100.07020.36
5.6.30.0030.08320.52
5.6.20.0070.07720.37
5.6.10.0030.06320.40
5.6.00.0100.04020.36
5.5.380.0100.08020.34
5.5.370.0030.07720.34
5.5.360.0070.08020.49
5.5.350.0100.05020.38
5.5.340.0130.07320.75
5.5.330.0100.08020.79
5.5.320.0100.06020.88
5.5.310.0000.04720.88
5.5.300.0130.08020.72
5.5.290.0070.08320.89
5.5.280.0130.08020.88
5.5.270.0130.04720.87
5.5.260.0100.04020.87
5.5.250.0030.04320.65
5.5.240.0130.07320.25
5.5.230.0100.05720.17
5.5.220.0030.05020.00
5.5.210.0070.08020.19
5.5.200.0000.08320.14
5.5.190.0070.05320.05
5.5.180.0100.07320.21
5.5.160.0030.06320.14
5.5.150.0030.08020.09
5.5.140.0070.05020.17
5.5.130.0030.04320.16
5.5.120.0100.04020.11
5.5.110.0030.08320.14
5.5.100.0100.07020.09
5.5.90.0100.08020.06
5.5.80.0130.05320.09
5.5.70.0070.07320.07
5.5.60.0100.03320.05
5.5.50.0070.08319.99
5.5.40.0070.07720.16
5.5.30.0070.08320.13
5.5.20.0070.05719.95
5.5.10.0200.06020.04
5.5.00.0130.04720.02
5.4.450.0100.06019.38
5.4.440.0070.09019.37
5.4.430.0130.04719.35
5.4.420.0030.04319.36
5.4.410.0030.05719.22
5.4.400.0100.07318.90
5.4.390.0030.06318.81
5.4.380.0000.08319.23
5.4.370.0130.07319.23
5.4.360.0170.06318.90
5.4.350.0170.06719.08
5.4.340.0000.08018.78
5.4.320.0170.06018.90
5.4.310.0170.05318.81
5.4.300.0070.05318.90
5.4.290.0100.04319.14
5.4.280.0000.06318.89
5.4.270.0070.04319.06
5.4.260.0130.07018.81
5.4.250.0070.07019.01
5.4.240.0130.07318.95
5.4.230.0170.05318.82
5.4.220.0100.04019.09
5.4.210.0070.08019.09
5.4.200.0100.07019.02
5.4.190.0200.06318.90
5.4.180.0070.08019.05
5.4.170.0130.07018.89
5.4.160.0100.07718.94
5.4.150.0100.07018.90
5.4.140.0070.07716.23
5.4.130.0000.07716.23
5.4.120.0100.06716.21
5.4.110.0100.06016.24
5.4.100.0000.07316.39
5.4.90.0030.07016.41
5.4.80.0130.03316.41
5.4.70.0000.05716.43
5.4.60.0070.07016.38
5.4.50.0030.04316.28
5.4.40.0000.07316.30
5.4.30.0100.06716.39
5.4.20.0100.07316.19
5.4.10.0070.07316.23
5.4.00.0070.05315.73
5.3.290.0070.06014.62
5.3.280.0100.07714.58
5.3.270.0170.06314.60
5.3.260.0070.07314.50
5.3.250.0130.06314.54
5.3.240.0030.07314.61
5.3.230.0130.03714.44
5.3.220.0000.05714.38
5.3.210.0070.08014.55
5.3.200.0100.07014.54
5.3.190.0030.07714.43
5.3.180.0100.05714.52
5.3.170.0000.08314.41
5.3.160.0100.07014.42
5.3.150.0100.05014.52
5.3.140.0070.07314.42
5.3.130.0030.07714.52
5.3.120.0000.06714.40
5.3.110.0030.06314.52
5.3.100.0030.06314.02
5.3.90.0070.07313.83
5.3.80.0100.07013.99
5.3.70.0130.05713.95
5.3.60.0170.06013.85
5.3.50.0070.05013.88
5.3.40.0000.06313.92
5.3.30.0100.07013.66
5.3.20.0130.06713.68
5.3.10.0070.07713.59
5.3.00.0130.06713.63
5.2.170.0030.03311.13
5.2.160.0030.06311.14
5.2.150.0070.06311.21
5.2.140.0100.04711.00
5.2.130.0070.06310.95
5.2.120.0070.05710.93
5.2.110.0030.06710.89
5.2.100.0070.06010.94
5.2.90.0070.06011.10
5.2.80.0000.04310.88
5.2.70.0100.05710.88
5.2.60.0100.05711.04
5.2.50.0070.06310.88
5.2.40.0130.05310.97
5.2.30.0030.04711.04
5.2.20.0030.06310.77
5.2.10.0000.04710.77
5.2.00.0130.04710.57
5.1.60.0070.05010.03
5.1.50.0030.05010.07
5.1.40.0070.05010.05
5.1.30.0030.05010.26
5.1.20.0030.05310.27
5.1.10.0030.04010.09
5.1.00.0030.03010.12
5.0.50.0030.0508.59
5.0.40.0100.0338.41
5.0.30.0070.0608.24
5.0.20.0030.0408.31
5.0.10.0030.0378.24
5.0.00.0100.0637.99
4.4.90.0030.0337.39
4.4.80.0000.0277.39
4.4.70.0030.0177.39
4.4.60.0070.0307.39
4.4.50.0030.0277.39
4.4.40.0070.0337.39
4.4.30.0000.0377.39
4.4.20.0100.0207.39
4.4.10.0030.0337.39
4.4.00.0070.0477.39
4.3.110.0070.0277.39
4.3.100.0030.0277.39
4.3.90.0030.0307.39
4.3.80.0030.0507.39
4.3.70.0000.0337.39
4.3.60.0030.0277.39
4.3.50.0000.0277.39
4.3.40.0030.0537.39
4.3.30.0000.0407.39
4.3.20.0030.0337.39
4.3.10.0030.0377.39
4.3.00.0000.0377.39