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) . "\n"; 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.60.0040.01118.43
8.3.50.0160.00321.26
8.3.40.0140.00718.79
8.3.30.0110.00419.23
8.3.20.0040.00420.04
8.3.10.0000.00923.54
8.3.00.0090.00019.50
8.2.180.0040.01118.29
8.2.170.0040.01122.96
8.2.160.0140.00320.47
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00422.17
8.2.110.0040.00422.20
8.2.100.0040.00717.75
8.2.90.0080.00019.37
8.2.80.0080.00017.97
8.2.70.0050.00518.00
8.2.60.0040.00418.16
8.2.50.0000.00818.07
8.2.40.0030.00618.28
8.2.30.0040.00418.19
8.2.20.0050.00317.95
8.2.10.0050.00318.16
8.2.00.0040.00417.88
8.1.280.0140.00325.92
8.1.270.0000.01024.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00919.39
8.1.230.0080.00319.10
8.1.220.0080.00017.91
8.1.210.0000.00918.77
8.1.200.0090.00017.37
8.1.190.0040.00417.60
8.1.180.0050.00318.10
8.1.170.0030.00520.68
8.1.160.0070.00021.99
8.1.150.0040.00419.01
8.1.140.0040.00417.71
8.1.130.0000.00717.97
8.1.120.0000.00717.73
8.1.110.0040.00417.63
8.1.100.0030.00517.69
8.1.90.0030.00317.69
8.1.80.0070.00017.73
8.1.70.0000.00717.68
8.1.60.0030.00517.66
8.1.50.0040.00417.67
8.1.40.0060.00317.66
8.1.30.0030.00617.68
8.1.20.0030.00517.89
8.1.10.0050.00317.80
8.1.00.0000.00717.75
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00818.61
8.0.270.0000.00717.39
8.0.260.0030.00317.32
8.0.250.0070.00017.05
8.0.240.0040.00417.25
8.0.230.0000.00817.09
8.0.220.0000.00717.09
8.0.210.0030.00317.04
8.0.200.0000.00717.15
8.0.190.0030.00517.23
8.0.180.0000.00717.12
8.0.170.0040.00417.09
8.0.160.0030.00517.16
8.0.150.0040.00417.15
8.0.140.0070.00017.06
8.0.130.0030.00313.57
8.0.120.0040.00417.14
8.0.110.0030.00317.05
8.0.100.0000.00817.04
8.0.90.0030.00516.93
8.0.80.0130.00417.15
8.0.70.0070.00017.18
8.0.60.0040.00417.09
8.0.50.0080.00017.03
8.0.30.0100.01017.28
8.0.20.0090.01117.40
8.0.10.0050.00317.30
8.0.00.0100.01016.96
7.4.330.0020.00215.15
7.4.320.0060.00016.72
7.4.300.0000.00616.77
7.4.290.0030.00716.80
7.4.280.0110.00016.64
7.4.270.0030.00316.83
7.4.260.0030.00316.78
7.4.250.0000.00716.73
7.4.240.0020.00516.76
7.4.230.0000.00716.73
7.4.220.0090.01216.78
7.4.210.0070.01316.74
7.4.200.0040.00416.53
7.4.160.0100.00716.85
7.4.150.0130.00317.40
7.4.140.0120.01017.86
7.4.130.0070.01016.70
7.4.120.0090.00916.66
7.4.110.0100.00716.74
7.4.100.0070.01316.50
7.4.90.0090.00916.59
7.4.80.0070.01419.39
7.4.70.0160.00016.92
7.4.60.0090.00916.59
7.4.50.0070.00016.69
7.4.40.0150.00416.66
7.4.30.0000.02216.54
7.4.00.0020.01115.01
7.3.330.0060.00013.41
7.3.320.0000.00513.41
7.3.310.0030.00316.47
7.3.300.0050.00316.43
7.3.290.0090.00716.57
7.3.280.0070.00916.55
7.3.270.0090.00617.40
7.3.260.0060.01216.70
7.3.250.0100.00916.69
7.3.240.0090.00916.85
7.3.230.0030.01316.57
7.3.210.0040.01316.42
7.3.200.0110.00619.39
7.3.190.0080.00816.84
7.3.180.0090.00616.83
7.3.170.0060.01516.64
7.3.160.0110.00616.68
7.3.120.0060.01215.12
7.3.110.0090.00915.16
7.3.100.0060.01014.78
7.3.90.0040.01015.10
7.3.80.0070.00715.34
7.3.70.0070.00315.28
7.3.60.0030.01015.01
7.3.50.0000.01515.10
7.3.40.0000.00915.04
7.3.30.0000.01714.98
7.3.20.0060.00316.82
7.3.10.0060.00916.89
7.3.00.0050.00516.82
7.2.330.0110.00617.07
7.2.320.0170.00316.68
7.2.310.0120.00416.81
7.2.300.0100.00716.68
7.2.290.0040.01416.98
7.2.250.0110.00015.56
7.2.240.0100.01015.11
7.2.230.0110.00415.26
7.2.220.0090.00915.23
7.2.210.0030.00715.41
7.2.200.0030.01015.41
7.2.190.0030.01315.30
7.2.180.0060.00815.27
7.2.170.0110.00015.13
7.2.160.0110.00415.43
7.2.150.0000.01616.85
7.2.140.0000.01717.09
7.2.130.0000.01417.21
7.2.120.0030.00716.98
7.2.110.0000.01216.90
7.2.100.0100.00317.14
7.2.90.0030.01017.27
7.2.80.0040.01117.06
7.2.70.0090.00616.90
7.2.60.0090.00916.96
7.2.50.0100.00017.25
7.2.40.0000.01617.25
7.2.30.0030.01016.98
7.2.20.0070.00417.05
7.2.10.0030.00616.93
7.2.00.0020.01118.54
7.1.330.0070.01116.06
7.1.320.0060.00916.13
7.1.310.0070.00416.18
7.1.300.0060.00315.80
7.1.290.0030.00716.05
7.1.280.0080.00515.68
7.1.270.0030.01216.13
7.1.260.0030.00716.05
7.1.250.0000.01416.07
7.1.240.0000.00916.02
7.1.230.0080.00316.04
7.1.220.0070.00716.10
7.1.210.0030.00716.07
7.1.200.0070.00716.08
7.1.190.0000.01115.95
7.1.180.0060.00616.14
7.1.170.0030.00716.00
7.1.160.0060.00316.18
7.1.150.0030.00616.21
7.1.140.0110.00016.18
7.1.130.0030.01015.82
7.1.120.0090.00616.17
7.1.110.0100.00715.89
7.1.100.0030.00817.18
7.1.90.0030.01016.19
7.1.80.0070.00816.19
7.1.70.0040.00916.89
7.1.60.0100.01017.77
7.1.50.0050.01316.51
7.1.40.0070.00716.18
7.1.30.0040.00416.12
7.1.20.0070.00715.89
7.1.10.0040.01216.09
7.1.00.0100.03719.23
7.0.330.0000.01215.74
7.0.320.0000.01315.71
7.0.310.0060.00615.56
7.0.300.0080.00415.57
7.0.290.0000.01715.73
7.0.280.0070.01015.25
7.0.270.0030.00915.44
7.0.260.0090.00415.69
7.0.250.0110.00415.24
7.0.240.0080.00815.60
7.0.230.0040.01115.79
7.0.220.0040.01115.74
7.0.210.0060.01115.58
7.0.200.0070.00416.10
7.0.190.0100.00315.69
7.0.180.0000.01615.61
7.0.170.0080.00815.36
7.0.160.0060.01015.67
7.0.150.0030.00915.66
7.0.140.0080.03918.78
7.0.130.0070.01015.26
7.0.120.0030.00615.78
7.0.110.0070.00715.65
7.0.100.0040.00815.72
7.0.90.0100.04218.59
7.0.80.0100.03818.58
7.0.70.0100.04018.60
7.0.60.0030.03918.62
7.0.50.0110.04319.00
7.0.40.0060.04816.80
7.0.30.0120.04017.00
7.0.20.0000.04816.81
7.0.10.0030.02816.83
7.0.00.0110.04316.90
5.6.400.0000.01314.04
5.6.390.0080.00814.39
5.6.380.0070.01014.48
5.6.370.0030.00914.54
5.6.360.0080.00414.79
5.6.350.0080.00614.41
5.6.340.0000.01114.41
5.6.330.0110.00414.49
5.6.320.0050.00514.41
5.6.310.0030.01214.16
5.6.300.0070.01014.79
5.6.290.0030.01014.63
5.6.280.0060.04017.60
5.6.270.0030.00914.90
5.6.260.0060.00614.28
5.6.250.0030.01014.41
5.6.240.0050.05017.63
5.6.230.0050.04517.48
5.6.220.0050.04717.48
5.6.210.0060.04117.57
5.6.200.0090.03917.79
5.6.190.0050.04717.76
5.6.180.0080.03017.59
5.6.170.0030.02717.75
5.6.160.0030.04717.68
5.6.150.0050.03717.71
5.6.140.0060.05017.63
5.6.130.0030.05117.65
5.6.120.0120.02817.63
5.6.110.0060.04317.69
5.6.100.0040.04417.71
5.6.90.0100.04517.71
5.6.80.0080.03517.36
5.6.70.0020.03517.52
5.6.60.0050.04617.28
5.6.50.0100.02717.44
5.6.40.0110.03617.27
5.6.30.0070.05217.38
5.6.20.0150.03017.30
5.6.10.0090.04217.42
5.6.00.0030.03917.39
5.5.380.0050.04417.39
5.5.370.0110.04017.45
5.5.360.0080.04017.41
5.5.350.0050.02717.55
5.5.340.0070.03717.63
5.5.330.0050.02717.68
5.5.320.0070.04017.74
5.5.310.0050.04217.64
5.5.300.0050.04717.77
5.5.290.0040.04417.62
5.5.280.0100.04017.59
5.5.270.0030.03717.65
5.5.260.0020.04717.72
5.5.250.0100.03517.56
5.5.240.0070.04717.40
5.5.230.0070.04717.29
5.5.220.0130.03517.08
5.5.210.0060.02817.36
5.5.200.0040.02717.36
5.5.190.0030.02817.28
5.5.180.0080.04017.22
5.5.170.0090.00614.34
5.5.160.0060.02517.30
5.5.150.0050.02517.35
5.5.140.0070.02217.40
5.5.130.0110.03817.30
5.5.120.0080.04217.23
5.5.110.0070.04017.23
5.5.100.0090.02117.25
5.5.90.0070.04017.38
5.5.80.0020.04917.20
5.5.70.0120.03717.32
5.5.60.0120.03517.06
5.5.50.0090.04117.29
5.5.40.0050.04817.08
5.5.30.0110.03717.17
5.5.20.0050.04117.21
5.5.10.0040.04917.34
5.5.00.0100.02817.21
5.4.450.0070.02515.32
5.4.440.0080.04215.24
5.4.430.0050.02815.27
5.4.420.0100.03715.25
5.4.410.0040.03115.26
5.4.400.0020.04714.98
5.4.390.0070.03815.03
5.4.380.0030.04514.97
5.4.370.0050.02814.88
5.4.360.0100.03914.98
5.4.350.0080.02214.96
5.4.340.0020.04615.01
5.4.330.0070.00011.17
5.4.320.0030.02314.98
5.4.310.0120.02715.03
5.4.300.0090.03915.10
5.4.290.0080.03815.10
5.4.280.0050.03115.05
5.4.270.0020.04514.92
5.4.260.0030.02815.15
5.4.250.0150.03215.04
5.4.240.0080.03515.01
5.4.230.0020.04515.02
5.4.220.0050.03315.12
5.4.210.0090.03714.95
5.4.200.0060.03815.10
5.4.190.0070.04215.03
5.4.180.0040.02715.10
5.4.170.0050.04014.81
5.4.160.0070.03815.07
5.4.150.0110.03815.09
5.4.140.0000.04213.71
5.4.130.0040.02213.67
5.4.120.0080.03813.75
5.4.110.0010.04313.68
5.4.100.0100.02813.78
5.4.90.0040.02213.65
5.4.80.0030.04013.76
5.4.70.0050.02813.69
5.4.60.0030.04313.74
5.4.50.0050.02213.69
5.4.40.0070.03813.51
5.4.30.0090.01913.57
5.4.20.0030.03713.72
5.4.10.0050.02313.74
5.4.00.0030.03113.27
5.3.290.0170.05314.48
5.3.280.0100.07014.60
5.3.270.0070.07714.62
5.3.260.0000.07714.59
5.3.250.0170.07014.61
5.3.240.0070.07014.59
5.3.230.0130.07314.56
5.3.220.0070.07714.56
5.3.210.0000.08314.55
5.3.200.0170.05314.52
5.3.190.0070.03714.54
5.3.180.0030.04714.52
5.3.170.0000.06314.43
5.3.160.0030.07314.55
5.3.150.0000.07314.53
5.3.140.0070.06714.52
5.3.130.0030.07314.55
5.3.120.0100.08014.46
5.3.110.0000.05314.46
5.3.100.0030.08013.87
5.3.90.0030.08013.87
5.3.80.0070.05313.95
5.3.70.0070.07014.01
5.3.60.0070.07013.99
5.3.50.0070.07313.94
5.3.40.0070.04013.70
5.3.30.0030.07313.68
5.3.20.0070.07013.63
5.3.10.0070.07013.59
5.3.00.0000.08013.59
5.2.170.0000.04711.18
5.2.160.0070.06311.00
5.2.150.0000.06711.09
5.2.140.0030.06711.21
5.2.130.0100.05711.09
5.2.120.0130.03710.96
5.2.110.0070.05311.13
5.2.100.0000.06710.89
5.2.90.0030.06311.11
5.2.80.0030.07011.07
5.2.70.0130.05710.91
5.2.60.0030.06311.10
5.2.50.0030.04311.00
5.2.40.0030.05311.00
5.2.30.0000.06711.01
5.2.20.0100.06010.91
5.2.10.0100.05710.92
5.2.00.0000.05310.73
5.1.60.0000.05710.30
5.1.50.0030.05310.30
5.1.40.0070.04010.30
5.1.30.0000.05710.38
5.1.20.0030.05710.36
5.1.10.0100.05310.30
5.1.00.0000.05010.30
5.0.50.0000.03710.30
5.0.40.0000.03310.30
5.0.30.0000.04310.30
5.0.20.0100.03710.30
5.0.10.0000.02710.30
5.0.00.0030.06010.30
4.4.90.0000.04010.30
4.4.80.0030.03310.30
4.4.70.0000.04010.30
4.4.60.0030.02710.30
4.4.50.0030.03310.30
4.4.40.0000.05310.30
4.4.30.0000.03710.30
4.4.20.0000.03710.30
4.4.10.0070.01310.30
4.4.00.0000.03710.30
4.3.110.0000.03310.30
4.3.100.0000.02710.30
4.3.90.0030.02010.30
4.3.80.0030.03310.30
4.3.70.0070.03310.30
4.3.60.0000.02710.30
4.3.50.0030.03710.30
4.3.40.0000.04310.30
4.3.30.0000.01710.30
4.3.20.0000.03710.30
4.3.10.0030.03310.30
4.3.00.0000.03710.30

preferences:
55.94 ms | 401 KiB | 5 Q