3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new DateTime('2 weeks ago'); test->format('Y-m-d');

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.00718.68
8.3.50.0070.01222.98
8.3.40.0150.00019.21
8.3.30.0110.00419.26
8.3.20.0000.00820.34
8.3.10.0070.00023.66
8.3.00.0000.00819.51
8.2.180.0120.00318.54
8.2.170.0090.00622.96
8.2.160.0040.01220.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.23
8.2.110.0050.00522.16
8.2.100.0000.01019.02
8.1.280.0070.01425.92
8.1.270.0060.00323.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00018.67
8.1.230.0040.00418.82
5.4.320.0070.04112.50
5.4.310.0110.04412.49
5.4.300.0060.04512.50
5.4.290.0090.03812.49
5.4.280.0110.03012.39
5.4.270.0070.03512.39
5.4.260.0060.03712.39
5.4.250.0040.04212.39
5.4.240.0070.03812.39
5.4.230.0070.03612.39
5.4.220.0030.03812.39
5.4.210.0050.03612.38
5.4.200.0060.03712.39
5.4.190.0070.03412.38
5.4.180.0050.03812.38
5.4.170.0060.03512.39
5.4.160.0080.03312.38
5.4.150.0060.03412.38
5.4.140.0070.03512.07
5.4.130.0070.03412.05
5.4.120.0060.03412.02
5.4.110.0040.03712.02
5.4.100.0080.03312.02
5.4.90.0070.03512.01
5.4.80.0070.03612.01
5.4.70.0070.03412.01
5.4.60.0050.03512.01
5.4.50.0050.03712.00
5.4.40.0060.03612.00
5.4.30.0080.03711.99
5.4.20.0070.03511.98
5.4.10.0080.03211.99
5.4.00.0080.03411.48
5.3.290.0050.04412.80
5.3.280.0070.03612.71
5.3.270.0070.04312.72
5.3.260.0080.04312.72
5.3.250.0060.04212.72
5.3.240.0050.03912.72
5.3.230.0070.05012.71
5.3.220.0040.04512.68
5.3.210.0100.03912.68
5.3.200.0070.03712.68
5.3.190.0050.03912.68
5.3.180.0110.03412.68
5.3.170.0060.03712.67
5.3.160.0060.04812.68
5.3.150.0090.04012.67
5.3.140.0080.04312.66
5.3.130.0050.04112.66
5.3.120.0060.04612.66
5.3.110.0020.05012.66
5.3.100.0090.04812.11
5.3.90.0060.03612.09
5.3.80.0080.03312.07
5.3.70.0040.03712.08
5.3.60.0090.03712.07
5.3.50.0080.03612.00
5.3.40.0050.04012.00
5.3.30.0120.04111.95
5.3.20.0090.04311.72
5.3.10.0050.04711.70
5.3.00.0030.04011.68
5.2.170.0030.0329.18
5.2.160.0060.0299.18
5.2.150.0050.0389.18
5.2.140.0080.0269.18
5.2.130.0040.0319.14
5.2.120.0070.0319.14
5.2.110.0030.0319.14
5.2.100.0070.0289.14
5.2.90.0030.0319.14
5.2.80.0030.0329.14
5.2.70.0050.0319.14
5.2.60.0040.0319.09
5.2.50.0080.0269.06
5.2.40.0070.0269.04
5.2.30.0040.0319.01
5.2.20.0020.0329.00
5.2.10.0040.0288.93
5.2.00.0020.0318.78
5.1.60.0080.0238.07
5.1.50.0020.0268.07
5.1.40.0070.0258.05
5.1.30.0050.0258.39
5.1.20.0080.0228.42
5.1.10.0040.0278.15
5.1.00.0070.0228.14
5.0.50.0030.0216.62
5.0.40.0030.0196.48
5.0.30.0030.0316.29
5.0.20.0040.0186.26
5.0.10.0060.0176.24
5.0.00.0050.0296.23
4.4.90.0050.0134.78
4.4.80.0030.0154.76
4.4.70.0050.0134.75
4.4.60.0030.0154.75
4.4.50.0050.0194.77
4.4.40.0050.0294.71
4.4.30.0010.0174.76
4.4.20.0000.0194.85
4.4.10.0000.0214.84
4.4.00.0050.0254.76
4.3.110.0070.0124.66
4.3.100.0030.0144.66
4.3.90.0030.0144.63
4.3.80.0050.0224.59
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0030.0153.29
4.3.20.0010.0173.26
4.3.10.0040.0133.22
4.3.00.0000.02018.23

preferences:
37.49 ms | 401 KiB | 5 Q