3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); $date = new DateTime(); jsonSerialize(); echo json_encode($date,JSON_FORCE_OBJECT); var_dump(json_last_error(), json_last_error_msg());

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.00716.61
8.3.50.0060.00918.03
8.3.40.0070.00718.95
8.3.30.0070.00719.22
8.3.20.0000.00820.34
8.3.10.0070.00721.73
8.3.00.0040.00419.02
8.2.180.0060.01218.22
8.2.170.0140.00722.96
8.2.160.0030.01020.49
8.2.150.0030.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00720.48
8.2.110.0060.00319.39
8.2.100.0110.00019.64
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0030.00617.72
8.2.60.0000.00718.04
8.2.50.0060.00318.07
8.2.40.0040.00419.88
8.2.30.0070.00018.30
8.2.20.0000.00817.93
8.2.10.0000.00717.98
8.2.00.0030.00617.97
8.1.280.0180.00325.92
8.1.270.0110.00423.82
8.1.260.0150.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00419.41
8.1.230.0110.00019.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0050.00918.60
8.1.160.0050.00221.84
8.1.150.0030.00518.62
8.1.140.0000.00717.51
8.1.130.0040.00417.89
8.1.120.0050.00317.67
8.1.110.0000.00717.57
8.1.100.0040.00417.57
8.1.90.0080.00017.59
8.1.80.0050.00217.43
8.1.70.0000.00817.50
8.1.60.0040.00417.63
8.1.50.0000.00817.50
8.1.40.0050.00217.65
8.1.30.0080.00017.70
8.1.20.0030.00517.85
8.1.10.0040.00417.66
8.1.00.0000.00717.62
8.0.300.0070.00018.77
8.0.290.0040.00417.15
8.0.280.0070.00018.47
8.0.270.0040.00417.25
8.0.260.0030.00317.23
8.0.250.0030.00317.05
8.0.240.0000.00917.14
8.0.230.0050.00317.15
8.0.220.0050.00216.98
8.0.210.0000.00817.09
8.0.200.0000.00717.05
8.0.190.0000.00717.14
8.0.180.0040.00417.00
8.0.170.0050.00317.05
8.0.160.0040.00417.02
8.0.150.0030.00617.10
8.0.140.0040.00417.07
8.0.130.0030.00313.54
8.0.120.0000.00816.94
8.0.110.0040.00417.12
8.0.100.0040.00417.05
8.0.90.0000.00817.07
8.0.80.0090.01217.00
8.0.70.0000.00817.07
8.0.60.0040.00417.11
8.0.50.0000.00717.09
8.0.30.0120.01117.14
8.0.20.0090.00917.40
8.0.10.0050.00317.14
8.0.00.0070.01116.98
7.4.330.0000.00615.14
7.4.320.0030.00316.46
7.4.300.0050.00216.67
7.4.290.0000.00816.49
7.4.280.0040.00416.63
7.4.270.0040.00416.73
7.4.260.0030.00316.75
7.4.250.0000.00716.58
7.4.240.0050.00216.59
7.4.230.0050.00216.79
7.4.220.0090.00916.66
7.4.210.0060.00716.71
7.4.200.0050.00216.46
7.4.190.0000.00816.73
7.4.160.0090.00616.67
7.4.150.0090.01517.40
7.4.140.0020.01517.86
7.4.130.0090.00816.69
7.4.120.0130.00416.61
7.4.110.0070.01016.74
7.4.100.0120.00916.68
7.4.90.0090.00916.65
7.4.80.0100.01319.39
7.4.70.0060.00916.78
7.4.60.0120.00616.54
7.4.50.0030.00516.61
7.4.40.0060.01016.49
7.4.30.0060.01116.52
7.4.00.0040.01514.80
7.3.330.0050.00013.43
7.3.320.0050.00013.31
7.3.310.0050.00216.34
7.3.300.0040.00416.28
7.3.290.0030.01216.41
7.3.280.0070.01116.42
7.3.270.0100.00717.40
7.3.260.0090.00916.45
7.3.250.0080.01116.51
7.3.240.0100.00716.43
7.3.230.0040.01516.39
7.3.210.0140.00716.60
7.3.200.0140.00419.39
7.3.190.0070.01016.63
7.3.180.0120.00316.57
7.3.170.0140.00416.57
7.3.160.0030.01316.50
7.3.120.0090.00614.78
7.2.330.0130.00316.83
7.2.320.0130.00716.70
7.2.310.0110.00716.47
7.2.300.0030.01316.78
7.2.290.0090.00916.80
7.2.60.0120.00317.00
7.2.00.0070.01019.65
7.1.200.0100.00315.94
7.1.100.0050.01018.01
7.1.70.0040.01117.41
7.1.60.0070.01019.46
7.1.50.0110.00716.96
7.1.00.0030.07722.48
7.0.200.0040.00417.00
7.0.140.0030.07321.92
7.0.90.0570.08320.00
7.0.80.0530.06719.89
7.0.70.0670.07019.90
7.0.60.0600.07319.96
7.0.50.0170.06720.36
7.0.40.0070.04320.13
7.0.30.0070.07720.11
7.0.20.0030.08020.04
7.0.10.0130.04320.05
7.0.00.0030.09020.11
5.6.280.0070.07020.89
5.6.240.0070.05020.50
5.6.230.0070.07020.59
5.6.220.0000.07020.55
5.6.210.0070.04020.65
5.6.200.0100.06021.13
5.6.190.0000.05721.03
5.6.180.0170.07021.00
5.6.170.0030.04721.08
5.6.160.0000.09321.10
5.6.150.0070.08721.05
5.6.140.0100.05021.10
5.6.130.0100.05320.99
5.6.120.0100.08021.11
5.6.110.0130.07321.00
5.6.100.0030.08020.92
5.6.90.0070.08021.05
5.6.80.0100.02720.41
5.6.70.0070.05720.30
5.6.60.0130.06720.39
5.6.50.0100.07320.33
5.6.40.0170.07020.36
5.6.30.0030.08020.35
5.6.20.0030.04020.52
5.6.10.0070.04020.45
5.6.00.0030.05720.33
5.5.380.0070.04320.44
5.5.370.0130.06020.39
5.5.360.0100.06720.43
5.5.350.0100.05320.43
5.5.340.0130.07320.80
5.5.330.0130.07320.82
5.5.320.0130.07720.72
5.5.310.0100.08320.79
5.5.300.0100.07320.89
5.5.290.0070.07720.72
5.5.280.0070.04020.76
5.5.270.0000.08720.79
5.5.260.0100.07320.86
5.5.250.0030.04720.69
5.5.240.0130.07320.17
5.5.230.0030.08320.16
5.5.220.0070.03720.13
5.5.210.0100.07320.27
5.5.200.0070.07320.23
5.5.190.0100.04320.11
5.5.180.0070.04020.20
5.5.160.0070.08320.20
5.5.150.0070.04720.07
5.5.140.0070.07720.25
5.5.130.0030.04320.11
5.5.120.0170.07320.10
5.5.110.0000.08720.24
5.5.100.0070.08020.15
5.5.90.0100.07020.10
5.5.80.0270.04320.05
5.5.70.0130.07319.96
5.5.60.0030.08019.99
5.5.50.0070.06020.10
5.5.40.0100.07319.89
5.5.30.0130.07020.07
5.5.20.0070.08020.02
5.5.10.0100.07019.93
5.5.00.0130.07019.90
5.4.450.0100.07719.36
5.4.440.0070.06719.14
5.4.430.0070.06019.55
5.4.420.0030.06319.41
5.4.410.0070.03719.32
5.4.400.0030.07719.13
5.4.390.0100.04718.95
5.4.380.0100.03319.09
5.4.370.0100.05019.14
5.4.360.0030.08318.81
5.4.350.0000.04718.90
5.4.340.0000.03718.93
5.4.320.0070.06319.14
5.4.310.0070.05319.11
5.4.300.0000.08318.94
5.4.290.0070.05319.09
5.4.280.0100.07718.78
5.4.270.0070.08019.07
5.4.260.0070.05019.11
5.4.250.0070.04719.08
5.4.240.0000.05319.22
5.4.230.0070.08319.14
5.4.220.0000.07719.10
5.4.210.0000.09018.94
5.4.200.0070.05719.05
5.4.190.0070.07319.05
5.4.180.0170.04319.06
5.4.170.0070.07718.80
5.4.160.0070.05019.23
5.4.150.0030.05019.07
5.4.140.0030.07016.34
5.4.130.0130.06316.31
5.4.120.0030.07316.28
5.4.110.0130.06316.36
5.4.100.0100.03316.29
5.4.90.0030.04716.32
5.4.80.0200.04016.41
5.4.70.0030.07316.30
5.4.60.0030.06016.19
5.4.50.0070.07016.26
5.4.40.0100.07016.36
5.4.30.0100.07016.39
5.4.20.0070.07016.27
5.4.10.0100.04716.19
5.4.00.0100.06015.78
5.3.290.0070.04014.61
5.3.280.0100.07314.60
5.3.270.0070.07714.60
5.3.260.0030.06314.59
5.3.250.0000.07014.61
5.3.240.0200.03714.58
5.3.230.0070.07714.46
5.3.220.0100.07314.40
5.3.210.0030.05014.56
5.3.200.0130.03714.43
5.3.190.0070.05014.52
5.3.180.0130.07314.55
5.3.170.0070.07314.39
5.3.160.0070.04714.40
5.3.150.0000.08014.52
5.3.140.0070.05314.41
5.3.130.0100.06314.41
5.3.120.0030.07014.41
5.3.110.0100.07714.37
5.3.100.0030.07713.98
5.3.90.0100.06713.99
5.3.80.0030.07713.87
5.3.70.0070.06314.02
5.3.60.0030.04713.99
5.3.50.0100.04313.92
5.3.40.0030.06313.92
5.3.30.0100.04013.91
5.3.20.0000.04713.68
5.3.10.0100.06313.66
5.3.00.0100.06713.48
5.2.170.0070.06011.14
5.2.160.0070.06311.13
5.2.150.0030.06011.19
5.2.140.0000.03311.16
5.2.130.0000.06310.95
5.2.120.0070.03311.06
5.2.110.0030.03011.15
5.2.100.0100.05310.94
5.2.90.0100.03711.06
5.2.80.0000.03711.09
5.2.70.0070.03310.93
5.2.60.0070.05311.04
5.2.50.0070.05711.05
5.2.40.0030.06011.06
5.2.30.0030.05311.04
5.2.20.0000.06311.01
5.2.10.0100.05710.91
5.2.00.0100.05710.61
5.1.60.0070.0479.87
5.1.50.0070.02310.00
5.1.40.0100.05010.05
5.1.30.0030.06010.25
5.1.20.0070.05310.41
5.1.10.0100.04710.09
5.1.00.0070.04710.11
5.0.50.0030.0478.56
5.0.40.0000.0278.39
5.0.30.0070.0478.27
5.0.20.0030.0478.24
5.0.10.0030.0438.26
5.0.00.0000.0678.21
4.4.90.0030.0137.18
4.4.80.0030.0207.18
4.4.70.0030.0377.18
4.4.60.0070.0277.18
4.4.50.0000.0237.18
4.4.40.0100.0477.18
4.4.30.0030.0337.18
4.4.20.0000.0377.18
4.4.10.0030.0337.18
4.4.00.0000.0437.18
4.3.110.0100.0307.18
4.3.100.0000.0277.18
4.3.90.0000.0337.18
4.3.80.0030.0507.18
4.3.70.0070.0177.18
4.3.60.0070.0307.18
4.3.50.0000.0337.18
4.3.40.0000.0407.18
4.3.30.0070.0307.18
4.3.20.0070.0337.18
4.3.10.0030.0377.18
4.3.00.0000.0377.18

preferences:
45.22 ms | 400 KiB | 5 Q