3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime(); $first = clone $date->modify('first day of this month'); $last = clone $date->modify('last day of this month'); echo $first->format('y-m-d') . PHP_EOL; echo $last->format('y-m-d') . PHP_EOL;

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.0070.01418.52
8.3.50.0120.00318.18
8.3.40.0130.00318.82
8.3.30.0100.00718.89
8.3.20.0050.00320.34
8.3.10.0040.00420.61
8.3.00.0030.00321.77
8.2.180.0070.01116.75
8.2.170.0090.00622.96
8.2.160.0070.01322.21
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.94
8.2.120.0040.00426.35
8.2.110.0090.00022.38
8.2.100.0120.00017.80
8.2.90.0000.00819.30
8.2.80.0000.00817.97
8.2.70.0050.00317.88
8.2.60.0000.01017.93
8.2.50.0120.00018.09
8.2.40.0000.00720.56
8.2.30.0040.00419.44
8.2.20.0030.00617.86
8.2.10.0070.00018.10
8.2.00.0070.00018.12
8.1.280.0090.00625.92
8.1.270.0000.00822.20
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0050.00522.23
8.1.230.0070.00417.71
8.1.220.0030.00617.76
8.1.210.0000.00818.77
8.1.200.0060.00317.61
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0140.00018.55
8.1.160.0000.00820.74
8.1.150.0040.00419.00
8.1.140.0030.00519.66
8.1.130.0000.00717.83
8.1.120.0050.00317.75
8.1.110.0000.00717.58
8.1.100.0060.00317.71
8.1.90.0050.00317.73
8.1.80.0000.00717.66
8.1.70.0000.00717.70
8.1.60.0000.00817.75
8.1.50.0040.00417.61
8.1.40.0040.00417.70
8.1.30.0080.00017.90
8.1.20.0040.00417.65
8.1.10.0040.00417.79
8.1.00.0000.00817.75
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0040.00418.49
8.0.270.0080.00017.28
8.0.260.0030.00517.39
8.0.250.0070.00017.28
8.0.240.0040.00417.21
8.0.230.0000.00717.17
8.0.220.0030.00317.05
8.0.210.0050.00317.15
8.0.200.0030.00317.19
8.0.190.0000.00717.25
8.0.180.0040.00417.20
8.0.170.0060.00317.21
8.0.160.0070.00017.25
8.0.150.0040.00416.96
8.0.140.0050.00317.10
8.0.130.0090.00013.55
8.0.120.0000.00817.13
8.0.110.0000.00717.20
8.0.100.0000.00717.15
8.0.90.0040.00417.01
8.0.80.0090.00717.10
8.0.70.0040.00417.09
8.0.60.0000.00716.96
8.0.50.0000.00717.14
8.0.30.0120.00817.14
8.0.20.0120.00817.45
8.0.10.0000.00817.23
8.0.00.0080.00917.02
7.4.330.0030.00316.89
7.4.320.0060.00016.73
7.4.300.0060.00016.61
7.4.290.0000.00716.74
7.4.280.0070.00016.57
7.4.270.0070.00316.72
7.4.260.0070.00216.71
7.4.250.0040.00416.63
7.4.240.0000.00716.71
7.4.230.0030.00316.76
7.4.220.0120.00616.69
7.4.210.0040.01016.77
7.4.200.0000.00716.69
7.4.160.0110.00716.83
7.4.150.0110.00817.40
7.4.140.0110.00917.86
7.4.130.0090.00816.63
7.4.120.0100.00916.68
7.4.110.0090.01216.70
7.4.100.0090.00916.64
7.4.90.0130.00316.48
7.4.80.0180.00419.39
7.4.70.0070.01016.77
7.4.60.0150.00316.63
7.4.50.0050.00516.80
7.4.40.0120.00916.43
7.4.30.0100.00716.55
7.4.00.0080.00015.07
7.3.330.0020.00213.22
7.3.320.0050.00013.14
7.3.310.0070.00016.38
7.3.300.0030.00316.35
7.3.290.0030.00316.34
7.3.280.0070.01216.37
7.3.270.0100.00717.40
7.3.260.0210.02516.37
7.3.250.0090.00716.52
7.3.240.0100.00716.72
7.3.230.0040.01516.39
7.3.210.0100.00716.71
7.3.200.0060.01616.67
7.3.190.0070.01016.64
7.3.180.0080.00916.61
7.3.170.0060.01216.74
7.3.160.0060.01216.63
7.3.120.0130.00314.95
7.3.110.0060.00914.67
7.3.100.0100.00715.13
7.3.90.0090.00614.89
7.3.80.0000.01014.83
7.3.70.0040.00814.72
7.3.60.0030.01014.87
7.3.50.0060.00915.01
7.3.40.0110.00014.94
7.3.30.0070.00314.91
7.3.20.0070.01016.90
7.3.10.0120.00616.70
7.3.00.0060.00916.49
7.2.330.0090.00917.04
7.2.320.0190.00616.68
7.2.310.0000.01616.91
7.2.300.0140.00316.69
7.2.290.0030.01216.88
7.2.240.0100.00714.92
7.2.230.0170.00015.36
7.2.220.0040.00715.28
7.2.210.0050.00514.74
7.2.200.0030.00915.18
7.2.190.0100.00615.08
7.2.180.0070.00715.24
7.2.170.0120.00615.29
7.2.160.0060.00615.15
7.2.150.0030.01217.20
7.2.140.0090.00617.22
7.2.130.0040.01117.22
7.2.120.0080.00417.14
7.2.110.0060.00617.15
7.2.100.0000.01717.15
7.2.90.0100.00516.98
7.2.80.0140.00517.14
7.2.70.0130.00317.23
7.2.60.0040.01217.11
7.2.50.0110.00716.83
7.2.40.0070.00716.96
7.2.30.0100.01017.05
7.2.20.0170.00717.05
7.2.10.0160.00017.09
7.2.00.0040.00918.21
7.1.330.0060.01015.75
7.1.320.0030.01215.90
7.1.310.0040.00415.62
7.1.300.0060.00915.86
7.1.290.0040.00815.64
7.1.280.0090.00615.94
7.1.270.0040.00416.02
7.1.260.0070.01015.55
7.1.250.0110.00815.75
7.1.200.0060.00615.83
7.1.100.0110.00618.38
7.1.70.0000.01617.19
7.1.60.0030.02019.24
7.1.50.0030.01016.86
7.1.00.0000.08022.54
7.0.200.0130.01014.71
7.0.60.0370.05720.04
7.0.50.0170.08017.87
7.0.40.0070.04320.08
7.0.30.0430.06720.02
7.0.20.0270.07720.08
7.0.10.0070.08720.00
7.0.00.0130.05320.29
5.6.280.0000.05321.11
5.6.210.0130.08020.75
5.6.200.0100.07718.17
5.6.190.0070.06020.60
5.6.180.0300.05720.48
5.6.170.0330.04720.44
5.6.160.0030.09020.47
5.6.150.0030.04018.12
5.6.140.0000.04718.18
5.6.130.0000.05318.15
5.6.120.0130.08020.98
5.6.110.0270.07021.11
5.6.100.0000.04320.97
5.6.90.0070.08320.96
5.6.80.0030.08720.42
5.5.350.0270.07720.41
5.5.340.0030.08717.93
5.5.330.0130.03720.29
5.5.320.0170.04020.32
5.5.310.0370.04720.43
5.5.300.0030.08017.97
5.5.290.0070.04317.91
5.5.280.0170.07320.65
5.5.270.0200.07020.85
5.5.260.0070.08320.78
5.5.250.0070.04020.46
5.5.240.0100.07020.14

preferences:
55.74 ms | 401 KiB | 5 Q