3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime(date('Y-m').'-01'); echo date('Y-m-d',$time); echo '<br>'.$final = date("Y-t-d", strtotime("-1 month", $time)); echo date('m-01-Y 00:00:00',strtotime('this month')) . '<br/>'; echo date('m-t-Y 12:59:59',strtotime('this month')) . '<br/>'; echo '<br>'.$current_month_start_day = strtotime(date('Y-m').'-01'); echo '<br>'.$prev_month_start_day = date("d.m.Y", strtotime("-1 month", $current_month_start_day)); echo '<br>'.$_REQUEST['date_start'] = $prev_month_start_day; // 01.12.2013 echo '<br>'.$_EQUEST['date_end'] = date("t.m.Y", strtotime("-1 month", $current_month_start_day)); // 31.12.2013 echo '-----------------'; $current_month_start_day = strtotime(date('Y-m') . '-01'); echo '<br>'.$_REQUEST['date_start'] = date("d.m.Y", strtotime("-1 month", $current_month_start_day)); // 01.12.2013 echo '<br>'.$_REQUEST['date_end'] = date("t.m.Y", strtotime("-1 month", $current_month_start_day)); // 31.12.2013

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.0110.00418.96
8.3.30.0100.00318.93
8.3.20.0040.00420.16
8.3.10.0070.00023.53
8.3.00.0040.00422.38
8.2.170.0070.01422.96
8.2.160.0070.00720.47
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00322.21
8.2.110.0090.00021.13
8.2.100.0040.01117.84
8.2.90.0000.00918.16
8.2.80.0000.00918.00
8.2.70.0030.00617.88
8.2.60.0040.00418.17
8.2.50.0030.00518.07
8.2.40.0000.00718.47
8.2.30.0040.00418.21
8.2.20.0000.00817.97
8.2.10.0000.00718.02
8.2.00.0030.00618.03
8.1.270.0060.00323.96
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0030.00722.11
8.1.230.0080.00320.93
8.1.220.0000.00817.91
8.1.210.0030.00619.04
8.1.200.0060.00317.61
8.1.190.0040.00417.41
8.1.180.0060.00318.10
8.1.170.0000.00818.84
8.1.160.0040.00422.14
8.1.150.0000.00818.84
8.1.140.0050.00317.71
8.1.130.0040.00417.99
8.1.120.0070.00017.62
8.1.110.0000.00717.65
8.1.100.0030.00517.77
8.1.90.0040.00417.69
8.1.80.0030.00317.68
8.1.70.0000.00717.62
8.1.60.0030.00617.78
8.1.50.0040.00417.63
8.1.40.0040.00417.61
8.1.30.0030.00517.80
8.1.20.0050.00317.86
8.1.10.0000.00817.79
8.1.00.0070.00017.73
8.0.300.0000.00720.05
8.0.290.0040.00417.28
8.0.280.0000.00718.56
8.0.270.0000.00717.42
8.0.260.0030.00317.11
8.0.250.0030.00317.14
8.0.240.0040.00417.21
8.0.230.0060.00317.21
8.0.220.0030.00317.22
8.0.210.0080.00017.18
8.0.200.0040.00417.22
8.0.190.0000.01017.13
8.0.180.0040.00417.17
8.0.170.0030.00517.14
8.0.160.0000.00717.18
8.0.150.0080.00017.20
8.0.140.0040.00417.02
8.0.130.0000.00513.50
8.0.120.0050.00217.14
8.0.110.0040.00417.18
8.0.100.0040.00417.04
8.0.90.0040.00417.18
8.0.80.0090.01217.18
8.0.70.0080.00016.97
8.0.60.0050.00216.97
8.0.50.0030.00516.98
8.0.30.0100.01117.09
8.0.20.0090.00917.46
8.0.10.0030.00617.16
8.0.00.0140.00816.96
7.4.330.0000.00515.16
7.4.320.0000.00616.86
7.4.300.0060.00016.79
7.4.290.0000.00716.69
7.4.280.0040.00416.82
7.4.270.0030.00316.80
7.4.260.0000.00816.81
7.4.250.0000.00816.75
7.4.240.0000.00716.72
7.4.230.0000.00716.63
7.4.220.0060.01316.74
7.4.210.0110.00516.75
7.4.200.0000.00816.65
7.4.190.0000.00716.67
7.4.160.0080.00816.78
7.4.150.0140.00317.40
7.4.140.0070.01117.86
7.4.130.0110.00616.76
7.4.120.0110.01016.80
7.4.110.0100.00716.89
7.4.100.0100.01316.66
7.4.90.0110.00616.79
7.4.80.0060.01219.39
7.4.70.0070.01116.69
7.4.60.0100.00616.79
7.4.50.0040.00416.66
7.4.40.0040.01522.77
7.4.30.0070.01016.77
7.4.00.0070.01115.27
7.3.330.0050.00013.34
7.3.320.0050.00013.31
7.3.310.0000.00716.56
7.3.300.0000.00816.52
7.3.290.0070.00916.49
7.3.280.0060.01016.50
7.3.270.0090.00917.40
7.3.260.0180.00016.46
7.3.250.0080.00916.61
7.3.240.0070.01316.69
7.3.230.0060.01116.55
7.3.210.0130.00316.70
7.3.200.0120.00619.39
7.3.190.0110.00616.85
7.3.180.0120.00916.48
7.3.170.0030.01216.71
7.3.160.0070.01316.68
7.3.120.0070.01015.32
7.2.330.0150.00317.04
7.2.320.0130.00316.69
7.2.310.0080.01116.89
7.2.300.0070.01016.59
7.2.290.0110.00616.96
7.2.00.0090.00319.67
7.1.100.0040.01118.12
7.1.70.0040.00417.37
7.1.60.0090.01519.29
7.1.50.0070.01817.13
7.1.00.0070.07322.57
7.0.200.0050.00516.87
7.0.140.0000.07722.09
7.0.100.0500.07719.93
7.0.90.0370.09320.02
7.0.80.0270.05019.82
7.0.70.0430.08319.91
7.0.60.0530.04320.09
7.0.50.0430.07720.27
7.0.40.0130.08320.07
7.0.30.0030.09720.14
7.0.20.0070.08020.12
7.0.10.0000.08320.17
7.0.00.0070.09020.07
5.6.280.0030.07321.08
5.6.250.0130.08320.68
5.6.240.0130.04020.70
5.6.230.0070.07720.51
5.6.220.0070.08020.67
5.6.210.0070.08020.76
5.6.200.0130.07721.12
5.6.190.0100.08021.17
5.6.180.0100.05320.96
5.6.170.0100.07721.14
5.6.160.0070.07020.96
5.6.150.0100.06321.00
5.6.140.0130.08021.06
5.6.130.0030.04720.95
5.6.120.0000.09320.96
5.6.110.0130.07721.03
5.6.100.0200.06021.06
5.6.90.0130.07020.98
5.6.80.0130.04720.43
5.6.70.0070.05020.46
5.6.60.0130.06720.47
5.6.50.0030.08320.43
5.6.40.0200.06720.43
5.6.30.0100.05720.47
5.6.20.0070.08320.52
5.6.10.0100.05020.40
5.6.00.0070.04720.25
5.5.380.0100.07720.43
5.5.370.0030.04320.36
5.5.360.0100.07720.48
5.5.350.0070.05320.34
5.5.340.0070.07720.80
5.5.330.0070.08320.83
5.5.320.0100.07320.78
5.5.310.0130.07020.89
5.5.300.0030.04320.83
5.5.290.0030.07320.93
5.5.280.0070.05020.79
5.5.270.0100.07020.91
5.5.260.0070.06320.93
5.5.250.0170.03720.68
5.5.240.0030.08320.17
5.5.230.0030.05020.19
5.5.220.0030.05020.30
5.5.210.0170.07020.27
5.5.200.0100.08020.27
5.5.190.0070.08020.18
5.5.180.0070.04720.24
5.5.160.0000.04320.24
5.5.150.0100.05320.27
5.5.140.0070.04320.26
5.5.130.0000.08020.14
5.5.120.0130.07020.07
5.5.110.0100.07720.11
5.5.100.0100.05020.16
5.5.90.0070.04320.16
5.5.80.0000.04720.13
5.5.70.0130.03719.92
5.5.60.0070.07320.15
5.5.50.0100.07720.04
5.5.40.0170.05720.09
5.5.30.0070.08020.03
5.5.20.0030.06320.15
5.5.10.0070.07020.08
5.5.00.0200.06320.16
5.4.450.0270.06719.38
5.4.440.0170.07319.45
5.4.430.0000.05719.36
5.4.420.0070.08019.23
5.4.410.0100.04019.14
5.4.400.0030.04718.82
5.4.390.0130.06718.81
5.4.380.0070.06718.95
5.4.370.0100.07319.22
5.4.360.0100.05019.14
5.4.350.0070.07719.23
5.4.340.0070.06318.90
5.4.320.0100.07319.22
5.4.310.0070.05718.95
5.4.300.0030.08319.11
5.4.290.0170.06719.22
5.4.280.0000.05019.09
5.4.270.0030.08018.80
5.4.260.0130.07319.09
5.4.250.0000.05019.11
5.4.240.0200.06719.04
5.4.230.0000.04719.14
5.4.220.0170.06318.82
5.4.210.0100.06018.89
5.4.200.0170.06718.97
5.4.190.0070.04319.11
5.4.180.0100.07318.77
5.4.170.0070.04318.80
5.4.160.0030.08019.04
5.4.150.0030.04718.92
5.4.140.0100.05316.36
5.4.130.0070.05016.25
5.4.120.0030.07716.36
5.4.110.0070.07716.27
5.4.100.0030.04316.27
5.4.90.0070.04016.45
5.4.80.0000.05316.29
5.4.70.0130.06716.40
5.4.60.0030.07716.29
5.4.50.0070.05716.17
5.4.40.0030.04716.35
5.4.30.0130.07016.19
5.4.20.0100.06716.40
5.4.10.0030.07016.31
5.4.00.0070.04015.48
5.3.290.0070.04714.54
5.3.280.0030.06714.59
5.3.270.0030.06014.58
5.3.260.0070.07714.47
5.3.250.0100.07014.58
5.3.240.0000.08714.47
5.3.230.0130.07314.48
5.3.220.0000.07714.57
5.3.210.0030.05314.41
5.3.200.0100.07314.56
5.3.190.0100.04314.52
5.3.180.0070.07314.45
5.3.170.0000.07314.44
5.3.160.0170.03014.55
5.3.150.0030.07714.41
5.3.140.0030.04314.58
5.3.130.0100.07314.55
5.3.120.0070.07314.54
5.3.110.0100.05314.52
5.3.100.0070.07314.04
5.3.90.0000.08013.98
5.3.80.0070.06714.02
5.3.70.0030.07314.02
5.3.60.0130.07013.98
5.3.50.0070.06313.95
5.3.40.0070.07013.82
5.3.30.0070.04013.91
5.3.20.0030.06713.65
5.3.10.0100.07013.64
5.3.00.0100.06713.57
5.2.170.0100.05710.95
5.2.160.0070.05711.15
5.2.150.0030.04011.23
5.2.140.0070.06011.00
5.2.130.0030.06310.97
5.2.120.0000.05011.07
5.2.110.0100.05310.98
5.2.100.0130.05011.07
5.2.90.0030.03710.91
5.2.80.0070.05711.10
5.2.70.0030.05310.97
5.2.60.0070.04310.88
5.2.50.0070.06011.03
5.2.40.0100.04710.83
5.2.30.0000.06710.98
5.2.20.0030.06710.82
5.2.10.0030.05310.78
5.2.00.0070.05710.86
5.1.60.0000.05310.06
5.1.50.0030.05710.00
5.1.40.0070.05310.10
5.1.30.0000.05310.36
5.1.20.0100.04710.39
5.1.10.0000.0539.92
5.1.00.0030.05310.11
5.0.50.0030.0438.64
5.0.40.0000.0408.30
5.0.30.0030.0408.23
5.0.20.0070.0378.21
5.0.10.0070.0408.21
5.0.00.0030.0438.25
4.4.90.0070.0138.21
4.4.80.0030.0338.21
4.4.70.0030.0378.21
4.4.60.0030.0378.21
4.4.50.0000.0378.21
4.4.40.0000.0538.21
4.4.30.0070.0338.21
4.4.20.0030.0338.21
4.4.10.0070.0338.21
4.4.00.0000.0408.21
4.3.110.0070.0238.21
4.3.100.0030.0338.21
4.3.90.0000.0278.21
4.3.80.0030.0308.21
4.3.70.0070.0238.21
4.3.60.0000.0338.21
4.3.50.0000.0378.21
4.3.40.0030.0438.21
4.3.30.0000.0238.21
4.3.20.0000.0208.21
4.3.10.0070.0208.21
4.3.00.0030.0278.21

preferences:
41.95 ms | 400 KiB | 5 Q