3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date( 'Y m d h:i:s', strtotime( 'first day of this month' ) ) . "\n"; echo date( 'Y m d h:i:s', strtotime( 'first day of last month' ) ) . "\n"; echo date( 'Y m d h:i:s', strtotime( 'start of first day of this month' ) ) . "\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.0080.00816.63
8.3.50.0190.00817.37
8.3.40.0150.00018.68
8.3.30.0080.00818.67
8.3.20.0110.00418.73
8.3.10.0090.00020.48
8.3.00.0050.00519.50
8.2.180.0090.00616.50
8.2.170.0150.00622.96
8.2.160.0120.00318.95
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00421.00
8.2.110.0050.00520.93
8.2.100.0060.00617.84
8.2.90.0100.00019.30
8.2.80.0040.00419.41
8.2.70.0000.00817.63
8.2.60.0090.00318.04
8.2.50.0070.00218.07
8.2.40.0040.00418.34
8.2.30.0070.00018.15
8.2.20.0040.00717.79
8.2.10.0070.00017.56
8.2.00.0090.00017.73
8.1.280.0090.00925.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.01128.09
8.1.240.0030.00622.59
8.1.230.0110.00020.87
8.1.220.0060.00317.74
8.1.210.0060.00319.00
8.1.200.0060.00317.48
8.1.190.0040.00417.63
8.1.180.0030.00518.10
8.1.170.0030.00518.84
8.1.160.0040.00418.82
8.1.150.0030.00618.81
8.1.140.0050.00317.67
8.1.130.0000.00717.87
8.1.120.0000.00917.54
8.1.110.0050.00317.53
8.1.100.0000.00717.68
8.1.90.0000.00817.50
8.1.80.0000.00717.63
8.1.70.0030.00317.63
8.1.60.0000.00717.70
8.1.50.0000.00817.52
8.1.40.0040.00417.65
8.1.30.0080.00017.66
8.1.20.0030.00617.78
8.1.10.0040.00417.60
8.1.00.0040.00417.59
8.0.300.0040.00419.90
8.0.290.0060.00316.88
8.0.280.0040.00418.43
8.0.270.0030.00317.36
8.0.260.0030.00316.98
8.0.250.0000.00717.21
8.0.240.0070.00017.04
8.0.230.0000.00717.14
8.0.220.0030.00316.95
8.0.210.0040.00417.09
8.0.200.0000.00717.13
8.0.190.0070.00017.02
8.0.180.0050.00217.07
8.0.170.0060.00316.97
8.0.160.0000.00717.01
8.0.150.0060.00317.06
8.0.140.0040.00416.94
8.0.130.0000.00613.48
8.0.120.0090.00017.02
8.0.110.0070.00017.14
8.0.100.0000.00816.88
8.0.90.0030.00316.95
8.0.80.0000.01517.04
8.0.70.0040.00416.98
8.0.60.0040.00416.84
8.0.50.0080.00017.01
8.0.30.0090.00617.42
8.0.20.0090.01017.22
8.0.10.0000.00717.11
8.0.00.0110.00916.80
7.4.330.0060.00013.00
7.4.320.0030.00316.71
7.4.300.0030.00316.66
7.4.290.0040.00416.66
7.4.280.0050.00216.58
7.4.270.0060.00016.59
7.4.260.0000.00513.16
7.4.250.0000.00816.57
7.4.240.0030.00316.55
7.4.230.0070.00016.46
7.4.220.0070.01616.61
7.4.210.0060.01316.61
7.4.200.0000.00716.47
7.4.190.0000.00716.65
7.4.160.0100.00516.67
7.4.150.0140.00616.61
7.4.140.0100.00716.82
7.4.130.0130.00316.45
7.4.120.0030.01316.49
7.4.110.0030.01716.84
7.4.100.0030.01316.70
7.4.90.0130.00616.53
7.4.80.0090.01219.39
7.4.70.0060.01016.50
7.4.60.0070.01016.60
7.4.50.0000.00616.32
7.4.40.0070.00716.53
7.4.30.0120.00316.59
7.4.00.0060.00915.05
7.3.330.0030.00313.25
7.3.320.0040.00413.15
7.3.310.0030.00516.41
7.3.300.0040.00416.36
7.3.290.0060.00816.33
7.3.280.0080.01116.35
7.3.270.0030.01416.49
7.3.260.0100.01416.62
7.3.250.0100.00816.49
7.3.240.0040.01416.44
7.3.230.0120.00916.63
7.3.210.0000.01716.69
7.3.200.0100.01316.44
7.3.190.0150.00416.34
7.3.180.0130.00316.36
7.3.170.0060.01216.65
7.3.160.0080.01216.44
7.3.120.0080.00414.77
7.3.00.0000.01516.60
7.2.330.0130.00416.77
7.2.320.0150.00316.85
7.2.310.0150.00416.75
7.2.300.0100.00716.55
7.2.290.0100.00616.97
7.2.130.0090.01016.77
7.2.120.0070.00416.75
7.2.110.0130.00316.66
7.2.100.0040.01217.05
7.2.90.0030.00916.76
7.2.80.0030.01417.03
7.2.70.0120.00017.22
7.2.60.0060.00616.89
7.2.50.0100.00717.01
7.2.40.0090.00916.89
7.2.30.0000.01116.87
7.2.20.0070.01016.70
7.2.10.0100.01016.91
7.2.00.0000.01618.42
7.1.250.0090.00615.97
7.1.240.0080.00615.74
7.1.230.0030.01015.63
7.1.220.0060.00316.01
7.1.210.0090.00415.88
7.1.200.0060.00915.76
7.1.190.0060.00615.93
7.1.180.0110.00715.78
7.1.170.0070.00715.82
7.1.160.0040.01515.57
7.1.150.0040.01115.79
7.1.140.0060.00915.81
7.1.130.0080.00315.50
7.1.120.0160.00015.73
7.1.110.0000.01515.73
7.1.100.0110.00616.96
7.1.90.0070.01116.01
7.1.80.0000.01215.70
7.1.70.0030.00916.63
7.1.60.0070.01017.62
7.1.50.0080.00416.44
7.1.40.0030.00915.68
7.1.30.0040.00815.57
7.1.20.0050.00515.87
7.1.10.0060.00615.97
7.1.00.0030.02919.08
7.0.330.0040.00815.23
7.0.320.0070.00715.61
7.0.310.0040.00815.56
7.0.300.0070.00715.35
7.0.290.0040.01115.18
7.0.280.0080.00815.33
7.0.270.0070.00715.34
7.0.260.0070.00715.20
7.0.250.0060.00615.36
7.0.240.0080.00815.14
7.0.230.0120.00315.21
7.0.220.0050.00515.30
7.0.210.0030.01015.41
7.0.200.0060.00715.90
7.0.190.0050.00515.30
7.0.180.0040.00415.06
7.0.170.0050.00515.34
7.0.160.0030.00715.43
7.0.150.0000.01015.17
7.0.140.0050.03818.73
7.0.130.0040.00815.41
7.0.120.0070.03818.84
7.0.110.0050.00515.37
7.0.100.0060.00615.31
7.0.90.0080.00315.49
7.0.80.0250.04317.57
7.0.70.0270.03317.77
7.0.60.0270.03717.72
7.0.50.0200.05018.03
7.0.40.0050.04216.78
7.0.30.0080.04316.68
7.0.20.0110.03316.80
7.0.10.0070.02416.72
7.0.00.0030.02616.70
5.6.380.0000.01114.30
5.6.370.0110.00414.30
5.6.360.0060.00314.03
5.6.350.0000.01413.89
5.6.340.0070.00714.10
5.6.330.0030.01314.26
5.6.320.0050.00514.06
5.6.310.0040.00414.26
5.6.300.0090.00614.26
5.6.290.0090.00914.21
5.6.280.0020.04217.73
5.6.270.0030.00713.99
5.6.260.0030.01014.08
5.6.250.0110.00014.13
5.6.240.0030.00714.11
5.6.230.0100.03817.31
5.6.220.0050.02717.32
5.6.210.0050.04417.33
5.6.200.0060.03517.63
5.6.190.0060.03417.66
5.6.180.0030.04017.81
5.6.170.0070.03017.61
5.6.160.0040.02817.56
5.6.150.0050.03817.79
5.6.140.0130.03317.80
5.6.130.0060.04317.66
5.6.120.0110.03017.64
5.6.110.0050.04717.61
5.6.100.0080.04517.57
5.6.90.0060.03417.67
5.6.80.0110.03617.29
5.6.70.0120.03717.38
5.6.60.0030.03617.30
5.6.50.0080.03817.35
5.6.40.0040.04617.18
5.6.30.0070.02617.21
5.6.20.0080.04017.42
5.6.10.0080.04017.27
5.6.00.0060.04517.32
5.5.380.0080.00011.18
5.5.370.0100.03615.76
5.5.360.0000.04915.78
5.5.350.0070.04315.79
5.5.340.0050.01815.92
5.5.330.0090.04416.01
5.5.320.0030.04416.04
5.5.310.0050.04515.90
5.5.300.0050.04216.00
5.5.290.0080.02716.02
5.5.280.0040.02916.04
5.5.270.0060.04315.96
5.5.260.0020.04915.95
5.5.250.0080.02815.89
5.5.240.0070.04015.72
5.5.230.0050.03615.65
5.5.220.0030.04015.64
5.5.210.0050.04015.71
5.5.200.0020.04215.64
5.5.190.0100.03515.66
5.5.180.0070.03915.68
5.5.170.0090.00011.18
5.5.160.0050.03815.68
5.5.150.0100.03715.67
5.5.140.0070.03815.64
5.5.130.0020.04515.69
5.5.120.0120.03215.67
5.5.110.0020.04015.58
5.5.100.0020.04215.62
5.5.90.0020.04315.55
5.5.80.0030.04015.66
5.5.70.0000.04915.56
5.5.60.0030.04415.62
5.5.50.0050.02715.61
5.5.40.0030.03815.66
5.5.30.0090.02715.61
5.5.20.0050.04215.62
5.5.10.0100.03615.61
5.5.00.0050.03215.60
5.4.450.0100.03515.24
5.4.440.0080.03915.22
5.4.430.0080.03615.24
5.4.420.0050.03615.31
5.4.410.0100.03515.21
5.4.400.0030.04315.07
5.4.390.0050.04515.10
5.4.380.0050.03515.11
5.4.370.0030.04215.10
5.4.360.0080.04215.13
5.4.350.0050.03715.20
5.4.340.0080.02715.10
5.4.330.0030.00411.18
5.4.320.0060.03915.15
5.4.310.0050.03915.12
5.4.300.0070.04015.10
5.4.290.0070.03315.10
5.4.280.0050.03815.07
5.4.270.0040.04115.04
5.4.260.0060.02615.11
5.4.250.0000.02915.05
5.4.240.0030.04315.04
5.4.230.0080.04215.07
5.4.220.0030.03215.14
5.4.210.0100.03515.13
5.4.200.0050.04214.98
5.4.190.0070.03815.13
5.4.180.0050.04215.15
5.4.170.0030.03415.21
5.4.160.0080.03515.09
5.4.150.0110.02015.05
5.4.140.0070.04113.75
5.4.130.0050.03913.78
5.4.120.0030.04013.77
5.4.110.0060.04213.82
5.4.100.0080.03413.83
5.4.90.0070.02413.72
5.4.80.0010.04113.72
5.4.70.0070.03713.79
5.4.60.0050.02513.69
5.4.50.0050.03413.71
5.4.40.0040.03613.72
5.4.30.0060.03513.78
5.4.20.0100.03513.78
5.4.10.0030.04013.70
5.4.00.0080.03313.45
5.3.290.0030.02812.85
5.3.280.0110.03312.79
5.3.270.0080.04012.89
5.3.260.0030.03012.82
5.3.250.0020.02712.80
5.3.240.0020.04512.89
5.3.230.0030.02712.89
5.3.220.0070.03112.85
5.3.210.0030.03612.84
5.3.200.0060.02412.83
5.3.190.0070.04012.85
5.3.180.0050.02412.84
5.3.170.0000.02712.81
5.3.160.0050.03812.86
5.3.150.0030.03512.78
5.3.140.0090.03012.79
5.3.130.0030.03912.79
5.3.120.0060.03812.85
5.3.110.0080.04312.79
5.3.100.0080.03512.54
5.3.90.0080.03212.55
5.3.80.0020.04512.59
5.3.70.0080.03912.56
5.3.60.0050.03212.52
5.3.50.0070.03812.55
5.3.40.0070.03112.54
5.3.30.0040.03912.42
5.3.20.0070.03712.32
5.3.10.0030.03512.38
5.3.00.0050.03312.37
5.2.170.0070.03211.15
5.2.160.0050.03211.19
5.2.150.0050.01711.18
5.2.140.0030.03411.15
5.2.130.0030.03211.12
5.2.120.0040.03211.15
5.2.110.0060.02611.10
5.2.100.0090.02811.10
5.2.90.0070.03011.16
5.2.80.0030.03311.03
5.2.70.0040.03411.05
5.2.60.0050.02611.03
5.2.50.0020.03511.13
5.2.40.0030.03611.08
5.2.30.0070.02711.03
5.2.20.0050.01710.99
5.2.10.0030.03011.02
5.2.00.0060.02610.91
5.1.60.0060.02210.62
5.1.50.0030.03010.50
5.1.40.0060.02110.57
5.1.30.0020.03010.78
5.1.20.0050.02310.79
5.1.10.0050.02810.54
5.1.00.0070.02710.64
5.0.50.0030.0239.86
5.0.40.0040.0179.78
5.0.30.0060.0279.69
5.0.20.0050.0149.73
5.0.10.0050.0189.59
5.0.00.0030.0329.67
4.4.90.0020.0159.39
4.4.80.0020.0169.39
4.4.70.0050.0159.39
4.4.60.0000.0149.39
4.4.50.0020.0129.39
4.4.40.0060.0239.39
4.4.30.0000.0169.39
4.4.20.0020.0239.39
4.4.10.0000.0199.39
4.4.00.0050.0279.39
4.3.110.0040.0179.39
4.3.100.0020.0159.39
4.3.90.0020.0209.39
4.3.80.0000.0179.39
4.3.70.0050.0169.39
4.3.60.0030.0159.39
4.3.50.0020.0199.39
4.3.40.0060.0239.39
4.3.30.0030.0109.39
4.3.20.0020.0159.39
4.3.10.0030.0189.39
4.3.00.0020.0189.39

preferences:
45.38 ms | 401 KiB | 5 Q