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", date("d.m.Y", strtotime("-1 month", $current_month_start_day))); // 01.12.2013 echo '<br>'.$_REQUEST['date_end'] = date("t.m.Y", 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.60.0180.00018.81
8.3.50.0090.00918.45
8.3.40.0120.00318.95
8.3.30.0120.00319.00
8.3.20.0070.00719.02
8.3.10.0080.00018.95
8.3.00.0040.00419.51
8.2.180.0080.00818.79
8.2.170.0140.00322.96
8.2.160.0090.00619.00
8.2.150.0000.00824.18
8.2.140.0130.00624.66
8.2.130.0000.00726.16
8.2.120.0020.00520.20
8.2.110.0070.00419.37
8.2.100.0110.00017.97
8.2.90.0000.00918.47
8.2.80.0040.00418.18
8.2.70.0050.00318.05
8.2.60.0080.00018.34
8.2.50.0050.00318.10
8.2.40.0060.00318.28
8.2.30.0070.00018.29
8.2.20.0050.00517.95
8.2.10.0040.00418.04
8.2.00.0050.00518.15
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0090.00022.78
8.1.230.0110.00020.87
8.1.220.0000.00817.91
8.1.210.0030.00518.98
8.1.200.0050.00517.48
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0050.00318.74
8.1.160.0030.00618.96
8.1.150.0040.00418.83
8.1.140.0040.00417.72
8.1.130.0000.00717.70
8.1.120.0040.00417.78
8.1.110.0040.00417.63
8.1.100.0000.00817.73
8.1.90.0000.00717.77
8.1.80.0040.00317.60
8.1.70.0000.00717.71
8.1.60.0090.00017.85
8.1.50.0020.00517.73
8.1.40.0000.00817.57
8.1.30.0060.00317.81
8.1.20.0050.00317.83
8.1.10.0000.00717.82
8.1.00.0000.00917.80
8.0.300.0070.00020.17
8.0.290.0040.00417.13
8.0.280.0030.00318.49
8.0.270.0030.00317.51
8.0.260.0080.00017.04
8.0.250.0000.00717.29
8.0.240.0040.00417.18
8.0.230.0000.00717.19
8.0.220.0030.00317.19
8.0.210.0000.00717.14
8.0.200.0000.00717.28
8.0.190.0040.00417.18
8.0.180.0080.00317.18
8.0.170.0000.01017.09
8.0.160.0000.00717.14
8.0.150.0060.00317.07
8.0.140.0030.00617.18
8.0.130.0050.00013.55
8.0.120.0030.00517.15
8.0.110.0000.00717.11
8.0.100.0030.00517.17
8.0.90.0000.00717.26
8.0.80.0040.01217.21
8.0.70.0030.00517.15
8.0.60.0030.00617.30
8.0.50.0080.00017.33
8.0.30.0140.00717.20
8.0.20.0130.00717.43
8.0.10.0040.00417.37
8.0.00.0120.00617.07
7.4.330.0000.00513.15
7.4.320.0030.00316.73
7.4.300.0000.00716.74
7.4.290.0000.00716.82
7.4.280.0040.00416.80
7.4.270.0030.00316.79
7.4.260.0030.00313.37
7.4.250.0040.00416.70
7.4.240.0030.00316.72
7.4.230.0060.00316.47
7.4.220.0140.01116.86
7.4.210.0070.00716.80
7.4.200.0000.00716.70
7.4.190.0050.00216.95
7.4.160.0100.00716.87
7.4.150.0090.00916.86
7.4.140.0120.00616.74
7.4.130.0120.01317.10
7.4.120.0110.00616.93
7.4.110.0140.01016.67
7.4.100.0130.01016.86
7.4.90.0160.00616.85
7.4.80.0120.00619.39
7.4.70.0130.00416.70
7.4.60.0030.01616.79
7.4.50.0060.00016.84
7.4.40.0030.01216.77
7.4.30.0040.01216.83
7.4.00.0000.01515.08
7.3.330.0000.00813.42
7.3.320.0050.00313.41
7.3.310.0000.00716.57
7.3.300.0000.00716.53
7.3.290.0050.01016.59
7.3.280.0110.01016.55
7.3.270.0140.00316.61
7.3.260.0180.00716.74
7.3.250.0160.00616.68
7.3.240.0130.00416.59
7.3.230.0060.01616.72
7.3.210.0100.01616.80
7.3.200.0110.01116.70
7.3.190.0070.01416.74
7.3.180.0070.01016.75
7.3.170.0070.01016.86
7.3.160.0040.01616.79
7.3.120.0060.00915.44
7.2.330.0030.01516.72
7.2.320.0110.00717.05
7.2.310.0130.01016.69
7.2.300.0100.01016.73
7.2.290.0060.01316.96
7.2.60.0060.00617.02
7.1.200.0070.00716.05
7.1.70.0000.00717.59
7.1.60.0140.01019.30
7.1.50.0070.01416.66
7.1.00.0030.07322.45
7.0.200.0040.00417.03
7.0.140.0030.07322.00
7.0.120.0100.06722.00
7.0.100.0100.03319.89
7.0.90.0330.05319.94
7.0.80.0000.04719.97
7.0.70.0270.03720.14
7.0.60.0230.05320.08
7.0.50.0000.08320.39
7.0.40.0070.06020.18
7.0.30.0100.07720.13
7.0.20.0170.05720.00
7.0.10.0130.07720.14
7.0.00.0270.07020.18
5.6.280.0130.06320.99
5.6.250.0070.04720.54
5.6.240.0030.05020.69
5.6.230.0100.07020.57
5.6.220.0170.07720.62
5.6.210.0070.04320.61
5.6.200.0000.07320.96
5.6.190.0030.05721.02
5.6.180.0100.07021.11
5.6.170.0070.05021.00
5.6.160.0070.07721.00
5.6.150.0030.06721.01
5.6.140.0030.05020.96
5.6.130.0070.06321.05
5.6.120.0100.07321.00
5.6.110.0130.08020.95
5.6.100.0030.05321.12
5.6.90.0170.04321.02
5.6.80.0070.07720.55
5.6.70.0100.07720.34
5.6.60.0130.07320.54
5.6.50.0030.05320.40
5.6.40.0070.05720.39
5.6.30.0070.07320.32
5.6.20.0070.04320.37
5.6.10.0070.05020.49
5.6.00.0070.07320.37
5.5.380.0070.04020.39
5.5.370.0170.07720.40
5.5.360.0070.04020.36
5.5.350.0100.07320.37
5.5.340.0030.05020.93
5.5.330.0070.08320.90
5.5.320.0130.08720.89
5.5.310.0070.08020.81
5.5.300.0100.07720.87
5.5.290.0030.05720.92
5.5.280.0070.08720.71
5.5.270.0100.06720.88
5.5.260.0030.08320.92
5.5.250.0130.09320.45
5.5.240.0030.05020.26
5.5.230.0030.06320.25
5.5.220.0070.08020.19
5.5.210.0100.07320.01
5.5.200.0070.07320.00
5.5.190.0030.06020.16
5.5.180.0070.06020.25
5.5.160.0100.05720.27
5.5.150.0030.05020.11
5.5.140.0070.05020.23
5.5.130.0000.08720.19
5.5.120.0070.08020.23
5.5.110.0000.08020.27
5.5.100.0000.08020.02
5.5.90.0170.07020.07
5.5.80.0070.03320.10
5.5.70.0070.08020.14
5.5.60.0030.07719.96
5.5.50.0000.08019.94
5.5.40.0070.03720.12
5.5.30.0130.07319.93
5.5.20.0100.07720.03
5.5.10.0130.06020.12
5.5.00.0130.05020.00
5.4.450.0130.07719.36
5.4.440.0130.04019.13
5.4.430.0000.07719.26
5.4.420.0030.07319.28
5.4.410.0070.07719.18
5.4.400.0070.07318.89
5.4.390.0030.04019.09
5.4.380.0070.07719.08
5.4.370.0100.07319.12
5.4.360.0130.06719.05
5.4.350.0170.07319.06
5.4.340.0070.08019.17
5.4.320.0100.08019.22
5.4.310.0070.04319.11
5.4.300.0070.08019.04
5.4.290.0100.07318.94
5.4.280.0070.07719.24
5.4.270.0070.04318.96
5.4.260.0070.07718.83
5.4.250.0000.05719.04
5.4.240.0000.07019.21
5.4.230.0000.04719.06
5.4.220.0030.07318.95
5.4.210.0000.05719.22
5.4.200.0070.07318.84
5.4.190.0000.08319.02
5.4.180.0170.07018.77
5.4.170.0130.05019.18
5.4.160.0130.06319.20
5.4.150.0100.07319.02
5.4.140.0000.07316.38
5.4.130.0100.06316.36
5.4.120.0030.07016.28
5.4.110.0100.07316.31
5.4.100.0000.05316.26
5.4.90.0030.04016.26
5.4.80.0070.07016.28
5.4.70.0000.04716.50
5.4.60.0100.03716.18
5.4.50.0100.05316.28
5.4.40.0070.06716.47
5.4.30.0030.05016.23
5.4.20.0030.06716.35
5.4.10.0100.03016.20
5.4.00.0070.05715.75
5.3.290.0130.06714.68
5.3.280.0100.08714.44
5.3.270.0030.06314.48
5.3.260.0070.04014.61
5.3.250.0130.06714.61
5.3.240.0130.08714.61
5.3.230.0030.09314.52
5.3.220.0100.06714.44
5.3.210.0170.06314.58
5.3.200.0030.07314.57
5.3.190.0130.07014.58
5.3.180.0030.07714.49
5.3.170.0030.07014.41
5.3.160.0070.03714.52
5.3.150.0070.06014.56
5.3.140.0100.04014.58
5.3.130.0070.04314.50
5.3.120.0070.07714.42
5.3.110.0030.03714.42
5.3.100.0100.03314.00
5.3.90.0030.03713.98
5.3.80.0100.03314.04
5.3.70.0070.03314.01
5.3.60.0070.06313.77
5.3.50.0070.03013.96
5.3.40.0130.06713.82
5.3.30.0100.07013.91
5.3.20.0070.04013.47
5.3.10.0070.03713.68
5.3.00.0100.08013.43
5.2.170.0070.06011.32
5.2.160.0070.06311.32
5.2.150.0000.05711.32
5.2.140.0000.04711.32
5.2.130.0070.05011.32
5.2.120.0030.03711.32
5.2.110.0030.03311.32
5.2.100.0030.05311.32
5.2.90.0030.06011.32
5.2.80.0070.05311.32
5.2.70.0030.05011.32
5.2.60.0070.05711.32
5.2.50.0000.04011.32
5.2.40.0130.05311.32
5.2.30.0030.06311.32
5.2.20.0070.04011.32
5.2.10.0030.04711.32
5.2.00.0070.05711.32
5.1.60.0100.03711.32
5.1.50.0070.05311.32
5.1.40.0070.04011.32
5.1.30.0000.03011.32
5.1.20.0030.03311.32
5.1.10.0030.02311.32
5.1.00.0070.03011.32
5.0.50.0030.02011.32
5.0.40.0000.03711.32
5.0.30.0000.03711.32
5.0.20.0030.04011.32
5.0.10.0070.04011.32
5.0.00.0030.03311.32
4.4.90.0030.03311.32
4.4.80.0000.02711.32
4.4.70.0000.02711.32
4.4.60.0000.03011.32
4.4.50.0100.03011.32
4.4.40.0030.05711.32
4.4.30.0070.02311.32
4.4.20.0000.01711.32
4.4.10.0100.02011.32
4.4.00.0070.05311.32
4.3.110.0000.02011.32
4.3.100.0030.01711.32
4.3.90.0030.01711.32
4.3.80.0000.02711.32
4.3.70.0000.01711.32
4.3.60.0030.01311.32
4.3.50.0100.01711.32
4.3.40.0030.05311.32
4.3.30.0000.02311.32
4.3.20.0000.02011.32
4.3.10.0000.01711.32
4.3.00.0000.02711.32

preferences:
45.03 ms | 401 KiB | 5 Q