3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTimeImmutable() instanceof Jsonserializeable); var_dump(new DateTime() instanceof JsonSerializeable); // And this works even without it... // ----------- class Test extends DateTime implements JsonSerializeable { public function jsonSerialize() { return "called"; } } var_dump(json_encode(new DateTime('2015-05-03')));

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.01316.63
8.3.50.0060.01318.10
8.3.40.0040.01119.09
8.3.30.0110.00419.11
8.3.20.0050.00320.38
8.3.10.0080.00021.60
8.3.00.0000.00819.51
8.2.180.0140.01018.45
8.2.170.0110.00422.96
8.2.160.0140.00020.29
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0060.00319.54
8.2.110.0030.00721.12
8.2.100.0060.00617.91
8.2.90.0040.00419.31
8.2.80.0050.00317.97
8.2.70.0060.00317.88
8.2.60.0060.00317.93
8.2.50.0030.00618.10
8.2.40.0100.00018.15
8.2.30.0050.00318.22
8.2.20.0040.00417.95
8.2.10.0000.00818.05
8.2.00.0000.00817.84
8.1.280.0120.00925.92
8.1.270.0030.00619.00
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0090.00317.70
8.1.220.0080.00017.89
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0050.00317.47
8.1.180.0000.00818.10
8.1.170.0060.00320.46
8.1.160.0080.00022.07
8.1.150.0040.00418.84
8.1.140.0050.00317.59
8.1.130.0030.00317.84
8.1.120.0000.00717.58
8.1.110.0000.00717.55
8.1.100.0070.00017.49
8.1.90.0000.00817.61
8.1.80.0070.00017.44
8.1.70.0070.00017.56
8.1.60.0000.00917.65
8.1.50.0000.00817.57
8.1.40.0050.00317.48
8.1.30.0030.00517.63
8.1.20.0030.00517.67
8.1.10.0000.00817.58
8.1.00.0020.00517.61
8.0.300.0020.00518.77
8.0.290.0080.00016.75
8.0.280.0030.00318.59
8.0.270.0040.00417.36
8.0.260.0000.00617.27
8.0.250.0030.00317.11
8.0.240.0030.00317.20
8.0.230.0000.00717.13
8.0.220.0030.00317.15
8.0.210.0030.00317.17
8.0.200.0030.00317.19
8.0.190.0040.00417.24
8.0.180.0050.00317.24
8.0.170.0030.00517.27
8.0.160.0050.00317.13
8.0.150.0000.00717.18
8.0.140.0080.00017.09
8.0.130.0000.00613.57
8.0.120.0040.00417.08
8.0.110.0000.00717.06
8.0.100.0040.00417.04
8.0.90.0000.00917.19
8.0.80.0060.00917.10
8.0.70.0000.00817.21
8.0.60.0050.00216.98
8.0.50.0000.00717.20
8.0.30.0120.01117.19
8.0.20.0150.00817.40
8.0.10.0070.00017.22
8.0.00.0090.01016.97
7.4.330.0030.00315.09
7.4.320.0060.00016.68
7.4.300.0080.00016.72
7.4.290.0070.00016.70
7.4.280.0030.00616.63
7.4.270.0000.00716.66
7.4.260.0070.00016.61
7.4.250.0070.00016.54
7.4.240.0020.00516.63
7.4.230.0030.00316.61
7.4.220.0090.00916.47
7.4.210.0040.01316.60
7.4.200.0000.00716.77
7.4.160.0070.01116.98
7.4.150.0090.00917.40
7.4.140.0130.01117.86
7.4.130.0080.00916.72
7.4.120.0080.00916.74
7.4.110.0180.00716.96
7.4.100.0040.01416.87
7.4.90.0100.00716.94
7.4.80.0070.01019.39
7.4.70.0130.00316.46
7.4.60.0070.01016.75
7.4.50.0030.00316.68
7.4.40.0130.01016.46
7.4.30.0000.01816.67
7.4.00.0090.00814.93
7.3.330.0040.00413.49
7.3.320.0060.00613.41
7.3.310.0000.00716.34
7.3.300.0030.00316.29
7.3.290.0040.00416.30
7.3.280.0080.00716.46
7.3.270.0030.01517.40
7.3.260.0110.00916.77
7.3.250.0120.00416.74
7.3.240.0130.00616.41
7.3.230.0170.00616.42
7.3.210.0090.01316.61
7.3.200.0140.00819.39
7.3.190.0090.01216.38
7.3.180.0000.01516.79
7.3.170.0180.00016.54
7.3.160.0060.01416.75
7.3.120.0070.01014.99
7.3.110.0020.01514.96
7.3.100.0040.01114.93
7.3.90.0060.00614.97
7.3.80.0060.00814.92
7.3.70.0040.00914.95
7.3.60.0080.00614.90
7.3.50.0040.00714.94
7.3.40.0050.00914.83
7.3.30.0030.00914.67
7.3.20.0070.00616.74
7.3.10.0060.00716.76
7.3.00.0090.00316.75
7.2.330.0120.00816.37
7.2.320.0030.01616.86
7.2.310.0140.00616.79
7.2.300.0110.00616.79
7.2.290.0110.01116.70
7.2.250.0060.01215.02
7.2.240.0070.01215.15
7.2.230.0040.00915.22
7.2.220.0080.00815.13
7.2.210.0070.00614.98
7.2.200.0070.00615.08
7.2.190.0050.00715.11
7.2.180.0050.00715.09
7.2.170.0040.01214.91
7.2.160.0050.00515.20
7.2.150.0000.01316.84
7.2.140.0030.00916.97
7.2.130.0040.01516.81
7.2.120.0030.00616.67
7.2.110.0030.01016.76
7.2.100.0090.00616.89
7.2.90.0030.01316.79
7.2.80.0030.00617.00
7.2.70.0060.01016.90
7.2.60.0070.00716.66
7.2.50.0100.00316.99
7.2.40.0100.00716.87
7.2.30.0060.00616.89
7.2.20.0150.00017.04
7.2.10.0060.00616.71
7.2.00.0080.00818.15
7.1.330.0080.00715.60
7.1.320.0050.00715.92
7.1.310.0020.01215.83
7.1.300.0070.00415.82
7.1.290.0050.01215.83
7.1.280.0050.00515.80
7.1.270.0060.00815.68
7.1.260.0050.00815.83
7.1.250.0070.00715.84
7.1.240.0040.01115.89
7.1.230.0080.00415.64
7.1.220.0040.01115.75
7.1.210.0070.00715.75
7.1.200.0000.00815.92
7.1.190.0070.00715.73
7.1.180.0100.00315.91
7.1.170.0110.00415.95
7.1.160.0070.01015.89
7.1.150.0030.00715.68
7.1.140.0060.00615.97
7.1.130.0110.00015.48
7.1.120.0060.00615.78
7.1.110.0030.00915.96
7.1.100.0070.00717.03
7.1.90.0040.01115.92
7.1.80.0070.00715.73
7.1.70.0050.00516.59
7.1.60.0050.01317.73
7.1.50.0050.00816.43
7.1.40.0060.00315.59
7.1.30.0060.00915.91
7.1.20.0060.00915.63
7.1.10.0110.00415.46
7.1.00.0000.04519.12
7.0.330.0040.00415.41
7.0.320.0070.00315.28
7.0.310.0090.00315.23
7.0.300.0070.00715.41
7.0.290.0030.00715.15
7.0.280.0060.00315.59
7.0.270.0040.01115.51
7.0.260.0000.00915.29
7.0.250.0030.00615.58
7.0.240.0110.00415.55
7.0.230.0040.01115.56
7.0.220.0070.00715.50
7.0.210.0110.00015.41
7.0.200.0060.00415.95
7.0.190.0040.00915.45
7.0.180.0030.01015.34
7.0.170.0040.01115.58
7.0.160.0060.00915.51
7.0.150.0030.00615.61
7.0.140.0030.02318.76
7.0.130.0150.00015.56
7.0.120.0060.00615.21
7.0.110.0100.00715.62
7.0.100.0070.00715.57
7.0.90.0050.03017.58
7.0.80.0140.03817.70
7.0.70.0080.02517.52
7.0.60.0070.03217.73
7.0.50.0190.02117.99
7.0.40.0070.02416.84
7.0.30.0030.03016.74
7.0.20.0060.02416.81
7.0.10.0070.03516.78
7.0.00.0030.02516.81
5.6.400.0000.01214.41
5.6.390.0040.00414.38
5.6.380.0030.01313.98
5.6.370.0060.01014.45
5.6.360.0070.00714.60
5.6.350.0030.01014.57
5.6.340.0000.01414.63
5.6.330.0030.00714.76
5.6.320.0060.00314.65
5.6.310.0030.00714.10
5.6.300.0070.00714.34
5.6.290.0060.00614.39
5.6.280.0000.04517.66
5.6.270.0040.01414.32
5.6.260.0030.00714.55
5.6.250.0090.00014.51
5.6.240.0100.04217.57
5.6.230.0020.04717.47
5.6.220.0070.02717.60
5.6.210.0030.04517.62
5.6.200.0000.03017.81
5.6.190.0060.02317.70
5.6.180.0060.02517.68
5.6.170.0030.02617.93
5.6.160.0000.02817.66
5.6.150.0060.02317.60
5.6.140.0020.02417.68
5.6.130.0030.04817.73
5.6.120.0000.03017.74
5.6.110.0100.02017.83
5.6.100.0030.02617.71
5.6.90.0070.02117.57
5.6.80.0120.02817.45
5.6.70.0040.02517.39
5.6.60.0050.03117.30
5.6.50.0050.02317.26
5.6.40.0030.02417.41
5.6.30.0020.02717.41
5.6.20.0050.02317.35
5.6.10.0100.01817.50
5.6.00.0050.02217.25
5.5.380.0130.03817.43
5.5.370.0080.04017.39
5.5.360.0050.04717.42
5.5.350.0080.04417.47
5.5.340.0030.02417.66
5.5.330.0030.02717.70
5.5.320.0080.02017.63
5.5.310.0030.02617.39
5.5.300.0080.02517.55
5.5.290.0020.02817.65
5.5.280.0040.02417.65
5.5.270.0050.03917.63
5.5.260.0050.02217.72
5.5.250.0040.02217.45
5.5.240.0050.02217.28
5.5.230.0070.02017.23
5.5.220.0050.01917.33
5.5.210.0040.02617.28
5.5.200.0050.02017.28
5.5.190.0030.02317.21
5.5.180.0050.02817.26
5.5.170.0070.00714.44
5.5.160.0040.02417.26
5.5.150.0030.02117.31
5.5.140.0070.03017.20
5.5.130.0080.03017.32
5.5.120.0110.03817.29
5.5.110.0080.02217.25
5.5.100.0060.04317.02
5.5.90.0070.04217.24
5.5.80.0150.03517.00
5.5.70.0080.04317.13
5.5.60.0070.04117.21
5.5.50.0050.02717.30
5.5.40.0100.04017.12
5.5.30.0050.02917.11
5.5.20.0050.04017.01
5.5.10.0080.02716.98
5.5.00.0030.02816.98
5.4.450.0010.03616.30
5.4.440.0020.02616.35
5.4.430.0070.03016.39
5.4.420.0050.02316.40
5.4.410.0040.02016.21
5.4.400.0020.02216.12
5.4.390.0070.01716.25
5.4.380.0030.02016.09
5.4.370.0030.02016.18
5.4.360.0010.02316.09
5.4.350.0020.02016.21
5.4.340.0040.02016.19
5.4.330.0030.01013.33
5.4.320.0030.03116.21
5.4.310.0020.02316.23
5.4.300.0050.02516.21
5.4.290.0050.04116.24
5.4.280.0080.03216.17
5.4.270.0020.02316.27
5.4.260.0050.03716.27
5.4.250.0070.04016.10
5.4.240.0060.02816.18
5.4.230.0060.03916.25
5.4.220.0020.04016.18
5.4.210.0120.03516.26
5.4.200.0020.03116.24
5.4.190.0070.02316.23
5.4.180.0120.03716.26
5.4.170.0060.03516.18
5.4.160.0080.02316.18
5.4.150.0000.04716.17
5.4.140.0100.03614.82
5.4.130.0070.04014.86
5.4.120.0030.02714.85
5.4.110.0100.03414.87
5.4.100.0000.02614.91
5.4.90.0040.02414.90
5.4.80.0070.03714.89
5.4.70.0070.03414.79
5.4.60.0080.02814.85
5.4.50.0070.03514.84
5.4.40.0050.03514.88
5.4.30.0050.03314.78
5.4.20.0080.03314.86
5.4.10.0050.03814.87
5.4.00.0070.03614.53
5.3.290.0000.04014.71
5.3.280.0130.06714.54
5.3.270.0070.07314.55
5.3.260.0130.06714.58
5.3.250.0070.07314.73
5.3.240.0070.07714.63
5.3.230.0030.05714.65
5.3.220.0030.07714.70
5.3.210.0130.06314.53
5.3.200.0070.06314.65
5.3.190.0130.06314.53
5.3.180.0100.04014.59
5.3.170.0100.07014.54
5.3.160.0030.07014.57
5.3.150.0130.06714.68
5.3.140.0000.08714.54
5.3.130.0000.08714.61
5.3.120.0100.08014.63
5.3.110.0030.05314.43
5.3.100.0000.05714.12
5.3.90.0030.08014.07
5.3.80.0070.07013.95
5.3.70.0030.05014.09
5.3.60.0030.07714.14
5.3.50.0030.07314.01
5.3.40.0130.07014.03
5.3.30.0000.07013.96
5.3.20.0100.06013.81
5.3.10.0070.05713.65
5.3.00.0130.07013.63
5.2.170.0070.05311.15
5.2.160.0030.05011.15
5.2.150.0030.05011.16
5.2.140.0130.05011.20
5.2.130.0030.04011.03
5.2.120.0070.05711.11
5.2.110.0100.05311.20
5.2.100.0000.04711.16
5.2.90.0070.04711.12
5.2.80.0130.05311.09
5.2.70.0030.06311.18
5.2.60.0070.03711.15
5.2.50.0070.03011.04
5.2.40.0070.05311.01
5.2.30.0030.05310.97
5.2.20.0030.05010.98
5.2.10.0100.05310.77
5.2.00.0070.05310.82
5.1.60.0030.05010.06
5.1.50.0070.03310.06
5.1.40.0070.0409.82
5.1.30.0070.03710.19
5.1.20.0030.06310.21
5.1.10.0030.05310.17
5.1.00.0030.04710.14
5.0.50.0000.0478.64
5.0.40.0070.0408.46
5.0.30.0030.0408.10
5.0.20.0070.0408.23
5.0.10.0000.0338.25
5.0.00.0070.0608.04
4.4.90.0030.0238.04
4.4.80.0000.0208.04
4.4.70.0030.0178.04
4.4.60.0030.0138.04
4.4.50.0030.0378.04
4.4.40.0030.0508.04
4.4.30.0000.0278.04
4.4.20.0000.0308.04
4.4.10.0100.0278.04
4.4.00.0030.0578.04
4.3.110.0030.0208.04
4.3.100.0070.0138.04
4.3.90.0000.0238.04
4.3.80.0000.0578.04
4.3.70.0070.0278.04
4.3.60.0000.0338.04
4.3.50.0070.0238.04
4.3.40.0000.0378.04
4.3.30.0030.0178.04
4.3.20.0000.0378.04
4.3.10.0030.0308.04
4.3.00.0000.0308.04

preferences:
62.84 ms | 400 KiB | 5 Q