3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("2013-10-31, -1 month: %s\n" . "2013-10-31, first day of 1 month ago: %s\n" . "2013-10-31, first day 1 month ago: %s\n" . "2013-10-31, first day, -1 month: %s", date('m', strtotime('2013-10-31 -1 month')), date('m', strtotime('2013-10-31 first day of 1 month ago')), date('m', strtotime('2013-10-31 first day 1 month ago')), date('m', strtotime('2013-10-31 first day -1 month')));

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.0040.01118.73
8.3.30.0110.00420.38
8.3.20.0030.00518.77
8.3.10.0040.00420.96
8.3.00.0040.00423.71
8.2.170.0040.01122.96
8.2.160.0140.00020.38
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0060.00319.89
8.2.110.0090.00022.38
8.2.100.0040.00817.89
8.2.90.0050.00219.17
8.2.80.0000.00719.46
8.2.70.0000.00817.75
8.2.60.0050.00517.68
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00419.44
8.2.20.0030.00517.80
8.2.10.0040.00417.75
8.2.00.0040.00417.88
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.46
8.1.230.0110.00020.85
8.1.220.0080.00018.77
8.1.210.0060.00618.86
8.1.200.0060.00317.25
8.1.190.0070.00017.40
8.1.180.0030.00518.10
8.1.170.0050.00318.76
8.1.160.0000.00818.86
8.1.150.0030.00518.74
8.1.140.0030.00517.59
8.1.130.0000.00817.91
8.1.120.0000.00717.60
8.1.110.0040.00417.59
8.1.100.0000.00717.60
8.1.90.0060.00317.61
8.1.80.0050.00317.59
8.1.70.0030.00517.56
8.1.60.0030.00617.60
8.1.50.0000.00817.57
8.1.40.0000.00717.47
8.1.30.0070.00017.71
8.1.20.0000.00917.77
8.1.10.0050.00317.57
8.1.00.0080.00017.56
8.0.300.0040.00419.92
8.0.290.0040.00417.18
8.0.280.0070.00018.45
8.0.270.0000.00717.33
8.0.260.0070.00016.89
8.0.250.0040.00417.11
8.0.240.0090.00317.03
8.0.230.0050.00317.00
8.0.220.0030.00317.01
8.0.210.0000.00717.02
8.0.200.0030.00317.08
8.0.190.0030.00317.13
8.0.180.0000.00916.89
8.0.170.0030.00516.96
8.0.160.0030.00317.01
8.0.150.0040.00416.96
8.0.140.0000.00917.01
8.0.130.0060.00013.44
8.0.120.0000.00717.00
8.0.110.0040.00416.89
8.0.100.0000.00717.09
8.0.90.0000.00816.82
8.0.80.0140.00716.94
8.0.70.0030.00516.98
8.0.60.0050.00216.88
8.0.50.0040.00416.97
8.0.30.0100.00716.99
8.0.20.0080.01017.40
8.0.10.0000.00817.14
8.0.00.0100.01416.84
7.4.330.0000.00516.83
7.4.320.0030.00316.60
7.4.300.0000.00616.52
7.4.290.0070.00016.68
7.4.280.0070.00016.66
7.4.270.0000.00816.60
7.4.260.0000.00513.29
7.4.250.0050.00316.54
7.4.240.0000.00816.68
7.4.230.0070.00016.70
7.4.220.0030.01516.64
7.4.210.0050.01016.61
7.4.200.0040.00416.72
7.4.190.0030.00316.83
7.4.160.0060.00916.43
7.4.150.0140.00717.40
7.4.140.0130.00517.86
7.4.130.0090.01116.49
7.4.120.0120.00516.62
7.4.110.0060.01216.53
7.4.100.0080.01116.68
7.4.90.0110.00516.39
7.4.80.0060.01619.39
7.4.70.0060.01216.80
7.4.60.0070.01016.77
7.4.50.0030.00616.41
7.4.40.0140.00022.77
7.4.30.0040.01216.78
7.4.00.0070.01015.00
7.3.330.0000.00513.18
7.3.320.0000.00613.18
7.3.310.0030.00316.30
7.3.300.0040.00416.29
7.3.290.0100.00616.43
7.3.280.0060.01016.30
7.3.270.0040.01317.40
7.3.260.0110.00918.24
7.3.250.0080.01016.40
7.3.240.0110.00716.43
7.3.230.0060.01316.44
7.3.210.0130.00616.61
7.3.200.0120.00919.39
7.3.190.0130.00316.60
7.3.180.0150.00016.61
7.3.170.0120.00916.36
7.3.160.0090.00616.63
7.3.120.0070.00714.95
7.2.330.0090.00916.54
7.2.320.0120.00616.80
7.2.310.0110.00616.91
7.2.300.0100.00716.74
7.2.290.0110.00416.71
7.2.00.0080.00419.48
7.1.100.0060.00818.20
7.1.70.0100.00316.88
7.1.60.0110.01419.17
7.1.50.0090.01317.09
7.1.00.0030.07022.27
7.0.200.0000.00816.69
7.0.140.0070.07022.12
7.0.110.0130.07719.95
7.0.100.0100.05720.10
7.0.90.0000.07719.97
7.0.80.0130.07319.89
7.0.70.0100.07719.88
7.0.60.0130.04019.95
7.0.50.0000.08020.25
7.0.40.0000.08320.06
7.0.30.0100.08020.05
7.0.20.0030.09020.19
7.0.10.0130.08320.19
7.0.00.0070.09020.03
5.6.280.0000.07721.02
5.6.260.0130.05720.55
5.6.250.0100.08020.62
5.6.240.0070.08320.64
5.6.230.0130.08020.57
5.6.220.0100.07720.67
5.6.210.0100.04020.71
5.6.200.0100.08321.01
5.6.190.0000.08720.98
5.6.180.0000.09021.07
5.6.170.0130.07721.02
5.6.160.0170.08321.09
5.6.150.0030.07021.19
5.6.140.0000.07721.26
5.6.130.0200.04321.09
5.6.120.0070.08321.21
5.6.110.0070.08720.92
5.6.100.0070.08020.94
5.6.90.0100.06721.24
5.6.80.0130.07720.52
5.6.70.0170.07020.45
5.6.60.0170.07020.63
5.6.50.0000.08720.46
5.6.40.0070.05020.29
5.6.30.0030.08020.41
5.6.20.0070.08320.50
5.6.10.0030.08320.34
5.6.00.0030.08020.30
5.5.380.0170.06320.57
5.5.370.0100.07320.25
5.5.360.0100.08020.45
5.5.350.0070.06020.38
5.5.340.0100.07721.03
5.5.330.0100.07320.90
5.5.320.0130.07720.81
5.5.310.0130.07720.94
5.5.300.0070.08320.77
5.5.290.0130.04720.90
5.5.280.0100.03720.73
5.5.270.0100.08720.69
5.5.260.0170.07720.89
5.5.250.0070.07720.76
5.5.240.0100.07720.37
5.5.230.0070.08320.11
5.5.220.0100.06720.15
5.5.210.0030.08720.33
5.5.200.0170.07320.24
5.5.190.0130.07320.36
5.5.180.0070.07720.16
5.5.160.0170.06720.18
5.5.150.0070.04320.23
5.5.140.0170.06720.14
5.5.130.0070.08020.05
5.5.120.0100.07720.38
5.5.110.0170.07020.29
5.5.100.0170.06020.14
5.5.90.0070.07320.20
5.5.80.0070.05720.27
5.5.70.0100.07720.09
5.5.60.0000.04720.06
5.5.50.0070.07020.05
5.5.40.0170.06720.03
5.5.30.0130.07720.23
5.5.20.0000.06320.20
5.5.10.0070.05319.99
5.5.00.0100.07020.05
5.4.450.0070.07719.36
5.4.440.0170.06719.60
5.4.430.0100.06319.30
5.4.420.0100.07719.57
5.4.410.0030.05019.36
5.4.400.0130.03018.93
5.4.390.0070.08019.27
5.4.380.0130.06718.95
5.4.370.0070.07318.98
5.4.360.0100.07319.03
5.4.350.0100.07719.10
5.4.340.0070.08319.10
5.4.320.0000.08019.27
5.4.310.0070.04719.16
5.4.300.0070.07719.24
5.4.290.0000.08019.09
5.4.280.0130.06019.17
5.4.270.0070.06719.02
5.4.260.0070.07719.11
5.4.250.0030.06018.97
5.4.240.0100.07018.92
5.4.230.0030.08319.04
5.4.220.0170.05319.11
5.4.210.0070.08719.09
5.4.200.0070.07019.27
5.4.190.0000.04718.92
5.4.180.0200.06018.97
5.4.170.0130.07319.15
5.4.160.0070.07719.10
5.4.150.0170.07019.11
5.4.140.0100.07016.52
5.4.130.0100.07016.27
5.4.120.0000.05716.44
5.4.110.0070.07316.30
5.4.100.0100.07016.55
5.4.90.0030.07316.55
5.4.80.0070.04016.52
5.4.70.0070.07016.40
5.4.60.0100.03716.40
5.4.50.0070.07716.47
5.4.40.0030.06716.43
5.4.30.0130.06716.37
5.4.20.0030.04316.45
5.4.10.0130.03316.33
5.4.00.0070.06015.62
5.3.290.0100.05714.76
5.3.280.0100.07314.52
5.3.270.0170.06714.53
5.3.260.0100.07014.39
5.3.250.0130.06714.71
5.3.240.0070.04714.39
5.3.230.0070.07014.54
5.3.220.0000.08014.46
5.3.210.0070.07714.57
5.3.200.0070.03714.36
5.3.190.0030.08014.45
5.3.180.0070.05314.35
5.3.170.0070.07714.44
5.3.160.0100.07014.46
5.3.150.0130.06714.58
5.3.140.0100.07014.63
5.3.130.0100.06014.34
5.3.120.0170.04714.39
5.3.110.0100.05014.64
5.3.100.0070.05013.91
5.3.90.0070.06014.08
5.3.80.0100.06313.89
5.3.70.0100.05013.86
5.3.60.0070.07013.89
5.3.50.0070.06313.79
5.3.40.0130.07013.95
5.3.30.0030.06313.71
5.3.20.0070.07013.62
5.3.10.0030.07713.69
5.3.00.0100.03713.57
5.2.170.0030.06312.25
5.2.160.0130.04712.25
5.2.150.0070.06312.25
5.2.140.0070.05312.25
5.2.130.0030.06012.25
5.2.120.0030.06312.25
5.2.110.0070.06012.25
5.2.100.0030.06312.25
5.2.90.0030.03712.25
5.2.80.0130.05712.25
5.2.70.0030.05312.25
5.2.60.0100.03712.25
5.2.50.0070.04712.25
5.2.40.0030.04312.25
5.2.30.0030.03712.25
5.2.20.0070.06012.25
5.2.10.0030.06012.25
5.2.00.0030.06012.25
5.1.60.0000.05312.25
5.1.50.0000.06012.25
5.1.40.0000.03312.25
5.1.30.0100.05312.25
5.1.20.0000.05312.25
5.1.10.0030.05012.25
5.1.00.0030.06012.25
5.0.50.0000.04712.25
5.0.40.0000.04712.25
5.0.30.0030.06312.25
5.0.20.0030.04312.25
5.0.10.0030.04312.25
5.0.00.0070.05712.25
4.4.90.0030.03012.25
4.4.80.0070.03312.25
4.4.70.0000.02712.25
4.4.60.0030.02312.25
4.4.50.0070.03012.25
4.4.40.0030.04712.25
4.4.30.0000.03312.25
4.4.20.0000.03712.25
4.4.10.0030.03312.25
4.4.00.0000.04012.25
4.3.110.0030.03312.25
4.3.100.0000.03712.25
4.3.90.0100.02312.25
4.3.80.0070.03312.25
4.3.70.0000.03712.25
4.3.60.0000.04012.25
4.3.50.0000.02012.25
4.3.40.0030.05012.25
4.3.30.0030.02312.25
4.3.20.0000.04012.25
4.3.10.0000.02312.25
4.3.00.0000.02712.25

preferences:
65.39 ms | 400 KiB | 5 Q