3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sdate = "2017-06-19"; $edate = "2017-08-21"; $ts1 = strtotime($sdate); $ts2 = strtotime($edate); $year1 = date('Y', $ts1); $year2 = date('Y', $ts2); $month1 = date('m', $ts1); $month2 = date('m', $ts2); $diff = (($year2 - $year1) * 12) + ($month2 - $month1); for($i=1; $i<=$diff; $i++) { $time = strtotime($sdate); $final = date("Y-m-d", strtotime("+1 month", $time)); echo $final ."\n"; //$sql = mysqli_query($con, "SUPPORT REQUEST QUERY"); }

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.70.0090.00916.63
8.3.60.0140.00716.63
8.3.50.0110.00816.44
8.3.40.0110.00718.87
8.3.30.0040.01118.85
8.3.20.0080.00021.95
8.3.10.0070.00021.93
8.3.00.0000.00819.56
8.2.190.0150.00018.43
8.2.180.0040.01125.92
8.2.170.0060.01022.96
8.2.160.0120.00320.52
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00319.52
8.2.100.0040.00818.09
8.2.90.0050.00319.39
8.2.80.0030.00517.97
8.2.70.0070.00418.00
8.2.60.0080.00018.16
8.2.50.0000.00818.10
8.2.40.0000.00820.58
8.2.30.0070.00019.26
8.2.20.0060.00318.06
8.2.10.0000.00718.21
8.2.00.0040.00418.23
8.1.280.0100.00725.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00322.67
8.1.230.0000.01121.04
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0040.00417.48
8.1.190.0060.00317.60
8.1.180.0080.00018.10
8.1.170.0040.00418.66
8.1.160.0040.00419.07
8.1.150.0040.00420.65
8.1.140.0080.00019.65
8.1.130.0050.00220.78
8.1.120.0000.00817.64
8.1.110.0070.00017.66
8.1.100.0080.00017.57
8.1.90.0060.00317.53
8.1.80.0040.00417.60
8.1.70.0030.00317.61
8.1.60.0000.00817.75
8.1.50.0030.00617.53
8.1.40.0030.00717.52
8.1.30.0000.00917.70
8.1.20.0040.00417.76
8.1.10.0050.00317.57
8.1.00.0030.00617.58
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0000.00718.56
8.0.270.0030.00317.27
8.0.260.0060.00018.96
8.0.250.0030.00317.21
8.0.240.0080.00317.30
8.0.230.0000.00817.23
8.0.220.0050.00317.15
8.0.210.0040.00417.21
8.0.200.0050.00217.19
8.0.190.0040.00817.29
8.0.180.0000.00817.25
8.0.170.0000.00717.27
8.0.160.0000.00717.23
8.0.150.0000.00817.13
8.0.140.0040.00417.08
8.0.130.0030.00313.54
8.0.120.0000.00817.20
8.0.110.0000.00717.01
8.0.100.0000.00717.10
8.0.90.0040.00417.11
8.0.80.0030.01517.16
8.0.70.0050.00317.04
8.0.60.0020.00517.02
8.0.50.0000.00917.11
8.0.30.0100.00917.34
8.0.20.0120.00717.46
8.0.10.0050.00317.22
8.0.00.0150.00616.92
7.4.330.0020.00215.55
7.4.320.0030.00316.63
7.4.300.0030.00316.72
7.4.290.0030.00316.64
7.4.280.0060.00316.64
7.4.270.0000.00716.63
7.4.260.0030.00316.76
7.4.250.0030.00616.59
7.4.240.0030.00516.68
7.4.230.0030.00316.76
7.4.220.0190.00316.55
7.4.210.0030.01116.69
7.4.200.0070.00016.80
7.4.160.0140.00516.80
7.4.150.0170.00017.40
7.4.140.0090.01217.86
7.4.130.0150.00516.67
7.4.120.0120.00916.65
7.4.110.0120.00616.76
7.4.100.0140.00716.65
7.4.90.0120.00916.54
7.4.80.0070.01219.39
7.4.70.0070.01316.73
7.4.60.0060.01216.66
7.4.50.0030.01316.58
7.4.40.0060.01016.79
7.4.30.0080.00816.68
7.4.10.0110.00715.10
7.4.00.0040.01015.02
7.3.330.0000.00613.36
7.3.320.0030.00313.15
7.3.310.0050.00316.32
7.3.300.0070.00016.50
7.3.290.0130.00416.46
7.3.280.0100.00616.45
7.3.270.0060.01317.40
7.3.260.0120.00816.68
7.3.250.0100.00916.71
7.3.240.0090.00816.68
7.3.230.0060.01116.75
7.3.210.0130.00616.44
7.3.200.0070.01116.53
7.3.190.0130.01016.76
7.3.180.0090.00616.56
7.3.170.0060.00916.71
7.3.160.0060.00916.76
7.3.130.0070.00714.94
7.3.120.0070.00714.77
7.3.110.0100.01015.12
7.3.100.0060.00615.23
7.3.90.0040.00715.30
7.3.80.0100.00315.11
7.3.70.0000.01315.09
7.3.60.0000.01315.09
7.3.50.0090.00615.04
7.3.40.0060.00314.98
7.3.30.0100.00315.20
7.3.20.0080.00316.93
7.3.10.0040.00716.99
7.3.00.0070.00716.93
7.2.330.0090.00916.72
7.2.320.0030.01717.00
7.2.310.0090.01516.78
7.2.300.0060.01117.06
7.2.290.0060.01016.82
7.2.260.0080.00815.23
7.2.250.0070.01014.93
7.2.240.0040.01115.03
7.2.230.0090.00615.53
7.2.220.0070.00315.13
7.2.210.0080.00415.25
7.2.200.0070.00315.35
7.2.190.0120.00315.38
7.2.180.0030.01015.02
7.2.170.0040.01115.23
7.2.160.0040.00915.44
7.2.150.0090.00017.16
7.2.140.0090.00617.27
7.2.130.0090.00017.11
7.2.120.0040.01117.09
7.2.110.0100.00717.08
7.2.100.0070.00717.30
7.2.90.0070.00717.28
7.2.80.0130.00317.18
7.2.70.0030.01116.95
7.2.60.0060.00617.07
7.2.50.0090.00217.23
7.2.40.0080.00816.91
7.2.30.0030.01417.01
7.2.20.0030.01017.13
7.2.10.0060.00917.32
7.2.00.0100.00317.20
7.1.330.0040.01116.09
7.1.320.0100.00316.16
7.1.310.0030.00915.73
7.1.300.0040.00415.93
7.1.290.0050.00316.11
7.1.280.0060.00616.00
7.1.270.0070.00315.75
7.1.260.0030.00716.21
7.1.250.0040.00515.69
7.1.240.0070.01116.04
7.1.230.0090.00916.09
7.1.220.0100.00016.02
7.1.210.0040.01115.95
7.1.200.0030.01116.15
7.1.190.0090.00615.89
7.1.180.0070.00716.02
7.1.170.0060.00915.95
7.1.160.0060.01015.85
7.1.150.0090.00915.98
7.1.140.0000.01315.89
7.1.130.0110.00415.97
7.1.120.0000.01316.05
7.1.110.0100.00715.79
7.1.100.0000.01116.05
7.1.90.0110.00415.99
7.1.80.0090.00616.21
7.1.70.0020.00616.83
7.1.60.0580.01624.80
7.1.50.0500.01524.46
7.1.40.0530.00524.29
7.1.30.0710.01024.45
7.1.20.0480.00624.50
7.1.10.0270.01115.53
7.1.00.0420.01315.68
7.0.330.0100.00315.61
7.0.320.0030.01015.56
7.0.310.0030.00915.55
7.0.300.0030.01015.47
7.0.290.0080.00415.56
7.0.280.0110.00615.45
7.0.270.0000.01215.75
7.0.260.0060.00615.73
7.0.250.0100.00315.44
7.0.240.0000.01315.84
7.0.230.0070.00715.66
7.0.220.0080.00615.67
7.0.210.0030.00815.57
7.0.200.0450.00715.43
7.0.190.0550.00715.31
7.0.180.0300.01015.23
7.0.170.0370.01215.16
7.0.160.0450.01415.05
7.0.150.0320.00415.12
7.0.140.0370.00514.98
7.0.130.0370.01215.16
7.0.120.0380.01315.24
7.0.110.0360.00815.18
7.0.100.0430.01014.98
7.0.90.0380.00715.12
7.0.80.0470.00915.12
7.0.70.1030.01315.21
7.0.60.0450.01114.94
7.0.50.0400.00715.08
7.0.40.0320.00914.21
7.0.30.0220.01214.42
7.0.20.0270.01314.32
7.0.10.0330.00714.18
7.0.00.0270.00714.29
5.6.400.0040.01114.63
5.6.390.0040.01114.57
5.6.380.0080.00314.83
5.6.370.0040.01114.60
5.6.360.0000.01014.69
5.6.350.0090.00914.21
5.6.340.0090.00914.61
5.6.330.0070.00714.72
5.6.320.0030.00914.29
5.6.310.0000.01114.63
5.6.300.0040.00714.52
5.6.290.0100.00714.72
5.6.280.0060.00914.69
5.6.270.0040.01114.60
5.6.260.0030.00914.52
5.6.250.0000.01314.40
5.6.240.0030.00914.52
5.6.230.0040.00714.66
5.6.220.0000.01414.46
5.6.210.0030.01014.39
5.6.200.0080.00414.39
5.6.190.0130.00314.71
5.6.180.0110.00014.46
5.6.170.0040.01114.24
5.6.160.0050.00514.48
5.6.150.0070.00714.51
5.6.140.0070.00714.61
5.6.130.0100.00714.59
5.6.120.0040.00714.57
5.6.110.0060.00614.84
5.6.100.0070.00714.49
5.6.90.0030.01014.53
5.6.80.0130.00014.31
5.6.70.0090.00914.42
5.6.60.0030.01014.68
5.6.50.0040.01114.32
5.6.40.0040.01114.27
5.6.30.0030.00914.42
5.6.20.0030.00614.18
5.6.10.0040.00814.56
5.6.00.0060.00614.21

preferences:
47.52 ms | 401 KiB | 5 Q