3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month_start = new DateTime("first day of this month"); echo $month_start->format('Y-m-d H:i:s.u') . "\n"; $month_start = new DateTime("first day of March"); echo $month_start->format('Y-m-d H:i:s.u') . "\n";

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.0040.01416.75
8.3.50.0070.01018.01
8.3.40.0150.00620.42
8.3.30.0070.01118.88
8.3.20.0000.01021.79
8.3.10.0040.00420.29
8.3.00.0030.00520.62
8.2.180.0140.00718.41
8.2.170.0090.00622.96
8.2.160.0120.00321.14
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00920.97
8.2.110.0060.00320.70
8.2.100.0030.00917.97
8.2.90.0050.00317.75
8.2.80.0000.01018.73
8.2.70.0040.00417.87
8.2.60.0060.00318.05
8.2.50.0040.00418.05
8.2.40.0020.00518.47
8.2.30.0040.00418.18
8.2.20.0000.00718.17
8.2.10.0000.00719.19
8.2.00.0060.00319.39
8.1.280.0090.00625.92
8.1.270.0150.00621.91
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00019.39
8.1.230.0120.00019.09
8.1.220.0050.00317.88
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0060.00317.50
8.1.180.0080.00018.10
8.1.170.0030.00617.62
8.1.160.0000.00820.09
8.1.150.0050.00518.96
8.1.140.0070.00019.00
8.1.130.0040.00419.48
8.1.120.0000.00717.77
8.1.110.0040.00417.72
8.1.100.0100.00017.59
8.1.90.0040.00417.61
8.1.80.0040.00417.75
8.1.70.0000.00717.58
8.1.60.0100.00317.65
8.1.50.0000.00817.53
8.1.40.0040.00417.66
8.1.30.0050.00517.66
8.1.20.0000.00717.73
8.1.10.0000.00817.81
8.1.00.0030.00617.75
8.0.300.0060.00318.77
8.0.290.0000.00816.88
8.0.280.0070.00018.64
8.0.270.0030.00318.19
8.0.260.0030.00318.86
8.0.250.0030.00317.21
8.0.240.0000.00717.10
8.0.230.0000.00717.05
8.0.220.0000.00817.19
8.0.210.0070.00317.14
8.0.200.0000.00717.25
8.0.190.0080.00017.11
8.0.180.0060.00317.16
8.0.170.0040.00417.18
8.0.160.0030.00617.17
8.0.150.0030.00617.13
8.0.140.0070.00017.07
8.0.130.0050.00013.57
8.0.120.0000.00717.00
8.0.110.0050.00317.17
8.0.100.0090.00017.11
8.0.90.0040.00416.95
8.0.80.0070.01117.15
8.0.70.0040.00417.05
8.0.60.0080.00017.08
8.0.50.0070.00016.97
8.0.30.0080.00817.52
8.0.20.0140.00917.34
8.0.10.0020.00517.04
8.0.00.0130.01016.87
7.4.330.0020.00215.55
7.4.320.0000.00616.78
7.4.300.0000.00616.65
7.4.290.0030.00316.61
7.4.280.0070.00016.63
7.4.270.0030.00316.73
7.4.260.0000.00513.38
7.4.250.0070.00016.65
7.4.240.0020.00616.70
7.4.230.0000.00716.62
7.4.220.0020.00516.54
7.4.210.0100.00716.73
7.4.200.0070.00016.66
7.4.130.0130.01016.75
7.4.120.0070.01016.59
7.4.110.0100.00716.70
7.4.100.0070.01016.62
7.4.90.0070.01016.67
7.4.80.0090.00919.39
7.4.70.0080.00816.57
7.4.60.0100.00716.60
7.4.50.0100.00716.37
7.4.40.0110.00816.74
7.4.30.0090.00916.75
7.4.20.0100.00616.72
7.4.10.0070.01016.45
7.4.00.0080.00816.68
7.3.330.0090.00016.48
7.3.320.0050.00013.26
7.3.310.0040.00416.29
7.3.300.0030.00316.43
7.3.290.0090.00816.41
7.3.280.0090.01216.34
7.3.260.0140.01016.63
7.3.240.0120.00716.38
7.3.230.0110.00616.38
7.3.210.0100.01016.41
7.3.200.0130.00316.56
7.3.190.0000.01516.63
7.3.180.0100.00616.75
7.3.170.0060.01016.46
7.3.160.0090.00616.46
7.3.150.0060.01316.40
7.3.140.0080.00816.48
7.3.130.0080.00816.49
7.3.120.0150.00616.49
7.3.110.0110.00516.67
7.3.100.0080.01516.44
7.3.90.0150.00716.39
7.3.80.0140.00716.48
7.3.70.0040.01316.41
7.3.60.0100.00616.52
7.3.50.0030.01316.43
7.3.40.0110.00616.44
7.3.30.0120.00816.52
7.3.20.0090.00918.35
7.3.10.0110.00718.26
7.3.00.0070.01118.31
7.2.330.0060.01216.66
7.2.320.0100.00716.75
7.2.310.0190.00616.96
7.2.300.0120.00616.76
7.2.290.0080.00817.01
7.2.280.0070.01016.67
7.2.270.0100.01316.71
7.2.260.0070.01016.70
7.2.250.0030.01416.79
7.2.240.0170.00816.86
7.2.230.0150.00916.84
7.2.220.0180.00416.89
7.2.210.0180.00616.69
7.2.200.0030.01416.67
7.2.190.0060.01216.68
7.2.180.0080.00916.83
7.2.170.0030.01416.72
7.2.160.0070.01016.74
7.2.150.0090.01118.72
7.2.140.0120.00618.50
7.2.130.0070.01118.57
7.2.120.0100.00718.58
7.2.110.0090.01218.58
7.2.100.0130.01018.70
7.2.90.0070.01018.61
7.2.80.0060.01318.45
7.2.70.0030.01518.47
7.2.60.0090.00918.63
7.2.50.0110.00618.62
7.2.40.0160.00618.65
7.2.30.0160.00618.66
7.2.20.0150.00918.56
7.2.10.0150.00318.67
7.2.00.0090.00918.57

preferences:
32.27 ms | 401 KiB | 5 Q