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;

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.0170.00718.55
8.3.50.0130.00616.41
8.3.40.0140.00319.09
8.3.30.0000.01418.93
8.3.20.0000.00821.95
8.3.10.0070.00023.65
8.3.00.0040.00418.09
8.2.180.0110.00718.16
8.2.170.0140.00722.96
8.2.160.0110.00421.23
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00421.15
8.2.110.0030.00719.45
8.2.100.0060.00618.03
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00318.03
8.2.50.0050.00318.10
8.2.40.0040.00420.57
8.2.30.0000.00719.41
8.2.20.0000.00818.10
8.2.10.0050.00317.95
8.2.00.0020.00518.09
8.1.280.0040.01125.92
8.1.270.0040.00422.21
8.1.260.0080.00026.35
8.1.250.0090.00328.09
8.1.240.0030.00523.97
8.1.230.0070.00317.70
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0080.00017.48
8.1.180.0050.00218.10
8.1.170.0050.00318.87
8.1.160.0040.00419.00
8.1.150.0000.00722.03
8.1.140.0000.00719.63
8.1.130.0050.00318.99
8.1.120.0070.00017.67
8.1.110.0040.00417.62
8.1.100.0000.00817.61
8.1.90.0000.00717.61
8.1.80.0030.00517.64
8.1.70.0040.00417.61
8.1.60.0030.00617.64
8.1.50.0050.00317.64
8.1.40.0070.00017.67
8.1.30.0050.00317.66
8.1.20.0030.00617.74
8.1.10.0050.00217.54
8.1.00.0030.00517.59
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0030.00318.45
8.0.270.0070.00017.31
8.0.260.0080.00017.04
8.0.250.0070.00017.02
8.0.240.0060.00317.15
8.0.230.0070.00017.03
8.0.220.0030.00616.98
8.0.210.0000.00717.09
8.0.200.0000.00817.05
8.0.190.0000.00917.16
8.0.180.0040.00417.09
8.0.170.0070.00017.09
8.0.160.0000.00817.12
8.0.150.0020.00517.02
8.0.140.0030.00317.02
8.0.130.0000.00813.45
8.0.120.0030.00616.91
8.0.110.0040.00417.08
8.0.100.0050.00217.06
8.0.90.0040.00417.12
8.0.80.0150.00017.06
8.0.70.0080.00017.04
8.0.60.0000.00716.91
8.0.50.0000.00716.97
8.0.30.0080.00917.06
8.0.20.0120.00917.40
8.0.10.0040.00417.06
8.0.00.0070.01016.83
7.4.330.0000.00515.55
7.4.320.0070.00016.52
7.4.300.0030.00316.64
7.4.290.0000.00716.57
7.4.280.0030.00516.63
7.4.270.0030.00316.67
7.4.260.0030.00316.64
7.4.250.0040.00416.51
7.4.240.0000.00816.56
7.4.230.0000.00816.45
7.4.220.0000.01716.73
7.4.210.0090.00616.60
7.4.200.0070.00016.54
7.4.160.0090.00916.61
7.4.150.0100.00717.40
7.4.140.0150.00517.86
7.4.130.0130.00916.59
7.4.120.0090.01016.60
7.4.110.0070.01016.49
7.4.100.0160.00316.55
7.4.90.0100.00616.47
7.4.80.0090.01219.39
7.4.70.0130.00316.70
7.4.60.0060.00916.59
7.4.50.0070.00716.78
7.4.40.0120.00616.28
7.4.30.0120.00416.47
7.4.00.0070.00714.76
7.3.330.0030.00313.20
7.3.320.0060.00013.26
7.3.310.0040.00416.21
7.3.300.0000.00616.40
7.3.290.0070.00916.40
7.3.280.0080.00816.41
7.3.270.0100.00917.40
7.3.260.0100.01416.63
7.3.250.0070.01016.46
7.3.240.0120.01116.57
7.3.230.0070.01016.69
7.3.210.0110.00616.45
7.3.200.0060.01216.74
7.3.190.0080.00816.81
7.3.180.0100.00716.50
7.3.170.0120.00616.68
7.3.160.0130.00316.66
7.3.10.0080.00716.61
7.3.00.0100.00716.57
7.2.330.0030.01316.57
7.2.320.0100.00716.88
7.2.310.0000.01516.71
7.2.300.0030.01416.70
7.2.290.0060.01216.90
7.2.130.0140.00716.54
7.2.120.0080.00616.78
7.2.110.0060.00916.69
7.2.100.0140.00316.75
7.2.90.0190.00516.83
7.2.80.0170.00516.56
7.2.70.0090.00916.99
7.2.60.0070.01316.98
7.2.50.0060.01016.98
7.2.40.0170.00716.63
7.2.30.0150.01116.55
7.2.20.0040.01416.91
7.2.10.0120.00916.58
7.2.00.0130.00317.08
7.1.250.0040.00815.60
7.1.200.0060.00915.92
7.1.70.0050.00217.33
7.1.60.1170.00733.10
7.1.50.1600.02032.79
7.1.40.1200.01032.61
7.1.30.1730.01332.78
7.1.20.1730.01732.72
7.1.10.0730.01314.78
7.1.00.0900.01314.77
7.0.200.1670.00714.82
7.0.190.1700.01314.62
7.0.180.1430.01314.52
7.0.170.1470.00014.50
7.0.160.1630.01014.55
7.0.150.0800.01314.52
7.0.140.1000.01714.56
7.0.130.1800.01314.68
7.0.120.1570.01014.65
7.0.110.1000.01014.43
7.0.100.0830.01014.52
7.0.90.0870.01014.59
7.0.80.0930.01014.76
7.0.70.0930.01014.57
7.0.60.1670.00714.52
7.0.50.1670.01714.60
7.0.40.1000.01314.71
7.0.30.1070.01014.67
7.0.20.1070.00314.57
7.0.10.1370.00314.74
7.0.00.1300.01314.68

preferences:
47.83 ms | 401 KiB | 5 Q