3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new \DateTime('previous month first day of'); //$f->modify('first day of'); echo $f->format('Y-m-d H:i:s');

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.0090.01216.50
8.3.50.0130.00521.03
8.3.40.0140.00018.89
8.3.30.0090.00618.84
8.3.20.0100.00720.33
8.3.10.0050.00321.71
8.3.00.0060.00323.53
8.2.180.0120.00316.61
8.2.170.0110.00322.96
8.2.160.0090.00620.57
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00019.83
8.2.120.0110.00426.35
8.2.110.0030.00621.04
8.2.100.0120.00017.97
8.2.90.0030.00518.34
8.2.80.0000.00818.03
8.2.70.0090.00317.63
8.2.60.0000.00817.75
8.2.50.0070.00318.07
8.2.40.0040.00422.28
8.2.30.0030.00619.52
8.2.20.0000.00717.88
8.2.10.0000.00818.10
8.2.00.0030.00518.13
8.1.280.0110.00725.92
8.1.270.0000.00824.01
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.63
8.1.230.0060.00621.04
8.1.220.0030.00517.89
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0040.00420.89
8.1.150.0040.00418.82
8.1.140.0000.00719.64
8.1.130.0000.00817.71
8.1.120.0000.00717.69
8.1.110.0000.00717.69
8.1.100.0000.00717.52
8.1.90.0000.00717.57
8.1.80.0080.00017.57
8.1.70.0030.00517.63
8.1.60.0040.00417.68
8.1.50.0030.00717.53
8.1.40.0040.00417.63
8.1.30.0040.00417.76
8.1.20.0000.00717.73
8.1.10.0030.00617.64
8.1.00.0040.00417.65
8.0.300.0070.00020.03
8.0.290.0080.00016.88
8.0.280.0000.00718.57
8.0.270.0000.00717.00
8.0.260.0030.00316.95
8.0.250.0030.00717.23
8.0.240.0050.00217.12
8.0.230.0000.00717.04
8.0.220.0030.00317.11
8.0.210.0070.00017.05
8.0.200.0000.00717.03
8.0.190.0040.00417.13
8.0.180.0040.00417.12
8.0.170.0040.00417.09
8.0.160.0000.00717.11
8.0.150.0000.00816.98
8.0.140.0030.00417.00
8.0.130.0000.00613.42
8.0.120.0000.00817.10
8.0.110.0040.00416.99
8.0.100.0070.00017.05
8.0.90.0000.00717.07
8.0.80.0070.00717.14
8.0.70.0000.00817.15
8.0.60.0030.00316.98
8.0.50.0070.00017.11
8.0.30.0110.00817.41
8.0.20.0110.00917.41
8.0.10.0000.00717.04
8.0.00.0090.00916.97
7.4.330.0000.00516.82
7.4.320.0000.00616.77
7.4.300.0000.00716.59
7.4.290.0080.00016.71
7.4.280.0030.00616.71
7.4.270.0030.00316.74
7.4.260.0000.00816.74
7.4.250.0070.00016.70
7.4.240.0000.00716.72
7.4.230.0040.00416.81
7.4.220.0150.00916.72
7.4.210.0100.00416.68
7.4.200.0020.00516.55
7.4.160.0080.00816.60
7.4.150.0070.01017.40
7.4.140.0130.00917.86
7.4.130.0150.00316.71
7.4.120.0100.00816.70
7.4.110.0160.00616.79
7.4.100.0070.01716.66
7.4.90.0100.00716.65
7.4.80.0060.01119.39
7.4.70.0040.01816.60
7.4.60.0110.00516.54
7.4.50.0040.01516.87
7.4.40.0100.01016.53
7.4.30.0140.00616.59
7.4.00.0040.00815.11
7.3.330.0000.00513.16
7.3.320.0030.00313.15
7.3.310.0070.00016.16
7.3.300.0030.00616.29
7.3.290.0080.00616.35
7.3.280.0090.00616.32
7.3.270.0090.00917.40
7.3.260.0100.00616.63
7.3.250.0110.00816.47
7.3.240.0060.01016.57
7.3.230.0060.01016.62
7.3.210.0100.01016.73
7.3.200.0110.00719.39
7.3.190.0110.00616.56
7.3.180.0130.00316.51
7.3.170.0080.00816.34
7.3.160.0130.00416.56
7.3.10.0070.00416.79
7.3.00.0040.01116.85
7.2.330.0070.01116.57
7.2.320.0030.01416.89
7.2.310.0100.00716.68
7.2.300.0100.00616.91
7.2.290.0180.00617.01
7.2.130.0030.00916.83
7.2.120.0060.00616.64
7.2.110.0030.00616.96
7.2.100.0060.00616.95
7.2.90.0060.00617.02
7.2.80.0060.00917.04
7.2.70.0030.00716.91
7.2.60.0090.00316.90
7.2.50.0090.00616.89
7.2.40.0050.00416.95
7.2.30.0000.00917.22
7.2.20.0070.00716.89
7.2.10.0030.00716.97
7.2.00.0060.00818.38
7.1.250.0030.00515.77
7.1.200.0110.00315.93
7.1.100.0120.00318.41
7.1.70.0080.00317.26
7.1.60.0070.01719.30
7.1.50.0100.01016.86
7.1.00.0000.08022.36
7.0.200.0030.00716.60
7.0.60.0370.07021.83
7.0.50.0000.04317.66
7.0.40.0000.04720.24
7.0.30.0300.03020.21
7.0.20.0370.07020.00
7.0.10.0070.04320.33
7.0.00.0070.08320.19
5.6.280.0030.05321.12
5.6.210.0100.08020.76
5.6.200.0070.05718.15
5.6.190.0100.04020.67
5.6.180.0370.04720.64
5.6.170.0370.05320.55
5.6.160.0170.05020.49
5.6.150.0070.08318.18
5.6.140.0070.04318.22
5.6.130.0030.08018.15
5.6.120.0100.06020.98
5.6.110.0030.08720.96
5.6.100.0030.08020.97
5.6.90.0130.03321.13
5.6.80.0030.08320.36
5.5.350.0230.07320.43
5.5.340.0070.07717.91
5.5.330.0100.07320.21
5.5.320.0370.05720.34
5.5.310.0330.05320.41
5.5.300.0100.05718.01
5.5.290.0070.04318.00
5.5.280.0030.05720.74
5.5.270.0000.04720.96
5.5.260.0130.08320.86
5.5.250.0170.06720.45
5.5.240.0170.07020.04

preferences:
48.51 ms | 401 KiB | 5 Q