3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $twoDaysAgo1 = new DateTime('-2 days'); $twoDaysAgo2 = new DateTime('-172800 seconds'); $twoDaysAgo3 = new DateTime('@' . ($now->getTimestamp() - 172800)); vardump($twoDaysAgo1->getTimestamp()); vardump($twoDaysAgo2->getTimestamp()); vardump($twoDaysAgo3->getTimestamp());

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.40.0070.00718.88
8.3.30.0070.00719.21
8.3.20.0070.00020.16
8.3.10.0070.00023.52
8.3.00.0000.00819.55
8.2.170.0140.00022.96
8.2.160.0100.00320.24
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.38
8.2.110.0060.00322.34
8.2.100.0090.00318.00
8.2.90.0050.00319.34
8.2.80.0040.00418.00
8.2.70.0090.00017.75
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0030.00618.14
8.2.20.0050.00218.02
8.2.10.0000.00718.22
8.2.00.0030.00517.92
8.1.270.0050.00323.92
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0040.00819.38
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.63
8.1.190.0110.00017.48
8.1.180.0000.00818.10
8.1.170.0080.00420.56
8.1.160.0000.00722.05
8.1.150.0000.00718.86
8.1.140.0000.00717.55
8.1.130.0000.00717.97
8.1.120.0020.00517.73
8.1.110.0070.00017.68
8.1.100.0030.00417.64
8.1.90.0000.01017.64
8.1.80.0000.00717.68
8.1.70.0030.00517.64
8.1.60.0000.00717.78
8.1.50.0000.00817.66
8.1.40.0050.00317.62
8.1.30.0060.00317.86
8.1.20.0080.00017.88
8.1.10.0040.00417.79
8.1.00.0060.00317.68
8.0.300.0080.00018.77
8.0.290.0040.00417.13
8.0.280.0070.00018.61
8.0.270.0000.00717.34
8.0.260.0000.00618.52
8.0.250.0060.00017.27
8.0.240.0040.00417.23
8.0.230.0000.00717.31
8.0.220.0070.00017.12
8.0.210.0040.00417.14
8.0.200.0000.00617.26
8.0.190.0000.01017.30
8.0.180.0040.00417.29
8.0.170.0030.00517.25
8.0.160.0050.00317.26
8.0.150.0040.00417.21
8.0.140.0040.00417.23
8.0.130.0000.00513.55
8.0.120.0080.00017.19
8.0.110.0000.00717.25
8.0.100.0000.00717.20
8.0.90.0040.00417.08
8.0.80.0090.00617.21
8.0.70.0070.00017.15
8.0.60.0070.00017.25
8.0.50.0000.00817.23
8.0.30.0130.01317.45
8.0.20.0160.00817.54
8.0.10.0040.00417.27
8.0.00.0100.00716.98
7.4.330.0030.00315.15
7.4.320.0090.00016.62
7.4.300.0030.00316.81
7.4.290.0050.00316.74
7.4.280.0040.00416.83
7.4.270.0030.00316.85
7.4.260.0070.00016.71
7.4.250.0040.00416.71
7.4.240.0020.00516.70
7.4.230.0030.00316.74
7.4.220.0130.01316.80
7.4.210.0090.01316.93
7.4.200.0000.00916.86
7.4.160.0120.00916.78
7.4.150.0120.00617.40
7.4.140.0090.01617.86
7.4.130.0110.00616.81
7.4.120.0110.00616.88
7.4.110.0030.01816.80
7.4.100.0030.01316.79
7.4.90.0090.00816.73
7.4.80.0130.01419.39
7.4.70.0120.01216.82
7.4.60.0160.00616.66
7.4.50.0060.00316.70
7.4.40.0040.01216.85
7.4.30.0070.01017.00
7.4.00.0060.01015.03
7.3.330.0030.00313.18
7.3.320.0000.00513.22
7.3.310.0070.00016.55
7.3.300.0000.00716.48
7.3.290.0050.00916.45
7.3.280.0090.00916.51
7.3.270.0060.01117.40
7.3.260.0110.00616.74
7.3.250.0140.00616.71
7.3.240.0200.00316.67
7.3.230.0100.00616.74
7.3.210.0170.00016.61
7.3.200.0070.01119.39
7.3.190.0120.00916.87
7.3.180.0080.00816.57
7.3.170.0030.01616.64
7.3.160.0040.01216.57
7.3.120.0060.00915.02
7.3.110.0070.01015.00
7.3.100.0000.01415.00
7.3.90.0110.00415.18
7.3.80.0060.00614.77
7.3.70.0110.00414.73
7.3.60.0030.01014.90
7.3.50.0060.00615.20
7.3.40.0070.00315.13
7.3.30.0080.00415.06
7.3.20.0070.00316.78
7.3.10.0040.01116.91
7.3.00.0100.00616.82
7.2.330.0150.00316.86
7.2.320.0030.01316.71
7.2.310.0090.00616.97
7.2.300.0060.01016.85
7.2.290.0110.01116.88
7.2.240.0070.01114.94
7.2.230.0030.01315.32
7.2.220.0000.01615.43
7.2.210.0130.00315.19
7.2.200.0000.01515.46
7.2.190.0100.00715.14
7.2.180.0070.01115.35
7.2.170.0070.01015.37
7.2.160.0060.00315.26
7.2.150.0070.00416.86
7.2.140.0080.00417.11
7.2.130.0120.00617.00
7.2.120.0030.01317.04
7.2.110.0070.01017.03
7.2.100.0080.01116.95
7.2.90.0120.00817.00
7.2.80.0090.00917.02
7.2.70.0050.01117.06
7.2.60.0110.00517.18
7.2.50.0070.00817.19
7.2.40.0110.00817.13
7.2.30.0080.01217.09
7.2.20.0100.00817.20
7.2.10.0090.00717.25
7.2.00.0070.00717.91
7.1.330.0070.01015.88
7.1.320.0110.00315.84
7.1.310.0070.00715.97
7.1.300.0030.01015.84
7.1.290.0120.00415.82
7.1.280.0040.00915.58
7.1.270.0080.00815.93
7.1.260.0030.01016.03
7.1.250.0060.00615.64
7.1.230.0080.00815.79
7.1.220.0130.00515.71
7.1.210.0070.00815.91
7.1.200.0070.00716.05
7.1.190.0100.00215.74
7.1.180.0130.00615.65
7.1.170.0120.00616.08
7.1.160.0100.00815.68
7.1.150.0100.01015.75
7.1.140.0060.00915.94
7.1.130.0060.00615.75
7.1.120.0110.00715.93
7.1.110.0080.00715.90
7.1.100.0060.00917.06
7.1.90.0090.00915.73
7.1.80.0070.00715.75
7.1.70.0070.00616.65
7.1.60.0130.00817.55
7.1.50.0120.01216.48
7.1.40.0000.01215.90
7.1.30.0110.00715.94
7.1.20.0120.00616.04
7.1.10.0140.00015.98
7.1.00.0060.04119.23
7.0.310.0120.00615.63
7.0.300.0090.00615.24
7.0.290.0100.01015.20
7.0.280.0070.00715.39
7.0.270.0130.00315.59
7.0.260.0060.00915.44
7.0.250.0100.00315.36
7.0.240.0050.01115.48
7.0.230.0090.00615.39
7.0.220.0100.00815.39
7.0.210.0090.00615.57
7.0.200.0100.00316.19
7.0.190.0100.00815.54
7.0.180.0060.01015.34
7.0.170.0060.00615.59
7.0.160.0140.00015.47
7.0.150.0060.00615.57
7.0.140.0120.03718.83
7.0.130.0130.00415.39
7.0.120.0150.00015.66
7.0.110.0090.00815.67
7.0.100.0130.00315.48
7.0.90.0140.00315.65
7.0.80.0080.00815.48
7.0.70.0130.00315.57
7.0.60.0100.03517.72
7.0.50.0110.03316.68
7.0.40.0090.02516.81
7.0.30.0330.03516.89
7.0.20.0220.04116.90
7.0.10.0110.04016.90
7.0.00.0090.04716.72
5.6.380.0100.00914.42
5.6.370.0120.00314.25
5.6.360.0170.00014.36
5.6.350.0100.00714.42
5.6.340.0090.00414.30
5.6.330.0120.00014.53
5.6.320.0160.00014.41
5.6.310.0110.00414.73
5.6.300.0100.00714.33
5.6.290.0080.00414.42
5.6.280.0040.04217.61
5.6.270.0040.00914.53
5.6.260.0140.00414.40
5.6.250.0070.00714.25
5.6.240.0130.00014.39
5.6.230.0070.00714.46
5.6.220.0150.00014.23
5.6.210.0080.04217.65
5.6.200.0110.04016.26
5.6.190.0090.02517.64
5.6.180.0200.03117.40
5.6.170.0180.02017.31
5.6.160.0130.04317.48
5.6.150.0100.03816.34
5.6.140.0140.03916.31
5.6.130.0130.03816.43
5.6.120.0150.03517.79
5.6.110.0120.04317.83
5.6.100.0100.02517.64
5.6.90.0110.02617.78
5.6.80.0140.03617.23
5.6.70.1850.02217.34
5.6.60.0100.00314.04
5.6.50.0150.00414.54
5.6.40.0090.00614.25
5.6.30.0090.00614.30
5.6.20.0140.00014.43
5.6.10.0100.00614.24
5.6.00.0090.00914.41
5.5.380.0070.00411.25
5.5.370.0070.00711.35
5.5.360.0100.00511.07
5.5.350.0180.03615.88
5.5.340.0100.03314.42
5.5.330.0060.04615.77
5.5.320.0190.04115.83
5.5.310.0190.02915.73
5.5.300.0070.03914.59
5.5.290.0070.03514.56
5.5.280.0060.02315.98
5.5.270.0110.04316.04
5.5.260.0100.04215.86
5.5.250.0060.04415.89
5.5.240.0210.03015.71
5.5.230.0130.00011.22
5.5.220.0140.00311.09
5.5.210.0110.00311.27
5.5.200.0040.00711.13
5.5.190.0060.00611.27
5.5.180.0070.00411.28
5.5.170.0100.00414.35
5.5.160.0080.00811.11
5.5.150.0040.00911.29
5.5.140.0120.00011.35
5.5.130.0100.00311.09
5.5.120.0050.00811.18
5.5.110.0120.00011.11
5.5.100.0070.00711.14
5.5.90.0070.00311.07
5.5.80.0040.00811.18
5.5.70.0090.00311.19
5.5.60.0070.00711.02
5.5.50.0070.00311.24
5.5.40.0090.00311.33
5.5.30.0070.00711.20
5.5.20.0080.00310.95
5.5.10.0100.00011.16
5.5.00.0110.00411.16
5.4.450.0580.04215.19
5.4.440.0430.03315.34
5.4.430.0400.03515.14
5.4.420.0490.02915.29
5.4.410.0400.03215.31
5.4.400.0160.03315.18
5.4.390.0440.03014.94
5.4.380.0050.03115.19
5.4.370.0450.03015.14
5.4.360.0170.03515.08
5.4.350.0370.03215.13
5.4.340.0070.01811.46
5.4.330.0110.00011.19
5.4.320.0080.02711.78
5.4.310.0080.02111.80
5.4.300.0140.02111.67
5.4.290.0080.02611.85
5.4.280.0080.02911.58
5.4.270.0070.02811.65
5.4.260.0060.02411.67
5.4.250.0050.02411.71
5.4.240.0090.02011.64
5.4.230.0080.02011.74
5.4.220.0110.02611.54
5.4.210.0060.02811.71
5.4.200.0070.03211.71
5.4.190.0090.02211.71
5.4.180.0090.02111.59
5.4.170.0080.02111.68
5.4.160.0080.02111.71
5.4.150.0070.02111.71
5.4.140.0070.02111.52
5.4.130.0070.02011.50
5.4.120.0060.02511.49
5.4.110.0050.02111.48
5.4.100.0060.02011.45
5.4.90.0110.01611.50
5.4.80.0080.02811.51
5.4.70.0110.01911.48
5.4.60.0090.01911.37
5.4.50.0060.02211.60
5.4.40.0070.02111.41
5.4.30.0090.02111.54
5.4.20.0060.02211.45
5.4.10.0100.01711.51
5.4.00.0080.01911.22
5.3.290.0100.02511.71
5.3.280.0090.01911.71
5.3.270.0070.02211.72
5.3.260.0090.02011.78
5.3.250.0080.01911.67
5.3.240.0060.02211.72
5.3.230.0110.01811.68
5.3.220.0050.02011.65
5.3.210.0080.02211.65
5.3.200.0060.02311.65
5.3.190.0050.02411.66
5.3.180.0080.02311.69
5.3.170.0050.02211.71
5.3.160.0100.01611.72
5.3.150.0050.02211.72
5.3.140.0040.02211.73
5.3.130.0070.02211.63
5.3.120.0080.02111.63
5.3.110.0070.02111.66
5.3.100.0060.02011.42
5.3.90.0080.02011.40
5.3.80.0080.01911.34
5.3.70.0040.02311.35
5.3.60.0040.02311.36
5.3.50.0070.02111.31
5.3.40.0060.02211.31
5.3.30.0090.01911.30
5.3.20.0070.02011.17
5.3.10.0080.02111.15
5.3.00.0070.02411.15
5.2.170.0060.0199.90
5.2.160.0040.0199.90
5.2.150.0070.0189.90
5.2.140.0050.0219.90
5.2.130.0050.0239.88
5.2.120.0070.0199.88
5.2.110.0090.0199.88
5.2.100.0060.0179.88
5.2.90.0060.0169.88
5.2.80.0060.0199.88
5.2.70.0050.0169.88
5.2.60.0020.0209.86
5.2.50.0090.0189.84
5.2.40.0040.0189.83
5.2.30.0050.0199.82
5.2.20.0050.0179.81
5.2.10.0070.0169.77
5.2.00.0060.0159.70
5.1.60.0040.0139.34
5.1.50.0050.0149.34
5.1.40.0030.0159.33
5.1.30.0050.0159.50
5.1.20.0030.0169.51
5.1.10.0050.0149.38
5.1.00.0020.0179.38
5.0.50.0050.0118.62
5.0.40.0060.0098.54
5.0.30.0040.0188.45
5.0.20.0030.0148.44
5.0.10.0050.0108.43
5.0.00.0040.0208.43
4.4.90.0040.0097.70
4.4.80.0030.0127.68
4.4.70.0040.0097.68
4.4.60.0040.0117.68
4.4.50.0040.0097.69
4.4.40.0040.0147.66
4.4.30.0030.0087.69
4.4.20.0030.0107.73
4.4.10.0020.0107.73
4.4.00.0050.0127.69
4.3.110.0020.0107.64
4.3.100.0040.0137.64
4.3.90.0020.0087.62
4.3.80.0010.0157.60
4.3.70.0030.0107.62
4.3.60.0010.0117.62
4.3.50.0050.0127.62
4.3.40.0040.0127.58
4.3.30.0020.0136.95
4.3.20.0020.0106.94
4.3.10.0010.0116.91
4.3.00.0010.0138.84

preferences:
45.2 ms | 400 KiB | 5 Q