3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t = 1414754455; // 31.10.2014 # time() - 24*60*60; // yesterday $dt = new Datetime(); $dt->setTimestamp($t); $dt->modify("+1 month"); $t1 = strtotime("next month", $t); $t2 = strtotime("first day of next month", $t); echo date("d.m.Y", $t) . ": $t\n"; echo date("d.m.Y", $t1) . ": $t1\n"; echo date("d.m.Y", $t2) . ": $t2\n"; echo "DIFF: " . ($t1-$t2); echo $dt->format("d.m.Y") . "\n";

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.40.0070.01418.97
8.3.30.0070.00719.07
8.3.20.0080.00020.20
8.3.10.0040.00423.73
8.3.00.0050.00319.51
8.2.170.0110.00422.96
8.2.160.0140.00020.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00722.31
8.2.110.0090.00022.20
8.2.100.0080.00317.88
8.2.90.0030.00519.20
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0030.00618.28
8.2.30.0030.00518.20
8.2.20.0060.00317.98
8.2.10.0040.00418.17
8.2.00.0040.00417.90
8.1.270.0050.00323.90
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00323.92
8.1.230.0110.00019.22
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.47
8.1.180.0020.00518.10
8.1.170.0090.00020.55
8.1.160.0000.00822.08
8.1.150.0040.00418.92
8.1.140.0000.00717.71
8.1.130.0030.00317.82
8.1.120.0040.00417.70
8.1.110.0080.00017.68
8.1.100.0040.00417.59
8.1.90.0030.00517.70
8.1.80.0030.00317.73
8.1.70.0030.00317.59
8.1.60.0030.00517.75
8.1.50.0000.00817.68
8.1.40.0040.00417.70
8.1.30.0080.00017.80
8.1.20.0000.00917.77
8.1.10.0040.00417.75
8.1.00.0040.00417.70
8.0.300.0040.00418.77
8.0.290.0000.00716.72
8.0.280.0040.00318.63
8.0.270.0000.00717.25
8.0.260.0030.00317.38
8.0.250.0070.00017.21
8.0.240.0040.00417.18
8.0.230.0000.00717.09
8.0.220.0030.00317.11
8.0.210.0070.00017.14
8.0.200.0030.00517.09
8.0.190.0040.00417.21
8.0.180.0040.00417.05
8.0.170.0040.00417.06
8.0.160.0040.00417.10
8.0.150.0000.00717.06
8.0.140.0040.00417.18
8.0.130.0000.00513.62
8.0.120.0070.00017.11
8.0.110.0000.00717.04
8.0.100.0070.00017.14
8.0.90.0040.00417.03
8.0.80.0030.01317.12
8.0.70.0080.00017.12
8.0.60.0040.00417.13
8.0.50.0040.00417.07
8.0.30.0120.00717.13
8.0.20.0120.00817.47
8.0.10.0000.00717.09
8.0.00.0080.01016.89
7.4.330.0050.00015.09
7.4.320.0000.00616.70
7.4.300.0000.00616.77
7.4.290.0060.00316.84
7.4.280.0030.00616.74
7.4.270.0050.00216.71
7.4.260.0000.00716.54
7.4.250.0000.00716.76
7.4.240.0050.00216.64
7.4.230.0030.00316.74
7.4.220.0060.01316.76
7.4.210.0130.00316.75
7.4.200.0030.00316.70
7.4.160.0130.00316.73
7.4.150.0080.00817.40
7.4.140.0140.00817.86
7.4.130.0030.01316.65
7.4.120.0060.01216.55
7.4.110.0130.01016.80
7.4.100.0060.01716.86
7.4.90.0080.00816.79
7.4.80.0090.01219.39
7.4.70.0090.00916.57
7.4.60.0130.00316.58
7.4.50.0000.00416.76
7.4.40.0040.01216.52
7.4.30.0060.01016.77
7.4.00.0100.00815.23
7.3.330.0050.00013.24
7.3.320.0060.00013.37
7.3.310.0040.00416.58
7.3.300.0030.00316.49
7.3.290.0060.00916.53
7.3.280.0070.00916.52
7.3.270.0100.00717.40
7.3.260.0110.00716.53
7.3.250.0120.00516.64
7.3.240.0080.00916.76
7.3.230.0140.00316.73
7.3.210.0080.00916.70
7.3.200.0100.01319.39
7.3.190.0130.00316.54
7.3.180.0130.00316.60
7.3.170.0110.00716.82
7.3.160.0060.01016.68
7.3.120.0060.01115.31
7.3.110.0090.00815.03
7.3.100.0090.00815.02
7.3.90.0110.00715.21
7.3.80.0050.01115.21
7.3.70.0080.00714.98
7.3.60.0100.00514.94
7.3.50.0070.00615.09
7.3.40.0100.00615.17
7.3.30.0030.00815.09
7.3.20.0090.00616.79
7.3.10.0020.01316.73
7.3.00.0070.00716.99
7.2.330.0060.01116.90
7.2.320.0090.01316.77
7.2.310.0030.01316.82
7.2.300.0080.00816.70
7.2.290.0070.01016.95
7.2.250.0050.01115.47
7.2.240.0090.00615.10
7.2.230.0060.01115.47
7.2.220.0060.01215.33
7.2.210.0100.00715.28
7.2.200.0070.00715.34
7.2.190.0030.01215.14
7.2.180.0030.01315.19
7.2.170.0110.00715.21
7.2.160.0040.01315.11
7.2.150.0100.00717.19
7.2.140.0070.01316.89
7.2.130.0110.00716.92
7.2.120.0090.01117.14
7.2.110.0000.01717.36
7.2.100.0040.01617.30
7.2.90.0080.01117.29
7.2.80.0070.01117.20
7.2.70.0030.01217.24
7.2.60.0090.00917.33
7.2.50.0160.00317.31
7.2.40.0060.01217.26
7.2.30.0070.01417.03
7.2.20.0070.01117.23
7.2.10.0080.01217.21
7.2.00.0050.00918.54
7.1.330.0070.00815.93
7.1.320.0050.01016.06
7.1.310.0060.01016.03
7.1.300.0050.00816.05
7.1.290.0080.00516.09
7.1.280.0030.01015.90
7.1.270.0080.00615.93
7.1.260.0080.00815.96
7.1.250.0040.01116.11
7.1.240.0040.01216.08
7.1.230.0070.01115.81
7.1.220.0070.01115.67
7.1.210.0060.01115.88
7.1.200.0080.00415.77
7.1.190.0070.01116.13
7.1.180.0070.01116.17
7.1.170.0070.01315.87
7.1.160.0060.01216.01
7.1.150.0080.00816.03
7.1.140.0090.00616.03
7.1.130.0040.01015.82
7.1.120.0070.00716.14
7.1.110.0040.01216.31
7.1.100.0070.00517.08
7.1.90.0070.00715.83
7.1.80.0110.00516.15
7.1.70.0110.00616.80
7.1.60.0080.01317.71
7.1.50.0160.00516.49
7.1.40.0140.00416.09
7.1.30.0040.01416.07
7.1.20.0080.00816.05
7.1.10.0070.00716.09
7.1.00.0080.03819.13
7.0.330.0070.01015.59
7.0.320.0000.01915.63
7.0.310.0080.00615.49
7.0.300.0110.00615.57
7.0.290.0030.01415.71
7.0.280.0030.01015.34
7.0.270.0080.00415.72
7.0.260.0130.00015.29
7.0.250.0040.01115.53
7.0.240.0140.00315.73
7.0.230.0110.00315.36
7.0.220.0150.00315.63
7.0.210.0030.01015.39
7.0.200.0050.00716.30
7.0.190.0060.00915.63
7.0.180.0000.01215.53
7.0.170.0000.01315.60
7.0.160.0000.01715.51
7.0.150.0090.00615.66
7.0.140.0050.04018.84
7.0.130.0030.00715.66
7.0.120.0030.01015.56
7.0.110.0070.00315.59
7.0.100.0030.00915.39
7.0.90.0090.04118.67
7.0.80.0100.04218.62
7.0.70.0050.04218.68
7.0.60.0040.03818.54
7.0.50.0050.04318.74
7.0.40.0080.04016.76
7.0.30.0070.02716.90
7.0.20.0060.02816.89
7.0.10.0060.04616.85
7.0.00.0020.04616.89
5.6.400.0040.01114.69
5.6.390.0110.00714.37
5.6.380.0060.00914.69
5.6.370.0100.00714.61
5.6.360.0000.01214.17
5.6.350.0060.01014.76
5.6.340.0040.01214.47
5.6.330.0100.00714.61
5.6.320.0060.01014.52
5.6.310.0030.01014.30
5.6.300.0060.00814.60
5.6.290.0060.00314.36
5.6.280.0030.04217.79
5.6.270.0000.01214.44
5.6.260.0100.00314.57
5.6.250.0040.00814.66
5.6.240.0020.04717.59
5.6.230.0030.04717.56
5.6.220.0030.04717.55
5.6.210.0030.04217.55
5.6.200.0050.02717.70
5.6.190.0050.04517.77
5.6.180.0050.04617.87
5.6.170.0070.04017.70
5.6.160.0120.03117.74
5.6.150.0060.02417.91
5.6.140.0070.04517.92
5.6.130.0060.04717.84
5.6.120.0050.04617.81
5.6.110.0070.04517.69
5.6.100.0090.03317.92
5.6.90.0110.03717.56
5.6.80.0090.04017.43
5.6.70.0050.02817.46
5.6.60.0070.04417.34
5.6.50.0060.04117.43
5.6.40.0000.05017.29
5.6.30.0040.04417.38
5.6.20.0100.03717.39
5.6.10.0050.03017.36
5.6.00.0070.04117.47
5.5.380.0050.03017.36
5.5.370.0040.04817.24
5.5.360.0050.04617.44
5.5.350.0060.04317.33
5.5.340.0080.02317.60
5.5.330.0060.04817.58
5.5.320.0030.04317.61
5.5.310.0040.04517.67
5.5.300.0060.04317.69
5.5.290.0050.04217.62
5.5.280.0030.02517.69
5.5.270.0090.04617.59
5.5.260.0050.04017.67
5.5.250.0050.04017.30
5.5.240.0090.03717.27
5.5.230.0040.04917.08
5.5.220.0050.04517.30
5.5.210.0100.03817.27
5.5.200.0050.02817.43
5.5.190.0080.03817.07
5.5.180.0080.04017.31
5.5.170.0090.00314.40
5.5.160.0040.04517.20
5.5.150.0080.04017.27
5.5.140.0030.04117.18
5.5.130.0060.04417.31
5.5.120.0100.04217.16
5.5.110.0030.03417.31
5.5.100.0060.04417.06
5.5.90.0050.03117.17
5.5.80.0040.04017.23
5.5.70.0100.02717.28
5.5.60.0040.03117.28
5.5.50.0090.02817.15
5.5.40.0070.03717.11
5.5.30.0050.04516.91
5.5.20.0070.04317.17
5.5.10.0000.03717.22
5.5.00.0060.02817.12
5.4.450.0040.04415.10
5.4.440.0040.04515.12
5.4.430.0050.04315.36
5.4.420.0030.02915.18
5.4.410.0090.04315.09
5.4.400.0070.02214.98
5.4.390.0090.02215.01
5.4.380.0090.03914.93
5.4.370.0050.04115.01
5.4.360.0020.03015.05
5.4.350.0050.04214.88
5.4.340.0080.02915.01
5.4.330.0070.00410.91
5.4.320.0050.04314.99
5.4.310.0060.02614.91
5.4.300.0060.03815.05
5.4.290.0040.04215.01
5.4.280.0030.03314.75
5.4.270.0080.04014.84
5.4.260.0030.04515.08
5.4.250.0080.03815.01
5.4.240.0080.02514.92
5.4.230.0060.02914.92
5.4.220.0080.03614.86
5.4.210.0020.04414.91
5.4.200.0020.04415.07
5.4.190.0050.04115.02
5.4.180.0050.04215.03
5.4.170.0120.03515.00
5.4.160.0000.03215.14
5.4.150.0030.04315.02
5.4.140.0060.03813.68
5.4.130.0050.02413.71
5.4.120.0050.02213.71
5.4.110.0030.03313.66
5.4.100.0060.02113.70
5.4.90.0030.03713.64
5.4.80.0050.02013.73
5.4.70.0050.02713.75
5.4.60.0070.02213.73
5.4.50.0000.02513.66
5.4.40.0050.02713.66
5.4.30.0020.02613.56
5.4.20.0030.03813.65
5.4.10.0130.03013.66
5.4.00.0070.03513.43
5.3.290.0100.07014.61
5.3.280.0030.05314.57
5.3.270.0070.06314.59
5.3.260.0100.03314.61
5.3.250.0030.06314.55
5.3.240.0070.04714.44
5.3.230.0000.04714.41
5.3.220.0070.06014.39
5.3.210.0030.07714.55
5.3.200.0070.03714.57
5.3.190.0070.05014.50
5.3.180.0070.07314.52
5.3.170.0030.07014.51
5.3.160.0070.07014.55
5.3.150.0100.06714.51
5.3.140.0000.07714.41
5.3.130.0000.07714.40
5.3.120.0070.04014.49
5.3.110.0070.07714.38
5.3.100.0000.08313.97
5.3.90.0000.07013.96
5.3.80.0070.06013.79
5.3.70.0100.06714.00
5.3.60.0000.07313.99
5.3.50.0000.07713.90
5.3.40.0030.06013.70
5.3.30.0030.04313.84
5.3.20.0030.03313.67
5.3.10.0030.03713.51
5.3.00.0070.03313.55
5.2.170.0070.04010.96
5.2.160.0000.05311.18
5.2.150.0070.04311.11
5.2.140.0000.03010.93
5.2.130.0000.06011.13
5.2.120.0000.04711.15
5.2.110.0000.03311.13
5.2.100.0100.02711.05
5.2.90.0070.02310.92
5.2.80.0030.03311.13
5.2.70.0070.02711.09
5.2.60.0100.02710.84
5.2.50.0000.03010.81
5.2.40.0000.03310.99
5.2.30.0030.02710.95
5.2.20.0000.03010.94
5.2.10.0000.04010.88
5.2.00.0000.03010.73
5.1.60.0000.02710.39
5.1.50.0000.02710.39
5.1.40.0030.02710.39
5.1.30.0000.03010.39
5.1.20.0000.02710.40
5.1.10.0000.03010.39
5.1.00.0000.03010.39
5.0.50.0000.02310.39
5.0.40.0000.02010.39
5.0.30.0000.04010.39
5.0.20.0070.03010.39
5.0.10.0030.02010.39
5.0.00.0000.05010.39
4.4.90.0000.01710.39
4.4.80.0030.01310.39
4.4.70.0030.01310.39
4.4.60.0000.01710.39
4.4.50.0030.01310.39
4.4.40.0000.02710.39
4.4.30.0000.01710.39
4.4.20.0000.01710.39
4.4.10.0000.02310.39
4.4.00.0000.03010.39
4.3.110.0000.02310.39
4.3.100.0000.02310.39
4.3.90.0000.02010.39
4.3.80.0000.03710.39
4.3.70.0000.01710.39
4.3.60.0000.02010.39
4.3.50.0000.01310.39
4.3.40.0030.02310.39
4.3.30.0000.01710.39
4.3.20.0000.01710.39
4.3.10.0030.03010.39
4.3.00.0000.01710.39

preferences:
40.68 ms | 400 KiB | 5 Q