3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d 00:00:00', strtotime('first day of last month')). PHP_EOL; echo date('Y-m-d 23:59:59', strtotime('last day of last month')) . PHP_EOL; echo date('Y-m-d 00:00:00', strtotime('first day of this month')). PHP_EOL; echo date('Y-m-d 23:59:59', strtotime('last day of this month')) . PHP_EOL;

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.0000.01518.43
8.3.50.0180.00916.54
8.3.40.0100.00718.85
8.3.30.0040.01118.76
8.3.20.0030.00621.85
8.3.10.0050.00323.59
8.3.00.0080.00017.93
8.2.180.0160.00618.41
8.2.170.0040.01122.96
8.2.160.0120.00321.25
8.2.150.0020.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00020.55
8.2.120.0040.00426.35
8.2.110.0060.00322.37
8.2.100.0080.00417.91
8.2.90.0030.00718.03
8.2.80.0060.00618.05
8.2.70.0000.00818.03
8.2.60.0000.00818.28
8.2.50.0090.00018.10
8.2.40.0030.00520.64
8.2.30.0040.00419.25
8.2.20.0020.00518.01
8.2.10.0040.00418.02
8.2.00.0040.00418.07
8.1.280.0150.00625.92
8.1.270.0030.00522.20
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0090.00320.51
8.1.230.0100.00320.87
8.1.220.0040.00420.88
8.1.210.0090.00018.78
8.1.200.0030.00617.48
8.1.190.0050.00517.35
8.1.180.0050.00318.10
8.1.170.0080.00018.95
8.1.160.0000.00818.94
8.1.150.0070.00022.06
8.1.140.0050.00319.66
8.1.130.0080.00019.08
8.1.120.0050.00217.67
8.1.110.0000.00817.56
8.1.100.0040.00417.68
8.1.90.0000.00817.70
8.1.80.0050.00317.65
8.1.70.0040.00417.68
8.1.60.0050.00317.63
8.1.50.0050.00317.66
8.1.40.0080.00017.54
8.1.30.0000.00817.73
8.1.20.0040.00417.79
8.1.10.0080.00017.68
8.1.00.0040.00417.71
8.0.300.0060.00319.65
8.0.290.0030.00616.88
8.0.280.0000.00718.58
8.0.270.0000.00717.29
8.0.260.0000.00616.93
8.0.250.0000.00717.13
8.0.240.0040.00717.15
8.0.230.0080.00017.09
8.0.220.0030.00716.96
8.0.210.0040.00417.17
8.0.200.0070.00017.21
8.0.190.0030.00617.13
8.0.180.0000.00717.07
8.0.170.0070.00017.07
8.0.160.0000.00717.15
8.0.150.0000.00717.05
8.0.140.0070.00016.98
8.0.130.0070.00013.52
8.0.120.0000.00817.04
8.0.110.0050.00316.98
8.0.100.0040.00416.93
8.0.90.0030.00516.89
8.0.80.0080.00817.04
8.0.70.0030.00517.09
8.0.60.0070.00016.90
8.0.50.0000.00717.06
8.0.30.0120.00717.20
8.0.20.0090.01117.42
8.0.10.0040.00417.02
8.0.00.0100.00716.68
7.4.330.0050.00015.55
7.4.320.0060.00016.68
7.4.300.0040.00416.72
7.4.290.0000.00716.64
7.4.280.0000.00816.70
7.4.270.0000.00716.59
7.4.260.0000.00716.61
7.4.250.0080.00016.62
7.4.240.0050.00316.62
7.4.230.0040.00416.68
7.4.220.0140.00416.64
7.4.210.0070.00716.61
7.4.200.0000.00816.69
7.4.160.0120.00616.57
7.4.150.0060.01717.40
7.4.140.0130.00717.86
7.4.130.0090.00916.85
7.4.120.0130.00916.60
7.4.110.0100.00616.88
7.4.100.0180.00016.50
7.4.90.0110.00516.66
7.4.80.0100.00719.39
7.4.70.0120.00316.58
7.4.60.0090.00616.46
7.4.50.0060.00616.50
7.4.40.0150.00316.53
7.4.30.0090.00716.71
7.4.00.0000.01315.21
7.3.330.0070.00013.23
7.3.320.0000.00613.30
7.3.310.0040.00416.32
7.3.300.0030.00316.34
7.3.290.0040.01216.40
7.3.280.0090.00716.40
7.3.270.0150.00317.40
7.3.260.0110.00716.62
7.3.250.0090.00916.57
7.3.240.0060.01416.46
7.3.230.0110.00616.50
7.3.210.0150.00316.43
7.3.200.0070.01416.39
7.3.190.0100.01016.63
7.3.180.0180.00316.47
7.3.170.0090.00616.51
7.3.160.0030.01316.52
7.2.330.0150.00916.49
7.2.320.0040.01116.38
7.2.310.0090.00616.63
7.2.300.0100.00716.58
7.2.290.0060.01216.90
7.2.60.0070.00317.01
7.2.50.0060.00617.01
7.1.200.0030.00515.86
7.1.70.0070.00317.02
7.1.60.1370.01033.36
7.1.50.2030.01032.75
7.1.40.2170.01332.80
7.1.30.2500.01032.68
7.1.20.3100.00332.76
7.1.10.1430.01314.85
7.1.00.1500.01014.95
7.0.200.2900.00315.01
7.0.190.2530.01014.64
7.0.180.1830.01314.41
7.0.170.3170.01714.43
7.0.160.3370.01314.68
7.0.150.2400.00314.69
7.0.140.2730.01014.47
7.0.130.1970.01014.86
7.0.120.2570.01714.70
7.0.110.1470.01314.44
7.0.100.1630.01014.71
7.0.90.1200.01314.53
7.0.80.1200.01314.68
7.0.70.1470.01314.59
7.0.60.1570.01014.44
7.0.50.1870.00714.68
7.0.40.2000.01314.55
7.0.30.1330.01014.71
7.0.20.2270.01314.64
7.0.10.1370.01014.80
7.0.00.1130.01314.50

preferences:
59.82 ms | 401 KiB | 5 Q