3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); $firstOfMonth = $date->modify('1st')->format(DATE_ISO8601); $lastOfMonth = $date->modify('last day of month')->format(DATE_ISO8601); var_dump(array($firstOfMonth, $lastOfMonth));

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.0100.00716.88
8.3.50.0110.00521.27
8.3.40.0110.01118.93
8.3.30.0140.00019.12
8.3.20.0080.00020.29
8.3.10.0000.00823.69
8.3.00.0050.00320.84
8.2.180.0090.00916.88
8.2.170.0090.00622.96
8.2.160.0090.00620.35
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.12
8.2.110.0030.00622.11
8.2.100.0070.00419.70
8.2.90.0000.00719.23
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.01217.91
8.2.50.0060.00318.07
8.2.40.0090.00019.88
8.2.30.0040.00418.06
8.2.20.0040.00417.93
8.2.10.0040.00418.05
8.2.00.0000.00818.00
8.1.280.0120.00625.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.19
8.1.230.0000.01119.21
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00717.10
8.1.190.0050.00317.47
8.1.180.0030.00718.10
8.1.170.0000.00918.71
8.1.160.0030.00521.96
8.1.150.0080.00018.71
8.1.140.0040.00417.58
8.1.130.0030.00317.82
8.1.120.0000.00717.61
8.1.110.0070.00017.49
8.1.100.0040.00417.48
8.1.90.0040.00417.62
8.1.80.0040.00417.44
8.1.70.0070.00017.46
8.1.60.0030.00617.61
8.1.50.0060.00317.63
8.1.40.0080.00317.60
8.1.30.0040.00417.69
8.1.20.0000.00817.71
8.1.10.0000.00817.63
8.1.00.0080.00017.71
8.0.300.0000.00818.77
8.0.290.0000.00717.04
8.0.280.0000.00718.42
8.0.270.0000.00717.27
8.0.260.0070.00017.14
8.0.250.0030.00317.12
8.0.240.0000.00717.14
8.0.230.0070.00017.17
8.0.220.0030.00317.11
8.0.210.0000.00617.00
8.0.200.0040.00417.04
8.0.190.0050.00217.14
8.0.180.0070.00017.02
8.0.170.0000.00817.17
8.0.160.0040.00417.17
8.0.150.0000.00717.05
8.0.140.0000.00717.07
8.0.130.0000.00813.48
8.0.120.0080.00016.96
8.0.110.0040.00417.10
8.0.100.0040.00416.98
8.0.90.0000.00717.02
8.0.80.0000.01516.98
8.0.70.0080.00017.04
8.0.60.0050.00216.96
8.0.50.0000.00817.04
8.0.30.0100.00817.18
8.0.20.0060.01617.40
8.0.10.0070.00017.18
8.0.00.0060.01216.94
7.4.330.0050.00015.00
7.4.320.0060.00016.61
7.4.300.0060.00016.66
7.4.290.0000.00716.74
7.4.280.0080.00416.63
7.4.270.0050.00316.57
7.4.260.0040.00416.61
7.4.250.0070.00016.59
7.4.240.0030.00416.69
7.4.230.0000.00616.82
7.4.220.0090.00916.69
7.4.210.0030.01216.71
7.4.200.0080.00016.81
7.4.190.0030.00316.59
7.4.160.0070.00716.89
7.4.150.0180.00617.40
7.4.140.0110.00917.86
7.4.130.0120.00516.53
7.4.120.0110.00616.73
7.4.110.0100.00716.54
7.4.100.0100.01416.54
7.4.90.0090.00916.84
7.4.80.0110.01519.39
7.4.70.0130.00316.64
7.4.60.0080.01216.51
7.4.50.0000.00416.42
7.4.40.0130.00316.70
7.4.30.0160.00016.69
7.4.00.0090.00615.18
7.3.330.0030.00313.23
7.3.320.0000.00513.18
7.3.310.0000.00716.23
7.3.300.0040.00316.40
7.3.290.0030.01416.38
7.3.280.0090.01016.41
7.3.270.0120.00617.40
7.3.260.0130.01016.45
7.3.250.0090.01316.50
7.3.240.0160.00016.55
7.3.230.0080.00816.66
7.3.210.0180.00016.30
7.3.200.0100.00719.39
7.3.190.0130.00316.60
7.3.180.0060.01516.61
7.3.170.0110.00516.68
7.3.160.0060.01416.49
7.3.120.0070.00715.21
7.2.330.0070.01016.84
7.2.320.0140.00716.63
7.2.310.0050.01116.52
7.2.300.0170.00016.89
7.2.290.0160.00416.77
7.2.80.0070.00716.86
7.2.60.0090.00316.70
7.2.00.0060.00919.21
7.1.200.0040.00415.46
7.1.100.0060.00317.85
7.1.70.0000.00717.34
7.1.60.0090.01619.46
7.1.50.0030.01616.63
7.1.00.0070.07022.25
7.0.200.0000.00716.88
7.0.140.0170.06021.97
7.0.110.0100.08019.94
7.0.100.0170.07720.08
7.0.90.0100.05319.98
7.0.80.0130.04319.98
7.0.70.0130.07720.07
7.0.60.0070.08319.94
7.0.50.0070.09019.88
7.0.40.0030.07319.83
7.0.30.0130.08019.88
7.0.20.0100.07719.73
7.0.10.0030.08719.75
7.0.00.0070.08319.78
5.6.280.0070.07021.14
5.6.260.0070.05320.68
5.6.250.0030.05020.89
5.6.240.0030.08720.70
5.6.230.0030.08720.68
5.6.220.0130.07720.62
5.6.210.0130.08320.68
5.6.200.0100.07320.66
5.6.190.0070.07720.65
5.6.180.0100.07320.55
5.6.170.0130.07020.69
5.6.160.0100.06320.64
5.6.150.0100.08320.64
5.6.140.0170.07720.60
5.6.130.0130.06020.61
5.6.120.0170.07020.61
5.6.110.0100.08020.57
5.6.100.0030.08320.58
5.6.90.0100.07320.83
5.6.80.0100.07319.94
5.6.70.0030.07720.02
5.6.60.0070.08020.22
5.6.50.0170.06719.93
5.6.40.0200.06720.06
5.6.30.0130.07720.21
5.6.20.0070.04320.03
5.6.10.0070.04019.96
5.6.00.0100.07320.05
5.5.380.0030.06717.56
5.5.370.0100.07717.56
5.5.360.0030.08017.49
5.5.350.0070.06317.45
5.5.340.0000.08017.98
5.5.330.0130.07018.09
5.5.320.0170.07317.87
5.5.310.0070.04718.13
5.5.300.0070.06018.10
5.5.290.0070.08017.84
5.5.280.0030.08718.25
5.5.270.0130.07718.25
5.5.260.0170.06718.15
5.5.250.0170.06017.67
5.5.240.0230.05317.27
5.5.230.0100.07017.25
5.5.220.0170.06317.22
5.5.210.0070.07717.23
5.5.200.0170.07317.25
5.5.190.0100.07017.51
5.5.180.0070.07317.20
5.5.160.0030.04317.36
5.5.150.0100.06717.51
5.5.140.0030.08017.48
5.5.130.0030.05017.60
5.5.120.0130.07317.51
5.5.110.0130.07017.51
5.5.100.0100.07317.12
5.5.90.0130.07017.41
5.5.80.0130.06017.00
5.5.70.0070.07317.40
5.5.60.0130.07317.36
5.5.50.0030.08317.10
5.5.40.0030.08017.33
5.5.30.0070.06317.26
5.5.20.0030.07317.08
5.5.10.0030.07717.13
5.5.00.0070.07717.10
5.4.450.0070.05319.53
5.4.440.0100.07319.43
5.4.430.0070.05019.27
5.4.420.0030.05719.48
5.4.410.0070.08319.20
5.4.400.0100.07319.12
5.4.390.0100.05719.08
5.4.380.0130.07319.18
5.4.370.0070.06719.03
5.4.360.0130.07018.95
5.4.350.0000.08719.13
5.4.340.0100.05319.25
5.4.320.0130.04019.10
5.4.310.0000.08319.27
5.4.300.0030.07719.30
5.4.290.0070.05719.12
5.4.280.0100.06719.00
5.4.270.0000.08318.95
5.4.260.0070.07319.11
5.4.250.0030.08019.29
5.4.240.0030.08019.07
5.4.230.0000.08019.24
5.4.220.0100.07019.00
5.4.210.0100.08319.02
5.4.200.0130.07019.11
5.4.190.0030.06319.27
5.4.180.0030.05018.94
5.4.170.0070.07018.99
5.4.160.0100.07719.00
5.4.150.0130.07719.00
5.4.140.0070.04316.42
5.4.130.0070.07016.53
5.4.120.0030.04016.32
5.4.110.0070.07316.58
5.4.100.0070.07316.24
5.4.90.0070.07316.43
5.4.80.0100.06016.57
5.4.70.0030.07316.40
5.4.60.0100.06716.16
5.4.50.0130.06716.20
5.4.40.0100.06716.41
5.4.30.0100.07316.37
5.4.20.0030.04316.16
5.4.10.0070.07316.46
5.4.00.0070.06715.65
5.3.290.0070.08714.66
5.3.280.0130.07014.52
5.3.270.0070.07314.40
5.3.260.0030.05014.66
5.3.250.0100.04014.43
5.3.240.0100.05314.45
5.3.230.0000.08014.69
5.3.220.0100.07014.39
5.3.210.0070.04314.66
5.3.200.0130.06314.41
5.3.190.0000.08714.39
5.3.180.0100.07014.46
5.3.170.0130.06714.63
5.3.160.0070.07314.55
5.3.150.0130.06714.58
5.3.140.0070.08014.49
5.3.130.0070.08014.48
5.3.120.0030.07314.43
5.3.110.0170.06314.54
5.3.100.0100.06713.93
5.3.90.0130.06313.90
5.3.80.0100.04013.91
5.3.70.0130.06713.89
5.3.60.0130.07014.06
5.3.50.0100.06713.96
5.3.40.0100.06013.89
5.3.30.0070.07013.70
5.3.20.0070.05313.70
5.3.10.0100.05713.73
5.3.00.0030.07313.48
5.2.170.0100.05311.08
5.2.160.0030.06011.09
5.2.150.0100.05711.08
5.2.140.0100.05711.08
5.2.130.0100.05710.98
5.2.120.0130.05011.04
5.2.110.0100.05311.11
5.2.100.0000.06711.01
5.2.90.0000.04711.26
5.2.80.0070.06011.16
5.2.70.0030.06011.00
5.2.60.0030.05711.21
5.2.50.0070.05710.95
5.2.40.0030.02310.93
5.2.30.0030.05310.94
5.2.20.0070.02710.75
5.2.10.0000.03010.86
5.2.00.0030.03310.62
5.1.60.0000.0239.95
5.1.50.0030.0239.88
5.1.40.0000.0279.91
5.1.30.0030.05710.41
5.1.20.0000.03010.20
5.1.10.0000.03010.00
5.1.00.0070.01710.02
5.0.50.0030.0179.87
5.0.40.0000.0209.87
5.0.30.0000.0409.87
5.0.20.0000.0279.87
5.0.10.0030.0339.87
5.0.00.0030.0439.87
4.4.90.0030.0339.87
4.4.80.0070.0239.87
4.4.70.0000.0179.87
4.4.60.0070.0109.87
4.4.50.0000.0179.87
4.4.40.0000.0239.87
4.4.30.0030.0139.87
4.4.20.0000.0179.87
4.4.10.0000.0179.87
4.4.00.0000.0279.87
4.3.110.0000.0179.87
4.3.100.0030.0279.87
4.3.90.0000.0139.87
4.3.80.0000.0239.87
4.3.70.0000.0209.87
4.3.60.0000.0179.87
4.3.50.0030.0139.87
4.3.40.0000.0239.87
4.3.30.0030.0139.87
4.3.20.0030.0279.87
4.3.10.0000.0209.87
4.3.00.0000.0179.87

preferences:
46.2 ms | 401 KiB | 5 Q