3v4l.org

run code in 300+ PHP versions simultaneously
<?php $beg = new DateTime(); $end = clone $beg; print PHP_EOL.$beg->format('Y-m-d').PHP_EOL; print PHP_EOL.$end->format('Y-m-d').PHP_EOL; $end->modify('-1 day'); $end->modify('last year'); $beg->modify('first day of this month'); $end->modify('last day of this month'); print PHP_EOL.$beg->format('Y-m-d').PHP_EOL; print PHP_EOL.$end->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.0090.00616.63
8.3.50.0080.01122.04
8.3.40.0110.01118.79
8.3.30.0130.00718.79
8.3.20.0080.00019.97
8.3.10.0030.00623.50
8.3.00.0000.00819.79
8.2.180.0120.00317.13
8.2.170.0110.00322.96
8.2.160.0100.00320.38
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0050.00319.41
8.2.120.0000.00826.35
8.2.110.0000.01022.11
8.2.100.0040.00817.93
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0040.00418.16
8.2.50.0040.00418.07
8.2.40.0000.00822.28
8.2.30.0070.00020.56
8.2.20.0000.00818.01
8.2.10.0040.00418.20
8.2.00.0000.00718.30
8.1.280.0110.00425.92
8.1.270.0080.00020.50
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0050.00524.05
8.1.230.0060.00617.84
8.1.220.0000.00817.77
8.1.210.0000.00918.77
8.1.200.0090.00017.61
8.1.190.0060.00317.60
8.1.180.0060.00318.10
8.1.170.0030.00518.77
8.1.160.0000.00820.84
8.1.150.0000.00718.99
8.1.140.0040.00419.67
8.1.130.0070.00017.78
8.1.120.0000.00717.75
8.1.110.0000.00717.68
8.1.100.0000.00817.69
8.1.90.0060.00317.73
8.1.80.0030.00617.59
8.1.70.0000.00817.64
8.1.60.0000.00817.77
8.1.50.0040.00417.68
8.1.40.0000.00817.61
8.1.30.0080.00017.85
8.1.20.0030.00617.87
8.1.10.0030.00617.68
8.1.00.0000.00717.73
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0030.00318.50
8.0.270.0000.00717.36
8.0.260.0000.00817.43
8.0.250.0030.00317.20
8.0.240.0000.00717.14
8.0.230.0040.00417.24
8.0.220.0000.00717.05
8.0.210.0040.00417.20
8.0.200.0000.00717.21
8.0.190.0030.01017.29
8.0.180.0040.00417.21
8.0.170.0110.00017.26
8.0.160.0030.00317.23
8.0.150.0000.00817.07
8.0.140.0040.00417.00
8.0.130.0030.00313.54
8.0.120.0060.00317.20
8.0.110.0000.00717.23
8.0.100.0040.00417.06
8.0.90.0040.00417.16
8.0.80.0060.00917.22
8.0.70.0040.00417.04
8.0.60.0070.00016.99
8.0.50.0040.00417.05
8.0.30.0090.01217.28
8.0.20.0140.01617.43
8.0.10.0040.00417.11
8.0.00.0070.01316.83
7.4.330.0020.00216.77
7.4.320.0030.00316.79
7.4.300.0060.00016.63
7.4.290.0070.00016.59
7.4.280.0040.00416.69
7.4.270.0030.00716.62
7.4.260.0030.00316.63
7.4.250.0000.00716.61
7.4.240.0020.00516.71
7.4.230.0040.00416.75
7.4.220.0070.01116.67
7.4.210.0060.00916.79
7.4.200.0030.00316.77
7.4.160.0120.00416.58
7.4.150.0130.00317.40
7.4.140.0080.01117.86
7.4.130.0120.00516.82
7.4.120.0120.01016.78
7.4.110.0100.00716.61
7.4.100.0100.00716.75
7.4.90.0100.00716.80
7.4.80.0090.00919.39
7.4.70.0060.01016.65
7.4.60.0090.00616.64
7.4.50.0070.01116.75
7.4.40.0000.01716.70
7.4.30.0060.01216.59
7.4.00.0100.00315.14
7.3.330.0070.00013.32
7.3.320.0060.00013.28
7.3.310.0000.00716.56
7.3.300.0030.00316.33
7.3.290.0090.00716.47
7.3.280.0100.00916.47
7.3.270.0170.00017.40
7.3.260.0120.00816.66
7.3.250.0110.00816.67
7.3.240.0080.00916.69
7.3.230.0160.00616.78
7.3.210.0130.00316.66
7.3.200.0030.01416.43
7.3.190.0070.01116.72
7.3.180.0100.00616.67
7.3.170.0130.00616.75
7.3.160.0090.00616.64
7.2.330.0170.00716.75
7.2.320.0110.00716.66
7.2.310.0110.01116.81
7.2.300.0030.01617.04
7.2.290.0030.02016.55
7.2.60.0070.00716.88
7.2.00.0100.00719.60
7.1.200.0030.01016.03
7.1.100.0090.00318.31
7.1.70.0000.00817.43
7.1.60.0110.01419.52
7.1.50.0000.01217.05
7.1.00.0070.07322.30
7.0.200.0000.00916.92
7.0.60.0100.07320.02
7.0.50.0030.05317.86
7.0.40.0100.04020.31
7.0.30.0370.04320.12
7.0.20.0300.08020.18
7.0.10.0100.08020.33
7.0.00.0070.06020.19
5.6.280.0000.03321.09
5.6.210.0100.05320.51
5.6.200.0030.04718.12
5.6.190.0070.07020.41
5.6.180.0200.04720.33
5.6.170.0300.05020.51
5.6.160.0030.04320.49
5.6.150.0070.08018.18
5.6.140.0000.06318.11
5.6.130.0030.06718.14
5.6.120.0130.07320.98
5.6.110.0130.07320.98
5.6.100.0300.06320.98
5.6.90.0030.08020.99
5.6.80.0070.08320.40
5.5.350.0170.07720.34
5.5.340.0130.04317.91
5.5.330.0100.04020.36
5.5.320.0500.06720.24
5.5.310.0300.07320.18
5.5.300.0130.07717.88
5.5.290.0170.07017.89
5.5.280.0070.08720.88
5.5.270.0030.04720.84
5.5.260.0030.04720.76
5.5.250.0170.08020.61
5.5.240.0270.04320.15

preferences:
47.25 ms | 401 KiB | 5 Q