3v4l.org

run code in 300+ PHP versions simultaneously
<?php $initialDate = "2011-07-31"; for($i=1; $i<=5; $i++) { echo date('Y-m-d', strtotime('last day of -' . $i . ' month', strtotime($initialDate))) . "\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.4.130.0080.01118.66
8.4.120.0100.00724.13
8.4.110.0110.00922.15
8.4.100.0120.00818.83
8.4.90.0100.01217.91
8.4.80.0040.00517.70
8.4.70.0050.00317.81
8.4.60.0060.00618.87
8.4.50.0080.01120.76
8.4.40.0120.00917.66
8.4.30.0120.00817.77
8.4.20.0140.01118.75
8.4.10.0140.00719.39
8.3.250.0140.00619.00
8.3.240.0100.00917.37
8.3.230.0130.00716.75
8.3.220.0050.00217.20
8.3.210.0120.00616.85
8.3.200.0020.00716.97
8.3.190.0120.00916.97
8.3.180.0120.00816.63
8.3.170.0030.01616.86
8.3.160.0150.00417.06
8.3.150.0140.00417.14
8.3.140.0080.00019.18
8.3.130.0000.00816.91
8.3.120.0000.00820.86
8.3.110.0050.00318.25
8.3.100.0040.00416.83
8.3.90.0080.00026.77
8.3.80.0030.00618.15
8.3.70.0060.00916.58
8.3.60.0160.00318.56
8.3.50.0100.00518.32
8.3.40.0150.00018.74
8.3.30.0060.00918.94
8.3.20.0040.00418.62
8.3.10.0080.00023.71
8.3.00.0040.00421.69
8.2.290.0100.00920.21
8.2.280.0080.00319.98
8.2.270.0040.00419.11
8.2.260.0120.00616.80
8.2.250.0040.00416.55
8.2.240.0070.01118.82
8.2.230.0100.00020.94
8.2.220.0080.00824.06
8.2.210.0140.00026.77
8.2.200.0090.00316.62
8.2.190.0040.01116.63
8.2.180.0060.01025.92
8.2.170.0070.01319.04
8.2.160.0040.01122.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00019.87
8.2.110.0060.00319.40
8.2.100.0060.00618.06
8.2.90.0030.00618.34
8.2.80.0040.00420.53
8.2.70.0050.00317.88
8.2.60.0040.00417.75
8.2.50.0030.00617.88
8.2.40.0060.00617.88
8.2.30.0020.00520.58
8.2.20.0040.00418.23
8.2.10.0030.00518.05
8.2.00.0080.00019.55
8.1.330.0120.00721.95
8.1.320.0110.00816.05
8.1.310.0040.00418.42
8.1.300.0070.01116.08
8.1.290.0060.00330.84
8.1.280.0110.01125.92
8.1.270.0060.00920.54
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00422.20
8.1.230.0080.00320.88
8.1.220.0000.00817.77
8.1.210.0040.00419.09
8.1.200.0070.00417.73
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0000.00918.58
8.1.160.0080.00018.88
8.1.150.0040.00419.00
8.1.140.0070.00020.96
8.1.130.0070.00020.23
8.1.120.0000.00817.70
8.1.110.0040.00417.75
8.1.100.0040.00417.69
8.1.90.0040.00417.70
8.1.80.0030.00617.66
8.1.70.0080.00017.59
8.1.60.0040.00417.77
8.1.50.0080.00017.63
8.1.40.0060.00317.76
8.1.30.0080.00317.82
8.1.20.0000.00917.80
8.1.10.0040.00417.59
8.1.00.0060.00317.73
8.0.300.0070.00020.02
8.0.290.0040.00417.00
8.0.280.0040.00418.58
8.0.270.0000.00716.96
8.0.260.0000.00620.23
8.0.250.0060.00317.25
8.0.240.0000.00617.28
8.0.230.0070.00017.24
8.0.220.0070.00017.15
8.0.210.0050.00217.14
8.0.200.0030.00317.15
8.0.190.0040.00417.13
8.0.180.0050.00317.21
8.0.170.0040.00417.17
8.0.160.0000.00717.21
8.0.150.0050.00517.16
8.0.140.0000.00717.07
8.0.130.0000.00613.47
8.0.120.0040.00417.16
8.0.110.0040.00417.16
8.0.100.0070.00017.06
8.0.90.0000.00817.18
8.0.80.0080.01117.20
8.0.70.0040.00417.11
8.0.60.0080.00017.20
8.0.50.0030.00517.13
8.0.30.0150.00517.35
8.0.20.0080.01117.48
8.0.10.0040.00316.99
8.0.00.0150.00517.05
7.4.330.0060.00015.55
7.4.320.0030.00316.79
7.4.300.0060.00016.75
7.4.290.0030.00316.63
7.4.280.0080.00016.64
7.4.270.0040.00416.66
7.4.260.0080.00016.71
7.4.250.0030.00516.52
7.4.240.0000.00716.72
7.4.230.0030.00316.59
7.4.220.0040.00416.48
7.4.210.0060.01116.69
7.4.200.0030.00316.71
7.4.160.0140.00516.71
7.4.140.0130.00517.86
7.4.130.0120.01216.91
7.4.120.0120.00816.66
7.4.110.0140.00416.79
7.4.100.0060.01216.44
7.4.90.0090.00916.51
7.4.80.0060.01219.39
7.4.70.0160.00016.73
7.4.60.0060.01016.64
7.4.50.0030.00616.59
7.4.40.0080.00916.52
7.4.10.0110.00715.32
7.4.00.0070.00915.12
7.3.330.0050.00013.32
7.3.320.0030.00313.30
7.3.310.0040.00416.50
7.3.300.0000.00716.37
7.3.290.0030.00316.46
7.3.280.0070.01316.52
7.3.260.0090.00916.66
7.3.240.0080.01016.59
7.3.230.0030.01316.50
7.3.210.0110.00716.58
7.3.200.0110.01116.58
7.3.190.0040.01216.52
7.3.180.0130.00316.72
7.3.170.0110.00516.53
7.3.160.0070.01116.91
7.3.130.0070.01315.07
7.3.120.0090.00915.06
7.3.110.0030.01715.20
7.3.100.0030.01015.04
7.3.90.0060.01015.01
7.3.80.0040.00815.13
7.3.70.0070.00715.05
7.3.60.0060.01314.87
7.3.50.0120.00315.07
7.3.40.0060.01214.73
7.3.30.0060.00314.90
7.3.20.0070.00716.94
7.3.10.0060.00916.79
7.3.00.0070.00716.95
7.2.330.0100.00716.65
7.2.320.0110.00716.57
7.2.310.0180.00716.61
7.2.300.0060.01016.98
7.2.290.0030.01516.80
7.2.260.0090.00315.15
7.2.250.0070.01115.49
7.2.240.0080.00415.22
7.2.230.0130.00315.42
7.2.220.0090.00615.26
7.2.210.0060.00915.21
7.2.200.0030.00715.03
7.2.190.0120.00314.93
7.2.180.0090.00615.13
7.2.170.0070.00715.01
7.2.160.0060.00615.37
7.2.150.0030.01017.17
7.2.140.0100.00717.20
7.2.130.0070.00717.14
7.2.120.0030.01017.23
7.2.110.0070.01016.95
7.2.100.0040.00716.87
7.2.90.0130.00316.13
7.2.80.1580.00616.03
7.2.70.1510.00816.21
7.2.60.1490.00316.20
7.2.50.1970.00216.18
7.2.40.1560.00516.05
7.2.30.1720.00816.28
7.2.20.1400.01216.17
7.2.10.1480.01016.18
7.2.00.1270.01016.19
7.1.330.0040.00715.76
7.1.320.0090.00415.81
7.1.310.0120.00316.11
7.1.300.0090.00615.77
7.1.290.0070.00716.00
7.1.280.0070.00716.00
7.1.270.0030.00915.92
7.1.260.0110.00416.03
7.1.250.0050.00316.21
7.1.240.0030.00716.12
7.1.230.0030.01016.17
7.1.220.0060.00316.13
7.1.210.0160.00915.12
7.1.200.1470.00515.05
7.1.190.1280.00915.00
7.1.180.1710.00615.03
7.1.170.1950.00014.92
7.1.160.1330.00714.96
7.1.150.1470.01114.97
7.1.140.1310.00815.12
7.1.130.1640.01015.09
7.1.120.1770.01215.07
7.1.110.1270.00815.02
7.1.100.1390.00515.04
7.1.90.1720.01315.09
7.1.80.1810.00715.12
7.1.70.1790.00615.10
7.1.60.1820.00724.13
7.1.50.2350.00824.05
7.1.40.2700.00524.06
7.1.30.2600.00823.98
7.1.20.2550.01024.12
7.1.10.2390.00814.98
7.1.00.1750.00315.14
7.0.330.0080.00415.37
7.0.320.0070.00315.68
7.0.310.0070.00315.71
7.0.300.0070.00715.60
7.0.290.0030.00615.57
7.0.280.0040.01115.26
7.0.270.0000.01215.76
7.0.260.0000.01315.59
7.0.250.0050.00315.63
7.0.240.0090.00315.60
7.0.230.0000.01615.75
7.0.220.0070.01015.43
7.0.210.0030.00615.47
7.0.200.0000.00815.74
7.0.190.0060.00615.31
7.0.180.0050.00315.73
7.0.170.0120.00015.65
7.0.160.0030.00915.52
7.0.150.0070.00315.64
7.0.140.0030.00715.31
7.0.130.0040.01115.50
7.0.120.0120.00615.55
7.0.110.0030.00615.69
7.0.100.0110.00015.74
7.0.90.0050.00315.65
7.0.80.0090.00315.41
7.0.70.0030.01015.45
7.0.60.0070.00715.67
7.0.50.0030.00615.80
7.0.40.0070.00313.75
7.0.30.0070.00313.39
7.0.20.0080.00013.74
7.0.10.0040.01113.45
7.0.00.0030.01013.63
5.6.400.0030.01014.06
5.6.390.0100.00014.43
5.6.380.0030.01014.25
5.6.370.0000.01414.16
5.6.360.0060.00914.46
5.6.350.0030.00714.23
5.6.340.0030.00914.32
5.6.330.0060.00614.63
5.6.320.0040.00814.32
5.6.310.0000.01314.43
5.6.300.0030.00914.77
5.6.290.0090.00614.15
5.6.280.0090.00614.56
5.6.270.0110.00314.59
5.6.260.0070.00714.25
5.6.250.0000.01014.43
5.6.240.0030.00614.80
5.6.230.0000.01614.20
5.6.220.0060.01214.17
5.6.210.0060.00914.34
5.6.200.0080.00414.28
5.6.190.0030.00514.21
5.6.180.0120.00314.44
5.6.170.0090.00614.29
5.6.160.0000.01414.40
5.6.150.0000.01114.57
5.6.140.0060.00314.40
5.6.130.0080.00614.50
5.6.120.0040.00714.19
5.6.110.0000.01214.54
5.6.100.0090.00314.59
5.6.90.0080.00414.35
5.6.80.0000.01414.45
5.6.70.0000.00914.40
5.6.60.0000.01314.40
5.6.50.0040.00714.75
5.6.40.0030.01014.47
5.6.30.0060.00614.46
5.6.20.0080.00414.23
5.6.10.0030.01014.57
5.6.00.0040.00414.55

preferences:
129.01 ms | 403 KiB | 5 Q