3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('-4 month', new \DateTimeZone('GMT')); //echo $date->format('m-d-Y'); $quarter = ceil($date->format('n') / 3); $year = $date->format('Y'); $month = $quarter * 3 + 1; $date = \DateTime::createFromFormat('Y-n-j H:i', strval($year+1)."-$month-1 00:00"); echo $date->format('d-m-Y H:i');

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.0140.00718.22
8.3.50.0070.01116.61
8.3.40.0030.01419.00
8.3.30.0120.00318.75
8.3.20.0050.00320.33
8.3.10.0000.00820.77
8.3.00.0040.00423.56
8.2.180.0090.00616.48
8.2.170.0040.01122.96
8.2.160.0060.00622.26
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0060.00320.47
8.2.100.0150.00018.16
8.2.90.0000.00817.88
8.2.80.0030.00618.73
8.2.70.0000.00817.88
8.2.60.0080.00018.05
8.2.50.0030.00618.07
8.2.40.0040.00418.35
8.2.30.0030.00518.11
8.2.20.0040.00418.02
8.2.10.0080.00018.14
8.2.00.0050.00218.24
8.1.280.0120.00625.92
8.1.270.0160.00022.19
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00319.09
8.1.230.0060.00617.85
8.1.220.0070.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0050.00317.60
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0030.00619.04
8.1.150.0040.00419.01
8.1.140.0050.00319.75
8.1.130.0040.00417.90
8.1.120.0050.00217.65
8.1.110.0000.00717.73
8.1.100.0000.00717.64
8.1.90.0040.00417.69
8.1.80.0040.00417.80
8.1.70.0030.00317.74
8.1.60.0050.00317.80
8.1.50.0060.00317.64
8.1.40.0000.00817.78
8.1.30.0030.00617.78
8.1.20.0040.00417.73
8.1.10.0060.00317.80
8.1.00.0000.00717.83
8.0.300.0060.00318.87
8.0.290.0000.00817.13
8.0.280.0030.00518.63
8.0.270.0040.00417.06
8.0.260.0030.00317.43
8.0.250.0070.00017.16
8.0.240.0030.00317.31
8.0.230.0000.00717.29
8.0.220.0070.00017.25
8.0.210.0000.00717.28
8.0.200.0000.00617.15
8.0.190.0040.00417.30
8.0.180.0000.00717.25
8.0.170.0080.00017.18
8.0.160.0040.00417.32
8.0.150.0000.00717.25
8.0.140.0070.00017.09
8.0.130.0030.00313.67
8.0.120.0040.00417.23
8.0.110.0070.00017.13
8.0.100.0000.00817.12
8.0.90.0040.00417.28
8.0.80.0040.01117.22
8.0.70.0050.00317.18
8.0.60.0040.00417.26
8.0.50.0030.00517.12
8.0.30.0140.00517.35
8.0.20.0100.01117.54
8.0.10.0080.00017.17
8.0.00.0090.01017.02
7.4.330.0030.00316.84
7.4.320.0030.00316.81
7.4.300.0030.00316.84
7.4.290.0070.00316.71
7.4.280.0000.00816.75
7.4.270.0070.00016.60
7.4.260.0030.00616.87
7.4.250.0030.00316.70
7.4.240.0000.00716.84
7.4.230.0000.00716.77
7.4.220.0100.00716.68
7.4.210.0060.00816.84
7.4.200.0030.00316.54
7.4.160.0070.01016.80
7.4.150.0160.00317.40
7.4.140.0110.00617.86
7.4.130.0090.01116.74
7.4.120.0100.00616.80
7.4.110.0060.01516.89
7.4.100.0060.01216.73
7.4.90.0070.01116.79
7.4.80.0110.01119.39
7.4.70.0180.00316.79
7.4.60.0040.01216.73
7.4.50.0060.00616.57
7.4.40.0040.01116.88
7.4.30.0090.01216.71
7.4.10.0130.00615.29
7.4.00.0070.01015.23
7.3.330.0020.00213.43
7.3.320.0050.00013.40
7.3.310.0030.00316.39
7.3.300.0050.00316.54
7.3.290.0040.01316.56
7.3.280.0080.00816.59
7.3.270.0110.00617.40
7.3.260.0100.00716.79
7.3.250.0090.00916.72
7.3.240.0080.00816.73
7.3.230.0060.01216.77
7.3.210.0170.00016.56
7.3.200.0160.00016.55
7.3.190.0110.00516.45
7.3.180.0030.01316.67
7.3.170.0120.00316.47
7.3.160.0090.00616.51
7.3.130.0030.01015.06
7.3.120.0040.01415.19
7.3.110.0090.00915.13
7.3.100.0120.00615.20
7.3.90.0120.00315.05
7.3.80.0080.00315.21
7.3.70.0090.00615.25
7.3.60.0100.00315.15
7.3.50.0110.00615.23
7.3.40.0030.00615.09
7.3.30.0030.00715.02
7.3.20.0030.00616.71
7.3.10.0080.00816.74
7.3.00.0040.00916.77
7.2.330.0110.00616.89
7.2.320.0160.00016.93
7.2.310.0030.01316.84
7.2.300.0110.01216.71
7.2.290.0100.00616.94
7.2.260.0080.00815.23
7.2.250.0100.00715.18
7.2.240.0100.00315.27
7.2.230.0040.01215.38
7.2.220.0080.00615.23
7.2.210.0040.00415.12
7.2.200.0030.01215.32
7.2.190.0000.01215.09
7.2.180.0140.00015.38
7.2.170.0000.01315.14
7.2.160.0090.00315.16
7.2.150.0070.01117.15
7.2.140.0060.00617.21
7.2.130.0110.00616.92
7.2.120.0070.00817.00
7.2.110.0080.00817.06
7.2.100.0070.01017.01
7.2.90.0050.01217.07
7.2.80.0060.00917.20
7.2.70.0030.01317.22
7.2.60.0070.00716.98
7.2.50.0080.00917.08
7.2.40.0080.00916.98
7.2.30.0100.00716.99
7.2.20.0070.01017.08
7.2.10.0050.00716.98
7.2.00.0050.00918.08
7.1.330.0030.01016.05
7.1.320.0160.00015.95
7.1.310.0040.00815.74
7.1.300.0080.00616.04
7.1.290.0080.00416.08
7.1.280.0000.00816.00
7.1.270.0040.00816.05
7.1.260.0070.00716.17
7.1.250.0030.00815.86
7.1.240.0080.00816.07
7.1.230.0060.00615.97
7.1.220.0040.00415.98
7.1.210.0100.00316.21
7.1.200.0160.00816.05
7.1.190.0070.00715.79
7.1.180.0030.01015.94
7.1.170.0070.00715.91
7.1.160.0070.00715.95
7.1.150.0040.00815.89
7.1.140.0100.00316.05
7.1.130.0030.00615.77
7.1.120.0100.00316.10
7.1.110.0070.00716.09
7.1.100.0080.00517.11
7.1.90.0030.00815.96
7.1.80.0040.00416.08
7.1.70.0050.00616.61
7.1.60.0070.00817.50
7.1.50.0050.01416.54
7.1.40.0060.00315.71
7.1.30.0060.00615.83
7.1.20.0100.00715.80
7.1.10.0110.00415.71
7.1.00.0040.04419.12
7.0.330.0050.00315.64
7.0.320.0000.00815.71
7.0.310.0070.00315.63
7.0.300.0110.00315.63
7.0.290.0040.00715.34
7.0.280.0040.01115.50
7.0.270.0040.00415.60
7.0.260.0000.00815.44
7.0.250.0060.00315.61
7.0.240.0070.00315.52
7.0.230.0130.00015.57
7.0.220.0140.00015.71
7.0.210.0000.00915.52
7.0.200.0490.00215.24
7.0.190.0100.00315.66
7.0.180.0060.00915.72
7.0.170.0000.01615.80
7.0.160.0070.00715.52
7.0.150.0030.00915.63
7.0.140.0080.00615.64
7.0.130.0070.00715.67
7.0.120.0080.00015.47
7.0.110.0070.00715.31
7.0.100.0070.00715.70
7.0.90.0000.01315.35
7.0.80.0100.00315.45
7.0.70.0050.00515.32
7.0.60.0080.02918.73
7.0.50.0080.03016.74
7.0.40.0030.03016.99
7.0.30.0170.04016.93
7.0.20.0070.02816.97
7.0.10.0070.04616.75
7.0.00.0090.03516.91
5.6.400.0110.00414.43
5.6.390.0000.01114.33
5.6.380.0030.00714.54
5.6.370.0070.00714.73
5.6.360.0000.01014.90
5.6.350.0040.01114.78
5.6.340.0070.00714.79
5.6.330.0090.00314.46
5.6.320.0030.00714.72
5.6.310.0040.00414.48
5.6.300.0080.00614.49
5.6.290.0100.00014.71
5.6.280.0060.02117.83
5.6.270.0110.00314.36
5.6.260.0100.00314.62
5.6.250.0000.01114.53
5.6.240.0090.00614.46
5.6.230.0090.00314.55
5.6.220.0070.00714.24
5.6.210.0060.02817.45
5.6.200.0020.05116.18
5.6.190.0040.02517.41
5.6.180.0150.04717.48
5.6.170.0130.03817.46
5.6.160.0100.02217.47
5.6.150.0040.02716.47
5.6.140.0040.04616.33
5.6.130.0090.03716.36
5.6.120.0080.04217.69
5.6.110.0060.03817.61
5.6.100.0110.04117.81
5.6.90.0050.03717.85
5.6.80.0110.03317.51
5.6.70.0070.00714.34
5.6.60.0060.00614.46
5.6.50.0100.00314.48
5.6.40.0000.01314.12
5.6.30.0040.00814.63
5.6.20.0000.00914.27
5.6.10.0080.00814.28
5.6.00.0040.00814.32
5.5.380.0090.00614.64
5.5.370.0030.00914.19
5.5.360.0060.01114.41
5.5.350.0180.04317.50
5.5.340.0100.03816.25
5.5.330.0020.03517.51
5.5.320.0270.02717.49
5.5.310.0220.04217.38
5.5.300.0030.02616.21
5.5.290.0050.04416.09
5.5.280.0120.04017.57
5.5.270.0080.03817.61
5.5.260.0090.02917.67
5.5.250.0100.04517.66
5.5.240.0050.03917.30
5.5.230.0080.00614.53
5.5.220.0100.00314.37
5.5.210.0110.00314.43
5.5.200.0050.00314.39
5.5.190.0070.00714.28
5.5.180.0030.01014.44
5.5.170.0000.01814.14
5.5.160.0090.00014.18
5.5.150.0070.00714.25
5.5.140.0000.00914.45
5.5.130.0110.00314.53
5.5.120.0060.00914.41
5.5.110.0090.00614.14
5.5.100.0080.00814.50
5.5.90.0100.00313.95
5.5.80.0000.00814.31
5.5.70.0030.00914.31
5.5.60.0030.01014.57
5.5.50.0080.00414.51
5.5.40.0030.01014.08
5.5.30.0000.01414.38
5.5.20.0090.00614.22
5.5.10.0090.00413.91
5.5.00.0100.00313.94

preferences:
57.67 ms | 401 KiB | 5 Q