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); echo $diff; $Tickets = array($sdate); var_dump($Tickets); 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.60.0160.00018.43
8.3.50.0120.00916.62
8.3.40.0160.00018.89
8.3.30.0060.01018.92
8.3.20.0040.00421.87
8.3.10.0040.00423.66
8.3.00.0040.00419.56
8.2.180.0090.00916.75
8.2.170.0180.00422.96
8.2.160.0130.00720.34
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00020.56
8.2.120.0080.00026.35
8.2.110.0090.00020.65
8.2.100.0090.00318.09
8.2.90.0040.00419.47
8.2.80.0000.00818.16
8.2.70.0040.00417.73
8.2.60.0000.00818.16
8.2.50.0000.00918.10
8.2.40.0000.00720.59
8.2.30.0000.00819.36
8.2.20.0000.00918.17
8.2.10.0030.00518.24
8.2.00.0020.00518.24
8.1.280.0100.00725.92
8.1.270.0040.00420.86
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.16
8.1.230.0110.00718.93
8.1.220.0000.00817.89
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0030.00517.47
8.1.180.0040.00418.10
8.1.170.0050.00318.78
8.1.160.0000.00719.05
8.1.150.0040.00418.99
8.1.140.0080.00019.57
8.1.130.0030.00318.88
8.1.120.0030.00517.62
8.1.110.0030.00517.73
8.1.100.0040.00417.76
8.1.90.0000.00817.73
8.1.80.0000.00817.66
8.1.70.0030.00617.72
8.1.60.0060.00317.77
8.1.50.0000.00817.56
8.1.40.0000.01017.63
8.1.30.0000.00817.84
8.1.20.0000.00817.77
8.1.10.0030.00617.65
8.1.00.0040.00417.65
8.0.300.0090.00020.13
8.0.290.0070.00017.13
8.0.280.0030.00318.58
8.0.270.0040.00417.39
8.0.260.0030.00318.92
8.0.250.0030.00317.17
8.0.240.0000.01117.28
8.0.230.0070.00017.18
8.0.220.0050.00317.09
8.0.210.0070.00017.19
8.0.200.0000.00617.26
8.0.190.0090.00017.29
8.0.180.0040.00417.13
8.0.170.0070.00017.13
8.0.160.0000.00717.29
8.0.150.0000.00817.16
8.0.140.0050.00217.21
8.0.130.0070.00013.48
8.0.120.0000.00717.18
8.0.110.0040.00417.09
8.0.100.0030.00517.04
8.0.90.0050.00217.09
8.0.80.0070.01017.17
8.0.70.0000.00717.20
8.0.60.0080.00017.26
8.0.50.0000.00717.24
8.0.30.0120.00717.34
8.0.20.0110.00917.45
8.0.10.0000.00817.40
8.0.00.0080.01116.75
7.4.330.0060.00015.55
7.4.320.0000.00716.68
7.4.300.0030.00316.79
7.4.290.0070.00016.79
7.4.280.0060.00316.70
7.4.270.0000.00816.63
7.4.260.0000.00716.71
7.4.250.0030.00616.77
7.4.240.0040.00316.72
7.4.230.0050.00316.59
7.4.220.0030.01316.66
7.4.210.0060.00916.75
7.4.200.0070.00016.73
7.4.160.0110.00716.71
7.4.150.0190.00617.40
7.4.140.0100.00917.86
7.4.130.0090.00916.68
7.4.120.0120.01016.64
7.4.110.0060.01316.89
7.4.100.0130.01316.73
7.4.90.0070.01016.64
7.4.80.0150.00819.39
7.4.70.0150.00316.88
7.4.60.0040.01516.60
7.4.50.0070.01016.54
7.4.40.0140.00316.90
7.4.30.0060.01016.73
7.4.10.0060.01215.20
7.4.00.0070.01015.08
7.3.330.0030.00313.29
7.3.320.0030.00313.34
7.3.310.0000.00716.33
7.3.300.0030.00316.37
7.3.290.0090.00716.46
7.3.280.0080.00916.46
7.3.270.0130.01017.40
7.3.260.0080.01216.53
7.3.250.0120.00816.64
7.3.240.0080.01116.70
7.3.230.0130.00416.81
7.3.210.0130.00316.63
7.3.200.0080.00816.88
7.3.190.0060.01216.66
7.3.180.0060.00916.80
7.3.170.0030.01416.74
7.3.160.0130.00316.98
7.3.130.0080.01115.02
7.3.120.0060.00915.01
7.3.110.0080.01014.90
7.3.100.0090.00815.11
7.3.90.0030.01214.99
7.3.80.0060.01015.24
7.3.70.0070.00715.05
7.3.60.0070.01014.97
7.3.50.0060.00915.00
7.3.40.0060.00815.13
7.3.30.0030.01114.89
7.3.20.0070.00816.86
7.3.10.0050.00716.85
7.3.00.0090.00716.65
7.2.330.0090.00816.57
7.2.320.0120.01116.78
7.2.310.0130.00316.80
7.2.300.0070.01016.95
7.2.290.0060.00916.75
7.2.260.0000.01515.06
7.2.250.0090.01015.38
7.2.240.0030.01315.18
7.2.230.0030.01015.22
7.2.220.0050.01215.31
7.2.210.0060.00915.16
7.2.200.0070.00715.33
7.2.190.0070.00715.30
7.2.180.0060.00915.37
7.2.170.0040.01015.25
7.2.160.0060.00715.06
7.2.150.0040.01017.13
7.2.140.0070.01017.06
7.2.130.0050.00716.96
7.2.120.0100.00317.10
7.2.110.0040.01117.28
7.2.100.0030.00917.00
7.2.90.0030.01317.25
7.2.80.0050.01217.22
7.2.70.0030.00917.16
7.2.60.0080.00517.20
7.2.50.0020.01217.14
7.2.40.0060.00817.21
7.2.30.0080.00817.26
7.2.20.0020.01017.24
7.2.10.0060.00817.24
7.2.00.0030.01416.97
7.1.330.0070.00915.96
7.1.320.0020.01316.07
7.1.310.0060.00616.02
7.1.300.0080.00715.83
7.1.290.0060.00816.21
7.1.280.0090.00515.88
7.1.270.0030.00815.96
7.1.260.0070.00716.00
7.1.250.0080.00416.01
7.1.240.0090.00416.01
7.1.230.0080.00515.98
7.1.220.0040.00716.02
7.1.210.0020.01115.96
7.1.200.0060.00615.91
7.1.190.0070.00415.87
7.1.180.0080.00516.11
7.1.170.0040.01116.16
7.1.160.0060.00616.14
7.1.150.0100.00316.08
7.1.140.0050.00716.08
7.1.130.0030.01115.90
7.1.120.0080.00716.03
7.1.110.0050.00615.91
7.1.100.0070.00916.14
7.1.90.0050.00916.04
7.1.80.0050.00615.87
7.1.70.0060.00516.58
7.1.60.0150.00921.89
7.1.50.0160.01021.67
7.1.40.0350.01121.60
7.1.30.0160.01421.72
7.1.20.0180.00721.79
7.1.10.0280.01515.78
7.1.00.0300.00615.57
7.0.330.0030.00715.73
7.0.320.0100.00315.46
7.0.310.0050.00515.52
7.0.300.0050.00515.52
7.0.290.0090.00515.43
7.0.280.0040.00915.51
7.0.270.0060.00315.63
7.0.260.0050.00915.59
7.0.250.0070.00515.50
7.0.240.0030.01015.49
7.0.230.0040.00415.62
7.0.220.0020.01015.65
7.0.210.0040.00615.57
7.0.200.0050.00915.45
7.0.190.0200.00615.43
7.0.180.0350.00615.33
7.0.170.0100.00615.36
7.0.160.0270.00615.33
7.0.150.0120.00515.18
7.0.140.0060.01315.31
7.0.130.0410.01315.50
7.0.120.0170.01215.32
7.0.110.0050.00915.29
7.0.100.0250.01115.30
7.0.90.0140.01015.25
7.0.80.0060.00915.34
7.0.70.0530.00815.24
7.0.60.0410.00815.26
7.0.50.0060.00915.28
7.0.40.0240.00914.03
7.0.30.0370.01014.18
7.0.20.0060.00914.01
7.0.10.0410.00714.02
7.0.00.0360.00713.98
5.6.400.0050.00714.48
5.6.390.0070.00714.58
5.6.380.0090.00614.44
5.6.370.0120.00214.40
5.6.360.0030.00814.38
5.6.350.0090.00714.48
5.6.340.0060.00714.51
5.6.330.0070.00914.64
5.6.320.0030.01014.51
5.6.310.0060.00514.43
5.6.300.0040.01214.71
5.6.290.0040.00914.55
5.6.280.0030.00914.42
5.6.270.0030.01114.43
5.6.260.0040.00914.47
5.6.250.0010.00714.45
5.6.240.0080.00614.42
5.6.230.0050.00714.43
5.6.220.0090.00714.63
5.6.210.0030.01114.57
5.6.200.0100.00314.57
5.6.190.0100.00314.54
5.6.180.0030.00814.34
5.6.170.0120.00314.35
5.6.160.0060.00614.55
5.6.150.0030.01014.45
5.6.140.0010.01014.43
5.6.130.0050.00914.45
5.6.120.0060.00714.56
5.6.110.0090.00514.43
5.6.100.0060.00614.40
5.6.90.0040.00614.38
5.6.80.0060.00814.29
5.6.70.0050.00814.18
5.6.60.0040.00814.38
5.6.50.0070.00614.39
5.6.40.0090.00514.53
5.6.30.0080.00714.45
5.6.20.0050.00914.50
5.6.10.0090.00514.35
5.6.00.0030.00714.39

preferences:
35.82 ms | 400 KiB | 5 Q