3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C implements JsonSerializable { public function jsonSerialize() { return clone($this); } } echo json_encode(new C());

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.0270.01032.21
8.3.50.0280.02630.71
8.3.40.0230.02332.95
8.3.30.0300.02734.42
8.3.20.0100.03034.54
8.3.10.0130.00934.83
8.3.00.0120.00936.33
8.2.180.0040.01116.38
8.2.170.0080.00822.96
8.2.160.0070.00722.21
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0120.00626.16
8.2.120.0000.00820.64
8.2.110.0030.00719.17
8.2.100.0080.00317.78
8.2.90.0030.00518.99
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0080.00018.21
8.2.30.0030.00719.32
8.2.20.0030.00517.54
8.2.10.0070.00017.61
8.2.00.0040.00717.61
8.1.280.0170.00725.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00022.42
8.1.230.0070.00420.91
8.1.220.0080.00018.77
8.1.210.0000.00820.75
8.1.200.0040.00417.13
8.1.190.0030.00517.41
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0040.00418.76
8.1.150.0000.00918.56
8.1.140.0040.00417.36
8.1.130.0000.00717.77
8.1.120.0000.00717.31
8.1.110.0030.00517.24
8.1.100.0040.00417.36
8.1.90.0000.00817.30
8.1.80.0030.00517.46
8.1.70.0000.00717.29
8.1.60.0000.00817.41
8.1.50.0020.00517.41
8.1.40.0040.00417.34
8.1.30.0000.00817.42
8.1.20.0050.00317.43
8.1.10.0000.00817.38
8.1.00.0000.00717.33
8.0.300.0000.00720.11
8.0.290.0000.00717.18
8.0.280.0070.00018.36
8.0.270.0070.00017.30
8.0.260.0070.00016.87
8.0.250.0050.00616.94
8.0.240.0040.00417.04
8.0.230.0000.00716.93
8.0.220.0000.00816.74
8.0.210.0070.00016.84
8.0.200.0000.00616.89
8.0.190.0060.00316.87
8.0.180.0070.00016.75
8.0.170.0040.00316.89
8.0.160.0040.00416.89
8.0.150.0000.00716.72
8.0.140.0040.00416.83
8.0.130.0000.00613.20
8.0.120.0000.00816.78
8.0.110.0040.00416.82
8.0.100.0000.00816.66
8.0.90.0040.00416.64
8.0.80.0000.01416.85
8.0.70.0040.00416.82
8.0.60.0030.00616.82
8.0.50.0040.00416.72
8.0.30.0080.01117.15
8.0.20.0100.00817.40
8.0.10.0040.00417.00
8.0.00.0090.01316.57
7.4.330.0050.00214.97
7.4.320.0000.00616.56
7.4.300.0000.00716.49
7.4.290.0040.00416.34
7.4.280.0030.00316.29
7.4.270.0040.00416.56
7.4.260.0050.00013.23
7.4.250.0040.00416.47
7.4.240.0050.00216.42
7.4.230.0030.00316.34
7.4.220.0160.00316.61
7.4.210.0080.00916.52
7.4.200.0050.00216.30
7.4.190.0070.00016.25
7.4.160.0080.00816.46
7.4.150.0380.01517.40
7.4.140.0100.00817.86
7.4.130.0130.00716.38
7.4.120.0070.00916.39
7.4.110.0130.00716.48
7.4.100.0100.00716.46
7.4.90.0070.01016.59
7.4.80.0110.00619.39
7.4.70.0060.00916.39
7.4.60.0070.01016.52
7.4.50.0030.00616.42
7.4.40.0030.01022.77
7.4.30.0060.01116.39
7.4.00.0060.00915.13
7.3.330.0030.00313.32
7.3.320.0020.00213.05
7.3.310.0000.00716.19
7.3.300.0070.00016.17
7.3.290.0040.01116.34
7.3.280.0040.01016.27
7.3.270.0140.00317.40
7.3.260.0100.01218.24
7.3.250.0090.00916.25
7.3.240.0030.01416.50
7.3.230.0040.01216.59
7.3.210.0120.01216.30
7.3.200.0070.01019.39
7.3.190.0090.01316.23
7.3.180.0110.00516.27
7.3.170.0100.00716.32
7.3.160.0090.00616.52
7.3.120.0100.00314.80
7.2.330.0160.00616.68
7.2.320.0090.01316.30
7.2.310.0190.00016.60
7.2.300.0130.00416.67
7.2.290.0150.00616.52
7.1.70.0200.02028.68
7.1.60.0130.03829.38
7.1.50.0140.02429.10
7.1.00.0070.04034.33
7.0.200.0060.01629.18
7.0.140.0070.08734.31
7.0.90.1230.09733.62
7.0.80.1430.09333.65
7.0.70.1270.06333.71
7.0.60.1270.07733.71
7.0.50.1630.07334.15
7.0.40.0070.05328.46
7.0.30.0070.07028.28
7.0.20.0100.09728.32
7.0.10.0100.10028.30
7.0.00.0170.04728.36
5.6.280.0100.07030.96
5.6.240.0130.09030.48
5.6.230.0070.04730.50
5.6.220.0130.08730.43
5.6.210.0100.04030.41
5.6.200.0030.05730.95
5.6.190.0100.09330.96
5.6.180.0030.10030.91
5.6.170.0130.08330.93
5.6.160.0070.05030.89
5.6.150.0230.07030.84
5.6.140.0100.05730.91
5.6.130.0200.05730.82
5.6.120.0000.06330.95
5.6.110.0030.07730.88
5.6.100.0170.05330.79
5.6.90.0230.07030.89
5.6.80.0100.06330.36
5.6.70.0130.08030.36
5.6.60.0130.08030.26
5.6.50.0170.09746.55
5.6.40.0270.10746.44
5.6.30.0270.11346.61
5.6.20.0270.10046.59
5.6.10.0130.11746.59
5.6.00.0170.11746.47
5.5.380.0200.10746.53
5.5.370.0130.08046.47
5.5.360.0200.12046.56
5.5.350.0200.11746.56
5.5.340.0170.10747.04
5.5.330.0200.11047.02
5.5.320.0270.10046.90
5.5.310.0170.07046.90
5.5.300.0230.11347.00
5.5.290.0130.10746.95
5.5.280.0330.10746.92
5.5.270.0100.08747.02
5.5.260.0200.10346.87
5.5.250.0130.11346.86
5.5.240.0300.09346.38
5.5.230.0170.12046.42
5.5.220.0130.07746.31
5.5.210.0270.09346.34
5.5.200.0230.05746.26
5.5.190.0200.06046.29
5.5.180.0070.07346.29
5.5.160.0200.12746.38
5.5.150.0130.11046.31
5.5.140.0030.12046.28
5.5.130.0170.10346.38
5.5.120.0200.11046.26
5.5.110.0200.11346.32
5.5.100.0100.06746.29
5.5.90.0100.06746.21
5.5.80.0130.12346.24
5.5.70.0270.06746.23
5.5.60.0200.05746.23
5.5.50.0100.06746.15
5.5.40.0030.07046.21
5.5.30.0070.07746.25
5.5.20.0100.06746.17
5.5.10.0030.07346.17
5.5.00.0100.06746.17
5.4.450.0100.08345.58
5.4.440.0100.11745.41
5.4.430.0170.10745.60
5.4.420.0230.11345.40
5.4.410.0200.11345.15
5.4.400.0270.11045.18
5.4.390.0170.07744.93
5.4.380.0200.09344.96
5.4.370.0130.09745.18
5.4.360.0100.07344.96
5.4.350.0130.07345.15
5.4.340.0130.06045.02
5.4.320.0070.12345.07
5.4.310.0230.06745.14
5.4.300.0130.10345.15
5.4.290.0200.11745.16
5.4.280.0270.05044.92
5.4.270.0170.09345.25
5.4.260.0170.06045.13
5.4.250.0130.06044.95
5.4.240.0170.10345.06
5.4.230.0130.11345.24
5.4.220.0170.10044.96
5.4.210.0070.06745.06
5.4.200.0070.06745.11
5.4.190.0200.05045.10
5.4.180.0070.06345.04
5.4.170.0130.06045.05
5.4.160.0070.08044.93
5.4.150.0100.08345.14
5.4.140.0130.06042.42
5.4.130.0230.04742.29
5.4.120.0070.06342.48
5.4.110.0200.05342.46
5.4.100.0170.05742.47
5.4.90.0170.04342.43
5.4.80.0130.05742.43
5.4.70.0100.07042.52
5.4.60.0070.07342.36
5.4.50.0200.05042.41
5.4.40.0170.06342.43
5.4.30.0030.06036.12
5.4.20.0030.07736.20
5.4.10.0130.07036.11
5.4.00.0100.05735.45
5.3.290.0070.05714.69
5.3.280.0000.06314.58
5.3.270.0100.03014.60
5.3.260.0000.03314.61
5.3.250.0070.05714.60
5.3.240.0000.04014.69
5.3.230.0070.03314.70
5.3.220.0000.04014.55
5.3.210.0100.05314.55
5.3.200.0000.04014.48
5.3.190.0070.03314.66
5.3.180.0030.04014.62
5.3.170.0030.03714.55
5.3.160.0100.04714.58
5.3.150.0070.03314.54
5.3.140.0000.04014.66
5.3.130.0000.04014.47
5.3.120.0000.03714.46
5.3.110.0030.05314.66
5.3.100.0030.03714.05
5.3.90.0030.03714.05
5.3.80.0030.03713.95
5.3.70.0170.06314.07
5.3.60.0100.03313.98
5.3.50.0030.04014.01
5.3.40.0030.03014.05
5.3.30.0100.03013.95
5.3.20.0070.03313.69
5.3.10.0030.03013.63
5.3.00.0070.03013.61
5.2.170.0100.03311.07
5.2.160.0000.02711.17
5.2.150.0000.05011.14
5.2.140.0000.03011.14
5.2.130.0030.02311.16
5.2.120.0100.02711.24
5.2.110.0030.02311.20
5.2.100.0030.02711.00
5.2.90.0000.03011.10
5.2.80.0030.03010.99
5.2.70.0070.02311.18
5.2.60.0030.03711.08
5.2.50.0000.05011.05
5.2.40.0030.03010.90
5.2.30.0030.06311.02
5.2.20.0070.04311.06
5.2.10.0070.04710.71
5.2.00.0100.05710.77
5.1.60.0070.0439.98
5.1.50.0030.05010.04
5.1.40.0030.0409.82
5.1.30.0030.05710.45
5.1.20.0070.05310.43
5.1.10.0100.0379.97
5.1.00.0070.03310.14
5.0.50.0000.0278.62
5.0.40.0000.0238.40
5.0.30.0030.0578.29
5.0.20.0100.0238.08
5.0.10.0000.0478.16
5.0.00.0030.0608.24
4.4.90.0000.0306.73
4.4.80.0000.0206.73
4.4.70.0030.0336.73
4.4.60.0000.0376.73
4.4.50.0000.0306.73
4.4.40.0070.0476.73
4.4.30.0030.0336.73
4.4.20.0030.0336.73
4.4.10.0030.0336.73
4.4.00.0000.0306.73
4.3.110.0030.0336.73
4.3.100.0030.0306.73
4.3.90.0070.0306.73
4.3.80.0070.0506.73
4.3.70.0000.0236.73
4.3.60.0070.0176.73
4.3.50.0000.0376.73
4.3.40.0030.0376.73
4.3.30.0030.0376.73
4.3.20.0000.0376.73
4.3.10.0000.0306.73
4.3.00.0000.0276.73

preferences:
45.13 ms | 401 KiB | 5 Q