3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); $date->setDate(19987, 1, 2); var_dump($date->format('Y-m-d'));

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.4.20.0000.00917.80
8.4.10.0090.00017.66
8.3.140.0060.01217.13
8.3.130.0040.00416.76
8.3.120.0110.00718.86
8.3.110.0120.00320.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0050.00516.50
8.3.70.0110.00316.75
8.3.60.0110.00718.43
8.3.50.0150.00521.27
8.3.40.0120.00918.84
8.3.30.0120.00618.58
8.3.20.0030.00518.68
8.3.10.0040.00420.15
8.3.00.0080.00317.91
8.2.260.0040.00416.51
8.2.250.0110.00716.80
8.2.240.0030.00618.87
8.2.230.0000.00822.58
8.2.220.0100.01037.54
8.2.210.0000.00826.77
8.2.200.0060.00316.88
8.2.190.0140.00318.27
8.2.180.0120.00318.41
8.2.170.0070.01022.96
8.2.160.0070.00719.06
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00021.04
8.2.110.0030.00720.91
8.2.100.0040.00817.78
8.2.90.0080.00019.63
8.2.80.0060.00317.97
8.2.70.0030.00618.04
8.2.60.0030.00617.80
8.2.50.0080.00017.88
8.2.40.0040.00422.16
8.2.30.0000.00720.35
8.2.20.0040.00417.72
8.2.10.0030.00518.07
8.2.00.0000.00718.12
8.1.310.0060.01316.84
8.1.300.0040.00416.12
8.1.290.0090.00318.88
8.1.280.0070.00725.92
8.1.270.0060.00323.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00023.92
8.1.230.0090.00322.75
8.1.220.0000.01017.78
8.1.210.0000.00818.90
8.1.200.0100.00017.36
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0050.00218.89
8.1.160.0050.00318.96
8.1.150.0040.00418.90
8.1.140.0040.00419.62
8.1.130.0000.00717.71
8.1.120.0070.00017.55
8.1.110.0040.00417.52
8.1.100.0000.00717.63
8.1.90.0050.00317.51
8.1.80.0000.00817.55
8.1.70.0000.00817.63
8.1.60.0030.00617.60
8.1.50.0040.00417.48
8.1.40.0040.00417.62
8.1.30.0030.00617.72
8.1.20.0000.00717.69
8.1.10.0080.00017.59
8.1.00.0030.00617.69
8.0.300.0070.00019.74
8.0.290.0000.00916.84
8.0.280.0070.00018.41
8.0.270.0030.00517.27
8.0.260.0030.00517.15
8.0.250.0070.00017.05
8.0.240.0000.00917.10
8.0.230.0040.00417.09
8.0.220.0040.00416.90
8.0.210.0030.00316.93
8.0.200.0060.00317.09
8.0.190.0040.00416.98
8.0.180.0040.00417.04
8.0.170.0040.00417.09
8.0.160.0040.00417.10
8.0.150.0040.00417.06
8.0.140.0070.00016.91
8.0.130.0030.00313.35
8.0.120.0040.00416.98
8.0.110.0000.00717.04
8.0.100.0050.00316.97
8.0.90.0000.00817.09
8.0.80.0060.01016.98
8.0.70.0000.00716.87
8.0.60.0040.00417.02
8.0.50.0040.00417.06
8.0.30.0050.01217.15
8.0.20.0160.01217.40
8.0.10.0040.00417.15
8.0.00.0110.00916.84
7.4.330.0050.00015.08
7.4.320.0000.00616.50
7.4.300.0030.00316.66
7.4.290.0000.00816.52
7.4.280.0030.00616.43
7.4.270.0000.00716.68
7.4.260.0030.00316.58
7.4.250.0080.00016.63
7.4.240.0030.00316.58
7.4.230.0030.00316.48
7.4.220.0000.00716.42
7.4.210.0140.00016.65
7.4.200.0050.00216.70
7.4.160.0120.00416.70
7.4.150.0120.00617.40
7.4.140.0090.01217.86
7.4.130.0130.00516.56
7.4.120.0090.00816.60
7.4.110.0180.00616.48
7.4.100.0090.00616.62
7.4.90.0060.01216.76
7.4.80.0000.01819.39
7.4.70.0030.01316.82
7.4.60.0090.00916.60
7.4.50.0110.00416.45
7.4.40.0000.01716.23
7.4.30.0090.00916.58
7.4.10.0050.00914.72
7.4.00.0080.00915.09
7.3.330.0080.00013.18
7.3.320.0000.00513.00
7.3.310.0040.00416.34
7.3.300.0030.00316.23
7.3.290.0110.00516.24
7.3.280.0060.01116.30
7.3.270.0130.00917.40
7.3.260.0090.00916.29
7.3.250.0060.01216.46
7.3.240.0130.00716.44
7.3.230.0100.00716.39
7.3.210.0110.00716.47
7.3.200.0110.00519.39
7.3.190.0070.01316.24
7.3.180.0000.01516.71
7.3.170.0030.01316.39
7.3.160.0090.02216.36
7.3.130.0080.01114.82
7.3.120.0090.00814.73
7.3.110.0050.01314.86
7.3.100.0070.00615.04
7.3.90.0040.00914.92
7.3.80.0070.00614.80
7.3.70.0050.00914.80
7.3.60.0050.01014.66
7.3.50.0090.00514.83
7.3.40.0050.00914.80
7.3.30.0060.00814.89
7.3.20.0060.00816.63
7.3.10.0050.00716.80
7.3.00.0080.00816.72
7.2.330.0060.01116.52
7.2.320.0120.00916.63
7.2.310.0090.00616.82
7.2.300.0030.02016.59
7.2.290.0110.00616.73
7.2.260.0070.01115.13
7.2.250.0060.01214.93
7.2.240.0080.01015.07
7.2.230.0070.00815.04
7.2.220.0040.01215.12
7.2.210.0060.00815.02
7.2.200.0050.00815.06
7.2.190.0090.00715.00
7.2.180.0050.01115.00
7.2.170.0090.00614.84
7.2.160.0100.00414.91
7.2.150.0070.00516.88
7.2.140.0060.00816.96
7.2.130.0060.00716.97
7.2.120.0070.00716.86
7.2.110.0020.01017.02
7.2.100.0050.00916.74
7.2.90.0080.00717.01
7.2.80.0050.01116.83
7.2.70.0050.00717.00
7.2.60.0050.00916.77
7.2.50.0070.00716.91
7.2.40.0090.00717.06
7.2.30.0070.00817.05
7.2.20.0050.00716.87
7.2.10.0100.00516.81
7.2.00.0090.00817.86
7.1.330.0070.00715.84
7.1.320.0070.00515.68
7.1.310.0070.00515.86
7.1.300.0050.00915.87
7.1.290.0090.00615.74
7.1.280.0090.00415.75
7.1.270.0050.00815.73
7.1.260.0050.00615.69
7.1.250.0080.00915.83
7.1.240.0050.00915.71
7.1.230.0060.00715.67
7.1.220.0090.00615.77
7.1.210.0050.01115.76
7.1.200.0090.00515.54
7.1.190.0020.01115.77
7.1.180.0050.00815.73
7.1.170.0050.00915.71
7.1.160.0080.00515.77
7.1.150.0070.00615.71
7.1.140.0060.00615.81
7.1.130.0020.01115.72
7.1.120.0080.00815.88
7.1.110.0050.00515.86
7.1.100.0040.01116.71
7.1.90.0030.01015.56
7.1.80.0100.00515.81
7.1.70.0070.00316.29
7.1.60.0060.01017.00
7.1.50.0040.00915.95
7.1.40.0070.00615.86
7.1.30.0050.00515.81
7.1.20.0030.01015.71
7.1.10.0020.01315.90
7.1.00.0070.02718.06
7.0.330.0050.00915.58
7.0.320.0030.00715.39
7.0.310.0070.00915.28
7.0.300.0050.00915.28
7.0.290.0070.00415.28
7.0.280.0050.01015.21
7.0.270.0050.01115.35
7.0.260.0090.00315.51
7.0.250.0070.00315.45
7.0.240.0070.00515.48
7.0.230.0050.00815.54
7.0.220.0080.00615.53
7.0.210.0070.00615.51
7.0.200.0340.00415.17
7.0.190.0030.00915.48
7.0.180.0090.00215.51
7.0.170.0010.00815.37
7.0.160.0090.00515.37
7.0.150.0070.00515.41
7.0.140.0060.00915.46
7.0.130.0070.00715.59
7.0.120.0040.00915.28
7.0.110.0030.00815.43
7.0.100.0080.02216.94
7.0.90.0080.01816.95
7.0.80.0030.03016.93
7.0.70.0060.03116.83
7.0.60.0080.03116.88
7.0.50.0060.02517.09
7.0.40.0030.02715.77
7.0.30.0070.02715.64
7.0.20.0040.03315.74
7.0.10.0080.01715.65
7.0.00.0030.03315.72
5.6.400.0030.00814.51
5.6.390.0060.00814.45
5.6.380.0060.00314.63
5.6.370.0040.01114.52
5.6.360.0060.00514.51
5.6.350.0060.00514.48
5.6.340.0040.00614.21
5.6.330.0090.00514.45
5.6.320.0090.00314.50
5.6.310.0060.00714.65
5.6.300.0040.00714.57
5.6.290.0010.01014.52
5.6.280.0080.02616.67
5.6.270.0060.00514.56
5.6.260.0070.00714.49
5.6.250.0080.02816.60
5.6.240.0060.03216.56
5.6.230.0070.01916.45
5.6.220.0050.01716.30
5.6.210.0060.01616.56
5.6.200.0090.01616.72
5.6.190.0060.02516.67
5.6.180.0070.02816.65
5.6.170.0080.02816.68
5.6.160.0080.02716.77
5.6.150.0040.02816.62
5.6.140.0080.03216.60
5.6.130.0080.02116.75
5.6.120.0060.01616.70
5.6.110.0070.01816.58
5.6.100.0150.02716.56
5.6.90.0050.03216.58
5.6.80.0110.01416.37
5.6.70.0060.01816.47
5.6.60.0050.02016.23
5.6.50.0090.02716.45
5.6.40.0070.02716.33
5.6.30.0050.02016.34
5.6.20.0040.02416.47
5.6.10.0080.02116.44
5.6.00.0040.01816.40
5.5.380.0060.01916.43
5.5.370.0070.01816.46
5.5.360.0090.02416.47
5.5.350.0060.02616.26
5.5.340.0060.03016.49
5.5.330.0060.03016.62
5.5.320.0070.02816.47
5.5.310.0080.02516.50
5.5.300.0070.02416.57
5.5.290.0050.02116.59
5.5.280.0080.02516.46
5.5.270.0060.01916.47
5.5.260.0060.02416.43
5.5.250.0090.02016.30
5.5.240.0100.02416.34
5.5.230.0040.02016.25
5.5.220.0050.01816.36
5.5.210.0070.02316.41
5.5.200.0060.02916.30
5.5.190.0080.02816.34
5.5.180.0070.03216.35
5.5.170.0040.00714.31
5.5.160.0060.02816.24
5.5.150.0050.02916.34
5.5.140.0120.02716.20
5.5.130.0040.03316.04
5.5.120.0080.01516.35
5.5.110.0080.03016.33
5.5.100.0040.02816.21
5.5.90.0050.01616.06
5.5.80.0040.01816.28
5.5.70.0100.02216.15
5.5.60.0100.02816.21
5.5.50.0060.02216.14
5.5.40.0070.02716.19
5.5.30.0080.02916.35
5.5.20.0030.03316.18
5.5.10.0090.01716.21
5.5.00.0030.03115.96

preferences:
70.34 ms | 403 KiB | 5 Q