3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = new \DateTime(); $startDate->setDate(2014, 01, 29); $startDate->setTime(0, 0, 0); var_dump($startDate); $nextMonth = clone $startDate; $nextMonth->modify('+ 14 days'); var_dump($nextMonth); $startDate->add(new DateInterval(sprintf('P%dD', $startDate->format('t')))); $startDate->sub(new DateInterval('P1D')); $startDate->setTime(23, 59, 59); var_dump($startDate);

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.0140.00018.33
8.3.50.0180.00321.20
8.3.40.0090.00618.68
8.3.30.0040.01119.14
8.3.20.0070.00020.38
8.3.10.0030.00520.64
8.3.00.0060.00319.25
8.2.180.0030.01316.63
8.2.170.0120.01222.96
8.2.160.0080.00620.40
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.27
8.2.110.0030.00620.48
8.2.100.0040.00818.09
8.2.90.0000.00919.21
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0030.00618.05
8.2.50.0110.00218.07
8.2.40.0050.00318.09
8.2.30.0080.00018.04
8.2.20.0000.00717.80
8.2.10.0040.00418.16
8.2.00.0000.00917.88
8.1.280.0110.00425.92
8.1.270.0000.00824.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00024.09
8.1.230.0060.00619.22
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0000.00818.74
8.1.160.0050.00322.07
8.1.150.0000.00719.05
8.1.140.0000.00817.53
8.1.130.0000.00717.86
8.1.120.0000.00717.76
8.1.110.0050.00317.55
8.1.100.0040.00417.61
8.1.90.0050.00317.66
8.1.80.0000.00717.71
8.1.70.0000.00817.61
8.1.60.0000.00917.79
8.1.50.0090.00017.76
8.1.40.0000.00817.73
8.1.30.0040.00417.80
8.1.20.0040.00417.77
8.1.10.0000.00717.71
8.1.00.0030.00517.68
8.0.300.0070.00018.77
8.0.290.0050.00316.88
8.0.280.0080.00018.48
8.0.270.0080.00017.34
8.0.260.0030.00317.37
8.0.250.0000.00717.16
8.0.240.0030.00317.23
8.0.230.0000.00817.18
8.0.220.0030.00317.07
8.0.210.0040.00417.13
8.0.200.0000.00617.15
8.0.190.0050.00317.05
8.0.180.0070.00017.02
8.0.170.0000.00817.13
8.0.160.0120.00016.93
8.0.150.0000.00716.94
8.0.140.0000.00717.05
8.0.130.0080.00013.42
8.0.120.0000.00816.95
8.0.110.0050.00317.06
8.0.100.0040.00417.11
8.0.90.0040.00417.00
8.0.80.0060.00917.09
8.0.70.0070.00017.17
8.0.60.0050.00317.17
8.0.50.0040.00416.96
8.0.30.0070.01217.35
8.0.20.0120.00817.40
8.0.10.0040.00417.23
8.0.00.0090.00916.95
7.4.330.0050.00015.16
7.4.320.0000.00716.66
7.4.300.0030.00316.58
7.4.290.0070.00016.75
7.4.280.0000.00916.79
7.4.270.0030.00316.76
7.4.260.0030.00316.65
7.4.250.0000.00816.57
7.4.240.0010.00616.73
7.4.230.0000.00716.68
7.4.220.0120.00916.65
7.4.210.0070.01016.69
7.4.200.0000.00816.39
7.4.160.0110.00716.70
7.4.150.0110.01117.40
7.4.140.0140.00917.86
7.4.130.0100.00816.60
7.4.120.0110.01116.65
7.4.110.0060.01316.64
7.4.100.0120.01216.75
7.4.90.0150.00316.40
7.4.80.0120.00819.39
7.4.70.0140.00516.72
7.4.60.0100.00716.59
7.4.50.0000.00516.56
7.4.40.0000.01516.47
7.4.30.0160.00516.75
7.4.00.0070.00815.22
7.3.330.0030.00313.12
7.3.320.0060.00013.30
7.3.310.0000.00716.28
7.3.300.0040.00416.40
7.3.290.0100.00716.36
7.3.280.0090.00916.44
7.3.270.0160.00417.40
7.3.260.0090.00916.36
7.3.250.0100.00916.75
7.3.240.0160.00316.59
7.3.230.0160.00316.56
7.3.210.0110.00816.58
7.3.200.0100.00719.39
7.3.190.0080.01216.38
7.3.180.0130.00316.46
7.3.170.0100.00716.59
7.3.160.0070.01016.58
7.3.120.0060.01214.80
7.3.110.0100.00714.88
7.3.100.0090.00614.73
7.3.90.0080.00315.15
7.3.80.0080.00415.06
7.3.70.0040.01515.05
7.3.60.0070.00714.77
7.3.50.0150.00014.96
7.3.40.0100.00715.02
7.3.30.0070.00715.12
7.3.20.0110.00316.77
7.3.10.0030.01316.56
7.3.00.0090.00316.97
7.2.330.0070.01116.92
7.2.320.0200.00416.82
7.2.310.0180.00016.65
7.2.300.0120.00916.80
7.2.290.0140.01016.64
7.2.250.0080.01115.07
7.2.240.0100.00715.40
7.2.230.0130.00615.17
7.2.220.0000.01015.44
7.2.210.0060.00915.08
7.2.200.0070.01314.98
7.2.190.0120.00315.00
7.2.180.0040.01115.20
7.2.170.0090.00915.20
7.1.330.0090.00616.08
7.1.320.0070.00715.72
7.1.310.0060.00916.12
7.1.300.0080.00816.13
7.1.290.0100.00715.90
7.1.280.0060.00615.72
7.1.270.0090.00615.76
7.1.260.0090.00615.58
7.1.70.0070.00317.10
7.1.60.0030.02019.32
7.1.50.0090.01217.17
7.1.00.0100.07022.48
7.0.200.0000.00916.96
7.0.140.0030.07322.08
7.0.60.0100.06319.95
7.0.50.0030.08317.92
7.0.40.0070.08720.23
7.0.30.0270.04320.00
7.0.20.0270.06020.16
7.0.10.0030.09720.09
7.0.00.0100.07720.29
5.6.280.0100.07020.81
5.6.210.0070.08020.54
5.6.200.0070.05318.09
5.6.190.0100.07720.60
5.6.180.3970.05020.41
5.6.170.0270.04320.38
5.6.160.0030.09020.41
5.6.150.0100.04718.22
5.6.140.0000.04318.09
5.6.130.0130.07318.15
5.6.120.0170.06321.14
5.6.110.0100.05720.96
5.6.100.0030.04021.03
5.6.90.0170.07021.00
5.6.80.0130.06320.37
5.6.70.4600.04020.36
5.5.350.0230.07320.34
5.5.340.0200.06717.95
5.5.330.0000.04320.37
5.5.320.0270.04320.18
5.5.310.0230.05320.20
5.5.300.0030.04718.00
5.5.290.0070.08317.89
5.5.280.0030.05020.84
5.5.270.0100.06020.86
5.5.260.0170.07720.76
5.5.250.0130.06720.65
5.5.240.0130.05020.27
5.4.450.0270.05719.58
5.4.440.0270.05319.41
5.4.430.0330.05719.42
5.4.420.0270.03719.20
5.4.410.0300.03319.34
5.4.400.0230.07019.13
5.4.390.0270.05318.80
5.4.380.0200.06319.14
5.4.370.0330.05019.16
5.4.360.0270.05719.10
5.4.350.0230.05319.16
5.4.340.0370.06718.80
5.4.320.0330.07319.21
5.4.310.0300.04318.79
5.4.300.0300.04018.80
5.4.290.0300.07018.88
5.4.280.0300.06019.24
5.4.270.0130.04719.09
5.4.260.0170.04018.79
5.4.250.0200.04019.15
5.4.240.0370.03719.08
5.4.230.0200.04318.92
5.4.220.0230.04319.23
5.4.210.0230.03319.24
5.4.200.0200.03719.13
5.4.190.0130.04019.23
5.4.180.0200.03719.08
5.4.170.0200.03718.92
5.4.160.0200.03718.77
5.4.150.0200.03719.11
5.4.140.0170.05316.34
5.4.130.0200.03316.30
5.4.120.0170.03716.32
5.4.110.0230.03316.24
5.4.100.0200.03316.35
5.4.90.0130.04016.24
5.4.80.0130.03716.46
5.4.70.0200.03316.46
5.4.60.0200.03316.40
5.4.50.0200.03316.20
5.4.40.0200.03316.36
5.4.30.0200.03316.36
5.4.20.0370.03016.18
5.4.10.0200.05016.38
5.4.00.0230.07315.68
5.3.290.0300.06314.62
5.3.280.0170.04014.65
5.3.270.0200.03714.57
5.3.260.0230.04714.46
5.3.250.0270.04314.63
5.3.240.0270.04314.45
5.3.230.0270.04014.43
5.3.220.0230.03014.63
5.3.210.0270.03014.48
5.3.200.0200.04714.68
5.3.190.0200.03714.47
5.3.180.0130.04014.41
5.3.170.0200.03714.51
5.3.160.0270.03314.51
5.3.150.0200.03314.40
5.3.140.0230.04314.39
5.3.130.0200.03314.58
5.3.120.0270.03014.45
5.3.110.0270.07014.39
5.3.100.0230.04313.89
5.3.90.0200.04313.97
5.3.80.0270.05013.96
5.3.70.0270.04313.89
5.3.60.0300.04014.03
5.3.50.0330.05714.05
5.3.40.0300.06013.73
5.3.30.0230.04313.86
5.3.20.0270.05313.53
5.3.10.0370.03713.68
5.3.00.0370.03713.49
5.2.170.0300.05011.79
5.2.160.0200.04011.79
5.2.150.0200.03711.79
5.2.140.0170.04011.79
5.2.130.0270.03311.79
5.2.120.0270.05311.79
5.2.110.0270.05711.79
5.2.100.0170.03711.79
5.2.90.0230.05011.79
5.2.80.0270.03311.79
5.2.70.0270.03311.79
5.2.60.0230.05711.79
5.2.50.0270.04711.79
5.2.40.0230.05311.79
5.2.30.0230.04311.79
5.2.20.0170.04711.79
5.2.10.0300.04011.79
5.2.00.0270.05311.79
5.1.60.0230.02711.79
5.1.50.0130.02711.79
5.1.40.0230.03711.79
5.1.30.0230.03311.79
5.1.20.0130.03311.79
5.1.10.0130.02711.79
5.1.00.0200.04711.79
5.0.50.0100.04011.79
5.0.40.0100.04311.79
5.0.30.0030.06711.79
5.0.20.0100.02311.79
5.0.10.0170.03711.79
5.0.00.0170.03011.79
4.4.90.0070.04011.79
4.4.80.0130.02011.79
4.4.70.0130.02311.79
4.4.60.0100.03011.79
4.4.50.0200.02711.79
4.4.40.0070.03311.79
4.4.30.0100.03711.79
4.4.20.0100.02311.79
4.4.10.0070.02011.79
4.4.00.0100.02711.79
4.3.110.0100.02011.79
4.3.100.0100.02011.79
4.3.90.0130.02311.79
4.3.80.0070.03011.79
4.3.70.0130.03011.79
4.3.60.0130.03311.79
4.3.50.0130.01711.79
4.3.40.0170.04311.79
4.3.30.0030.02711.79
4.3.20.0030.03011.79
4.3.10.0070.03011.79
4.3.00.0070.02711.79

preferences:
40.09 ms | 401 KiB | 5 Q