3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (function_exists("date_default_timezone_set")) date_default_timezone_set('Europe/Moscow'); echo date( "Y-m-d",strtotime('2014-01-31 +1 month')); $date = new DateTime('2014-01-31'); $date->modify('+1 month'); echo $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.3.40.0130.00719.01
8.3.30.0040.01119.27
8.3.20.0000.00720.16
8.3.10.0080.00021.80
8.3.00.0040.00422.52
8.2.170.0070.01022.96
8.2.160.0060.01618.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00717.68
8.2.110.0090.00020.47
8.2.100.0070.00719.34
8.2.90.0040.00419.30
8.2.80.0040.00419.53
8.2.70.0000.00817.88
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.47
8.2.30.0040.00418.18
8.2.20.0070.00017.98
8.2.10.0040.00417.98
8.2.00.0070.00417.90
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00423.78
8.1.230.0040.00819.21
8.1.220.0030.00617.88
8.1.210.0000.00818.77
8.1.200.0040.00417.38
8.1.190.0050.00317.53
8.1.180.0050.00318.58
8.1.170.0080.00018.64
8.1.160.0070.00022.11
8.1.150.0000.00818.81
8.1.140.0000.00817.55
8.1.130.0060.00317.93
8.1.120.0040.00417.67
8.1.110.0030.00517.53
8.1.100.0040.00417.66
8.1.90.0070.00017.62
8.1.80.0000.00717.53
8.1.70.0000.00717.61
8.1.60.0000.00817.65
8.1.50.0040.00417.54
8.1.40.0000.00817.62
8.1.30.0060.00317.73
8.1.20.0000.00817.65
8.1.10.0050.00217.68
8.1.00.0050.00317.54
8.0.300.0070.00018.77
8.0.290.0000.00717.18
8.0.280.0050.00218.57
8.0.270.0050.00317.39
8.0.260.0060.00017.10
8.0.250.0040.00417.12
8.0.240.0040.00417.20
8.0.230.0030.00317.25
8.0.220.0040.00317.08
8.0.210.0030.00317.00
8.0.200.0000.00617.12
8.0.190.0060.00317.11
8.0.180.0050.00217.19
8.0.170.0000.00717.20
8.0.160.0050.00317.07
8.0.150.0050.00217.09
8.0.140.0000.00717.01
8.0.130.0030.00313.58
8.0.120.0000.00717.11
8.0.110.0000.00817.11
8.0.100.0000.00716.95
8.0.90.0000.00717.04
8.0.80.0140.00716.96
8.0.70.0000.00716.89
8.0.60.0050.00217.11
8.0.50.0000.00717.13
8.0.30.0110.01117.12
8.0.20.0100.01017.40
8.0.10.0000.00717.08
8.0.00.0090.00817.03
7.4.330.0000.00515.00
7.4.320.0000.00616.70
7.4.300.0060.00016.68
7.4.290.0060.00316.56
7.4.280.0030.00316.58
7.4.270.0030.00616.61
7.4.260.0000.00716.69
7.4.250.0050.00216.58
7.4.240.0050.00216.65
7.4.230.0000.00616.38
7.4.220.0070.01116.67
7.4.210.0070.00816.74
7.4.200.0040.00416.76
7.4.190.0000.00716.68
7.4.160.0120.00316.43
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0080.01116.61
7.4.120.0080.00816.72
7.4.110.0100.00716.61
7.4.100.0080.01216.60
7.4.90.0180.00316.67
7.4.80.0070.01119.39
7.4.70.0080.00916.63
7.4.60.0100.00716.63
7.4.50.0020.00216.28
7.4.40.0000.01722.77
7.4.30.0080.00816.60
7.4.00.0050.01115.23
7.3.330.0020.00213.09
7.3.320.0040.00313.18
7.3.310.0000.00716.43
7.3.300.0030.00316.23
7.3.290.0130.00316.32
7.3.280.0090.00916.33
7.3.270.0070.01017.40
7.3.260.0150.00316.40
7.3.250.0110.00816.51
7.3.240.0070.01016.37
7.3.230.0140.00616.39
7.3.210.0180.00016.66
7.3.200.0030.01619.39
7.3.190.0100.01016.53
7.3.180.0030.01416.43
7.3.170.0090.01316.70
7.3.160.0140.00516.40
7.3.120.0100.00616.04
7.3.110.0020.01416.05
7.3.100.0070.00616.11
7.3.90.0050.01316.18
7.3.80.0050.01016.09
7.3.70.0090.01016.09
7.3.60.0070.00916.13
7.3.50.0080.00716.07
7.3.40.0100.00315.88
7.3.30.0050.00915.87
7.3.20.0070.00816.91
7.3.10.0030.01316.97
7.3.00.0070.00616.83
7.2.330.0130.00316.49
7.2.320.0090.00916.93
7.2.310.0170.00016.66
7.2.300.0130.00316.87
7.2.290.0080.00816.82
7.2.250.0130.00714.93
7.2.240.0070.00916.02
7.2.230.0060.00516.01
7.2.220.0020.01516.10
7.2.210.0050.01016.20
7.2.200.0050.01216.13
7.2.190.0090.00516.13
7.2.180.0060.00916.12
7.2.170.0040.00916.20
7.2.160.0100.00317.15
7.2.150.0130.00317.15
7.2.140.0000.01117.15
7.2.130.0070.00317.08
7.2.120.0060.00917.05
7.2.110.0070.00817.05
7.2.100.0100.00616.90
7.2.90.0070.00517.04
7.2.80.0100.00317.11
7.2.70.0070.00817.19
7.2.60.0100.00717.14
7.2.50.0090.00617.20
7.2.40.0110.00317.13
7.2.30.0030.01017.04
7.2.20.0050.00817.14
7.2.10.0050.00717.06
7.2.00.0060.00917.82
7.1.330.0120.00316.44
7.1.320.0040.00816.57
7.1.310.0040.01216.55
7.1.300.0050.00916.55
7.1.290.0040.00716.53
7.1.280.0080.00616.47
7.1.270.0070.00716.56
7.1.260.0100.00816.57
7.1.250.0060.00716.38
7.1.240.0100.00015.80
7.1.230.0120.00315.87
7.1.220.0040.00415.37
7.1.210.0070.00715.91
7.1.200.0040.00615.84
7.1.190.0040.01115.81
7.1.180.0100.00315.88
7.1.170.0030.00615.85
7.1.160.0030.00715.95
7.1.150.0000.01515.92
7.1.140.0030.01316.00
7.1.130.0110.00315.84
7.1.120.0070.00715.88
7.1.110.0030.00915.91
7.1.100.0060.00616.66
7.1.90.0050.00815.42
7.1.80.0090.00615.95
7.1.70.0020.00916.54
7.1.60.0060.01417.74
7.1.50.0110.00816.29
7.1.40.0060.00315.72
7.1.30.0030.01015.89
7.1.20.0090.00315.79
7.1.10.0060.01215.79
7.1.00.0070.03719.08
7.0.330.0000.01415.07
7.0.320.0080.00415.35
7.0.310.0110.00415.32
7.0.300.0000.00915.35
7.0.290.0070.00415.24
7.0.280.0030.00915.01
7.0.270.0030.00715.20
7.0.260.0100.00015.16
7.0.250.0140.00015.58
7.0.240.0040.00715.26
7.0.230.0090.00015.60
7.0.220.0040.01115.46
7.0.210.0100.00315.50
7.0.200.0050.00716.13
7.0.190.0000.01315.48
7.0.180.0070.00715.39
7.0.170.0080.00415.27
7.0.160.0040.01115.48
7.0.150.0060.00915.21
7.0.140.0050.04018.69
7.0.130.0070.00715.35
7.0.120.0040.00715.37
7.0.110.0100.00615.31
7.0.100.0040.00815.41
7.0.90.0090.04118.32
7.0.80.0080.04218.42
7.0.70.0060.04318.50
7.0.60.0000.03518.63
7.0.50.0030.02818.67
7.0.40.0060.02216.76
7.0.30.0020.02816.79
7.0.20.0120.02016.71
7.0.10.0070.02016.70
7.0.00.0030.04516.82
5.6.380.0060.00614.44
5.6.370.0140.00714.41
5.6.360.0000.01314.39
5.6.350.0030.01014.21
5.6.340.0080.00414.07
5.6.330.0090.00314.38
5.6.320.0070.00614.32
5.6.310.0040.01114.09
5.6.300.0110.00013.82
5.6.290.0100.00713.97
5.6.280.0040.04217.48
5.6.270.0100.00314.41
5.6.260.0030.00914.21
5.6.250.0080.00813.97
5.6.240.0100.04517.42
5.6.230.0050.05017.31
5.6.220.0030.03417.32
5.6.210.0080.04217.50
5.6.200.0020.03817.59
5.6.190.0100.02317.64
5.6.180.0060.04617.81
5.6.170.0090.02117.73
5.6.160.0050.04317.75
5.6.150.0060.04417.74
5.6.140.0080.03117.49
5.6.130.0030.04617.43
5.6.120.0050.02817.46
5.6.110.0050.04717.81
5.6.100.0050.04717.79
5.6.90.0060.04617.70
5.6.80.0030.04717.42
5.6.70.0060.04417.38
5.6.60.0070.04317.41
5.6.50.0050.04116.97
5.6.40.0050.02117.18
5.6.30.0050.02917.31
5.6.20.0120.02817.11
5.6.10.0080.04217.08
5.6.00.0060.04117.01
5.5.380.0020.04415.66
5.5.370.0020.03815.80
5.5.360.0050.04315.62
5.5.350.0020.03915.81
5.5.340.0020.04815.91
5.5.330.0110.02115.86
5.5.320.0060.04016.00
5.5.310.0000.04915.83
5.5.300.0060.03815.84
5.5.290.0070.04315.89
5.5.280.0080.03915.88
5.5.270.0060.04416.03
5.5.260.0050.03915.86
5.5.250.0020.03715.67
5.5.240.0030.04615.61
5.5.230.0070.04215.57
5.5.220.0060.04115.58
5.5.210.0030.04415.53
5.5.200.0050.03415.50
5.5.190.0030.04515.57
5.5.180.0070.04415.46
5.5.170.0080.00410.95
5.5.160.0020.03015.58
5.5.150.0030.04315.56
5.5.140.0060.04315.57
5.5.130.0070.03015.56
5.5.120.0050.03415.68
5.5.110.0070.04215.52
5.5.100.0070.03415.48
5.5.90.0030.02815.67
5.5.80.0020.04015.41
5.5.70.0060.04115.57
5.5.60.0080.04015.45
5.5.50.0070.03815.60
5.5.40.0060.04115.58
5.5.30.0020.02615.42
5.5.20.0060.04615.46
5.5.10.0060.04015.50
5.5.00.0080.04015.48
5.4.450.0080.03815.18
5.4.440.0080.02315.21
5.4.430.0060.04115.22
5.4.420.0020.03915.05
5.4.410.0100.02815.03
5.4.400.0030.04015.07
5.4.390.0070.02715.00
5.4.380.0030.03814.94
5.4.370.0050.04114.98
5.4.360.0050.02715.04
5.4.350.0030.04014.97
5.4.340.0030.04414.91
5.4.330.0030.00910.98
5.4.320.0080.02914.92
5.4.310.0010.04714.96
5.4.300.0050.03815.06
5.4.290.0030.03814.96
5.4.280.0060.04014.84
5.4.270.0080.04014.97
5.4.260.0110.02114.84
5.4.250.0050.04114.91
5.4.240.0050.03314.93
5.4.230.0020.03615.02
5.4.220.0090.03215.03
5.4.210.0080.04214.96
5.4.200.0040.02314.99
5.4.190.0050.04814.97
5.4.180.0030.02914.88
5.4.170.0030.04115.10
5.4.160.0050.04114.83
5.4.150.0100.02015.05
5.4.140.0050.04113.64
5.4.130.0030.02813.63
5.4.120.0020.02813.63
5.4.110.0060.03513.59
5.4.100.0020.03913.60
5.4.90.0050.02813.61
5.4.80.0020.02913.66
5.4.70.0090.03913.70
5.4.60.0030.04213.59
5.4.50.0040.04313.56
5.4.40.0070.03513.65
5.4.30.0030.03113.55
5.4.20.0060.03513.58
5.4.10.0080.01813.67
5.4.00.0050.02213.28
5.3.290.0130.02512.71
5.3.280.0020.04512.74
5.3.270.0070.02312.75
5.3.260.0050.04212.73
5.3.250.0080.03812.74
5.3.240.0070.03712.74
5.3.230.0010.04812.74
5.3.220.0050.04212.71
5.3.210.0050.04312.64
5.3.200.0060.03912.71
5.3.190.0060.03512.72
5.3.180.0070.02212.71
5.3.170.0080.03512.68
5.3.160.0030.02812.66
5.3.150.0030.03712.71
5.3.140.0080.03712.70
5.3.130.0050.03412.65
5.3.120.0050.04212.72
5.3.110.0040.02312.69
5.3.100.0030.04212.46
5.3.90.0030.04012.45
5.3.80.0010.04112.46
5.3.70.0030.03412.38
5.3.60.0020.04212.42
5.3.50.0030.04112.41
5.3.40.0030.03612.41
5.3.30.0060.02312.29
5.3.20.0030.04312.29
5.3.10.0060.02812.27
5.3.00.0020.04212.25
5.2.170.0080.03011.00
5.2.160.0000.04011.01
5.2.150.0050.03011.04
5.2.140.0040.03110.95
5.2.130.0010.03410.93
5.2.120.0030.02710.92
5.2.110.0050.01511.01
5.2.100.0050.02510.90
5.2.90.0030.03311.01
5.2.80.0030.03510.93
5.2.70.0050.01810.98
5.2.60.0050.03310.91
5.2.50.0050.02210.96
5.2.40.0020.03310.90
5.2.30.0040.02210.91
5.2.20.0020.03110.90
5.2.10.0050.02810.91
5.2.00.0090.02610.90
5.1.60.0050.02810.90
5.1.50.0040.02710.90
5.1.40.0030.02510.90
5.1.30.0060.02310.90
5.1.20.0050.02810.90
5.1.10.0020.01510.90
5.1.00.0030.03110.90
5.0.50.0030.02410.90
5.0.40.0020.02010.90
5.0.30.0020.03510.90
5.0.20.0040.01810.90
5.0.10.0030.02410.90
5.0.00.0000.02310.90
4.4.90.0020.02110.90
4.4.80.0020.02010.90
4.4.70.0000.01610.90
4.4.60.0030.02010.90
4.4.50.0020.01710.90
4.4.40.0000.02210.90
4.4.30.0010.01910.90
4.4.20.0010.02010.90
4.4.10.0030.01710.90
4.4.00.0030.02910.90
4.3.110.0030.01010.90
4.3.100.0010.02110.90
4.3.90.0020.00810.90
4.3.80.0020.01310.90
4.3.70.0000.01210.90
4.3.60.0030.01410.90
4.3.50.0020.01710.90
4.3.40.0000.01610.90
4.3.30.0050.01710.90
4.3.20.0020.02010.90
4.3.10.0000.02110.90
4.3.00.0030.02010.90

preferences:
43.83 ms | 400 KiB | 5 Q