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 of month'); $end->modify('last of 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.0150.00616.75
8.3.50.0060.00918.10
8.3.40.0180.00418.86
8.3.30.0110.01118.79
8.3.20.0000.00820.25
8.3.10.0040.00423.53
8.3.00.0080.00019.91
8.2.180.0090.00616.88
8.2.170.0090.00922.96
8.2.160.0090.00620.55
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.33
8.2.120.0080.00026.35
8.2.110.0060.00322.20
8.2.100.0100.00318.17
8.2.90.0000.00819.35
8.2.80.0030.00617.97
8.2.70.0040.00417.85
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00422.28
8.2.30.0070.00020.77
8.2.20.0000.00817.83
8.2.10.0070.00018.08
8.2.00.0000.00818.24
8.1.280.0070.00725.92
8.1.270.0030.00520.38
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00623.98
8.1.230.0120.00017.89
8.1.220.0040.00417.74
8.1.210.0070.00418.77
8.1.200.0050.00517.38
8.1.190.0000.00817.48
8.1.180.0050.00518.10
8.1.170.0040.00418.76
8.1.160.0000.00720.79
8.1.150.0080.00018.95
8.1.140.0080.00019.57
8.1.130.0000.00717.85
8.1.120.0070.00017.63
8.1.110.0000.00917.68
8.1.100.0040.00417.77
8.1.90.0050.00217.61
8.1.80.0080.00017.63
8.1.70.0030.00617.63
8.1.60.0030.00617.81
8.1.50.0000.00917.77
8.1.40.0000.00817.75
8.1.30.0040.00417.73
8.1.20.0060.00317.79
8.1.10.0050.00317.66
8.1.00.0000.00817.69
8.0.300.0000.00818.77
8.0.290.0050.00317.00
8.0.280.0000.00718.60
8.0.270.0000.00717.36
8.0.260.0030.00317.36
8.0.250.0000.00817.19
8.0.240.0030.00317.25
8.0.230.0080.00017.30
8.0.220.0030.00317.20
8.0.210.0020.00517.18
8.0.200.0030.00317.33
8.0.190.0000.01117.29
8.0.180.0040.00417.14
8.0.170.0040.00717.29
8.0.160.0040.00417.09
8.0.150.0000.00717.24
8.0.140.0080.00017.09
8.0.130.0060.00013.62
8.0.120.0000.00917.10
8.0.110.0000.00717.08
8.0.100.0000.00717.18
8.0.90.0040.00417.04
8.0.80.0090.00617.20
8.0.70.0000.00817.16
8.0.60.0000.00717.13
8.0.50.0000.00817.00
8.0.30.0120.00617.41
8.0.20.0090.00917.49
8.0.10.0040.00417.18
8.0.00.0080.01216.91
7.4.330.0000.00516.90
7.4.320.0030.00316.76
7.4.300.0030.00316.66
7.4.290.0000.00716.75
7.4.280.0000.00716.64
7.4.270.0030.00616.64
7.4.260.0000.00716.63
7.4.250.0080.00016.51
7.4.240.0020.00516.67
7.4.230.0070.00016.63
7.4.220.0130.01316.76
7.4.210.0000.01516.87
7.4.200.0000.00616.83
7.4.160.0070.01016.56
7.4.150.0140.00517.40
7.4.140.0100.01517.86
7.4.130.0090.00916.76
7.4.120.0150.00716.80
7.4.110.0140.00316.74
7.4.100.0100.00716.64
7.4.90.0120.01016.86
7.4.80.0090.00919.39
7.4.70.0130.00416.80
7.4.60.0060.00916.91
7.4.50.0080.00916.66
7.4.40.0070.01016.75
7.4.30.0080.00916.64
7.4.00.0090.00915.08
7.3.330.0030.00513.46
7.3.320.0030.00313.50
7.3.310.0070.00016.36
7.3.300.0030.00316.43
7.3.290.0070.00716.56
7.3.280.0120.00816.51
7.3.270.0060.01217.40
7.3.260.0140.00316.70
7.3.250.0070.01016.63
7.3.240.0090.00816.54
7.3.230.0080.00816.43
7.3.210.0070.01016.70
7.3.200.0070.01116.81
7.3.190.0130.00316.79
7.3.180.0070.01416.65
7.3.170.0060.01216.68
7.3.160.0090.01216.86
7.3.120.0030.01615.08
7.3.110.0070.00715.26
7.3.100.0080.00815.32
7.3.90.0000.01414.95
7.3.80.0120.00314.95
7.3.70.0030.00914.81
7.3.60.0100.00615.02
7.3.50.0090.00615.13
7.3.40.0040.01115.01
7.3.30.0040.01114.93
7.3.20.0060.00916.63
7.3.10.0070.00716.86
7.3.00.0070.00417.02
7.2.330.0150.00316.98
7.2.320.0040.01316.96
7.2.310.0170.00617.00
7.2.300.0040.01216.60
7.2.290.0110.01017.03
7.2.250.0110.00815.05
7.2.240.0140.00315.55
7.2.230.0000.01615.21
7.2.220.0100.00715.43
7.2.210.0130.00615.29
7.2.200.0030.00615.26
7.2.190.0060.01015.16
7.2.180.0130.00315.38
7.2.170.0000.01515.38
7.2.60.0110.00716.59
7.2.00.0120.00919.51
7.1.330.0070.00715.92
7.1.320.0100.00315.78
7.1.310.0030.01315.92
7.1.300.0080.00315.58
7.1.290.0030.01016.11
7.1.280.0070.00715.86
7.1.270.0030.01515.89
7.1.260.0070.00315.66
7.1.200.0000.01015.88
7.1.100.0040.00817.94
7.1.70.0040.00417.38
7.1.60.0140.01119.52
7.1.50.0060.00617.07
7.1.00.0100.07022.51
7.0.200.0040.00416.88
7.0.60.0030.04019.80
7.0.50.0100.06717.80
7.0.40.0100.07019.98
7.0.30.0470.06720.02
7.0.20.0270.08320.17
7.0.10.0130.08020.20
7.0.00.0070.04020.01
5.6.280.0000.03321.12
5.6.210.0030.06020.71
5.6.200.0030.05018.17
5.6.190.0130.08020.34
5.6.180.0200.04320.67
5.6.170.0500.05020.48
5.6.160.0130.07020.40
5.6.150.0000.07318.22
5.6.140.0100.07718.18
5.6.130.0100.07718.20
5.6.120.0070.07020.98
5.6.110.0100.07321.00
5.6.100.0030.04021.10
5.6.90.0130.04720.88
5.6.80.0130.05720.52
5.5.350.0230.07320.41
5.5.340.0100.07318.00
5.5.330.0100.03720.13
5.5.320.0400.05320.27
5.5.310.0300.07720.28
5.5.300.0000.06017.94
5.5.290.0100.03317.87
5.5.280.0070.07720.80
5.5.270.0130.07320.64
5.5.260.0100.07320.83
5.5.250.0100.07720.54
5.5.240.0130.03320.11

preferences:
56 ms | 401 KiB | 5 Q