3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row2['post_date'] = "2013-12-02 10:00:00"; $now = new DateTime(); $post = new DateTime($row2['post_date']); $interval = $now->diff($post); echo "Updated " . $interval->format('h') . " hours ago";

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.0110.01118.55
8.3.50.0060.01021.21
8.3.40.0110.00418.97
8.3.30.0140.00020.02
8.3.20.0090.00018.82
8.3.10.0000.00821.27
8.3.00.0000.00822.52
8.2.180.0140.00418.30
8.2.170.0090.00622.96
8.2.160.0100.00320.43
8.2.150.0050.00324.18
8.2.140.0030.00724.66
8.2.130.0000.00826.16
8.2.120.0070.00021.06
8.2.110.0070.00419.33
8.2.100.0060.00618.03
8.2.90.0080.00019.35
8.2.80.0090.00018.29
8.2.70.0030.00517.75
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0000.00918.47
8.2.30.0000.00719.32
8.2.20.0000.00717.97
8.2.10.0000.00817.93
8.2.00.0040.00417.98
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.95
8.1.230.0060.00620.91
8.1.220.0040.00418.77
8.1.210.0030.00619.09
8.1.200.0070.01117.50
8.1.190.0000.00717.65
8.1.180.0040.00418.10
8.1.170.0000.00818.77
8.1.160.0050.00319.06
8.1.150.0060.00318.79
8.1.140.0000.00717.64
8.1.130.0070.00017.89
8.1.120.0070.00017.66
8.1.110.0030.00617.53
8.1.100.0040.00417.64
8.1.90.0000.00717.72
8.1.80.0040.00417.61
8.1.70.0000.00717.63
8.1.60.0000.00817.60
8.1.50.0060.00317.57
8.1.40.0040.00417.62
8.1.30.0000.00817.70
8.1.20.0050.00317.82
8.1.10.0000.00717.63
8.1.00.0040.00417.71
8.0.300.0030.00319.88
8.0.290.0040.00417.30
8.0.280.0000.00718.50
8.0.270.0030.00317.39
8.0.260.0050.00317.01
8.0.250.0040.00417.16
8.0.240.0040.00417.06
8.0.230.0030.00317.11
8.0.220.0000.00717.07
8.0.210.0030.00317.00
8.0.200.0080.00017.12
8.0.190.0040.00417.20
8.0.180.0040.00417.14
8.0.170.0030.00617.07
8.0.160.0030.00317.00
8.0.150.0030.00317.10
8.0.140.0100.00017.06
8.0.130.0000.00513.39
8.0.120.0000.00817.07
8.0.110.0000.00816.97
8.0.100.0070.00017.10
8.0.90.0070.00017.01
8.0.80.0100.00617.14
8.0.70.0050.00316.97
8.0.60.0050.00316.92
8.0.50.0000.00716.98
8.0.30.0070.01417.14
8.0.20.0110.00817.47
8.0.10.0080.00017.14
8.0.00.0130.00516.90
7.4.330.0020.00216.70
7.4.320.0060.00016.57
7.4.300.0000.00616.55
7.4.290.0000.00716.65
7.4.280.0030.00316.55
7.4.270.0030.00316.67
7.4.260.0040.00413.32
7.4.250.0040.00416.55
7.4.240.0070.00016.73
7.4.230.0030.00316.47
7.4.220.0100.01616.68
7.4.210.0080.00816.61
7.4.200.0000.00716.48
7.4.190.0000.00716.76
7.4.160.0110.00616.66
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0090.01016.58
7.4.120.0060.01116.66
7.4.110.0030.01616.92
7.4.100.0090.00916.65
7.4.90.0130.00916.48
7.4.80.0170.00619.39
7.4.70.0130.00716.57
7.4.60.0090.00916.71
7.4.50.0070.00016.80
7.4.40.0070.00722.77
7.4.30.0070.01016.86
7.4.00.0090.00614.99
7.3.330.0000.00513.23
7.3.320.0000.00513.24
7.3.310.0060.00016.34
7.3.300.0040.00416.40
7.3.290.0070.01316.44
7.3.280.0090.01016.40
7.3.270.0060.01217.40
7.3.260.0100.01018.24
7.3.250.0090.00916.50
7.3.240.0100.00716.46
7.3.230.0070.01016.51
7.3.210.0060.01016.51
7.3.200.0060.01419.39
7.3.190.0100.00616.45
7.3.180.0160.00016.43
7.3.170.0090.00616.48
7.3.160.0060.00916.68
7.3.120.0030.01315.15
7.3.110.0060.01215.16
7.3.100.0070.00714.85
7.3.90.0110.00015.04
7.3.80.0000.01315.09
7.3.70.0150.00314.97
7.3.60.0100.00314.69
7.3.50.0030.00615.06
7.3.40.0000.01214.86
7.3.30.0030.00814.91
7.3.20.0040.00716.73
7.3.10.0060.00916.86
7.3.00.0060.00316.68
7.2.330.0080.01116.65
7.2.320.0160.00316.91
7.2.310.0130.01016.80
7.2.300.0070.01016.47
7.2.290.0130.00316.62
7.2.240.0070.01115.13
7.2.230.0000.01415.22
7.2.220.0070.01115.16
7.2.210.0000.01615.17
7.2.200.0060.00915.00
7.2.190.0060.00914.85
7.2.180.0120.00615.06
7.2.170.0090.00615.12
7.2.160.0070.00314.86
7.2.150.0040.01416.97
7.2.140.0070.00716.85
7.2.130.0120.00317.03
7.2.120.0000.01116.80
7.2.110.0000.01516.97
7.2.100.0080.00817.02
7.2.90.0030.01017.13
7.2.80.0060.00917.00
7.2.70.0110.00417.19
7.2.60.0000.01116.98
7.2.50.0000.01417.04
7.2.40.0040.01116.90
7.2.30.0060.00917.15
7.2.20.0070.00717.16
7.2.10.0080.00817.00
7.2.00.0030.00918.19
7.1.330.0040.01115.41
7.1.320.0100.00315.89
7.1.310.0070.00715.70
7.1.300.0090.00615.64
7.1.290.0100.00315.92
7.1.280.0030.01115.96
7.1.270.0040.00415.74
7.1.260.0090.00615.81
7.1.250.0080.00415.39
7.1.100.0030.00518.18
7.1.70.0000.00817.28
7.1.60.0120.01219.17
7.1.50.0060.01516.88
7.1.00.0030.06722.35
7.0.200.0000.00916.71
7.0.140.0030.07322.13
7.0.100.0070.04019.93
7.0.90.0030.08319.98
7.0.80.0000.08019.88
7.0.70.0200.06719.92
7.0.60.0130.08020.03
7.0.50.0030.08320.34
7.0.40.0130.07020.06
7.0.30.0100.08020.11
7.0.20.0100.08020.07
7.0.10.0130.07020.00
7.0.00.0100.07320.00
5.6.280.0070.07021.02
5.6.250.0070.08020.71
5.6.240.0130.07020.56
5.6.230.0170.04020.68
5.6.220.0100.07720.58
5.6.210.0100.07720.65
5.6.200.0070.04021.09
5.6.190.0100.04021.06
5.6.180.0030.08321.11
5.6.170.0070.07721.02
5.6.160.0130.04321.02
5.6.150.0100.07320.96
5.6.140.0130.07720.96
5.6.130.0100.08021.01
5.6.120.0070.08321.12
5.6.110.0030.08021.13
5.6.100.0030.09021.04
5.6.90.0070.05721.15
5.6.80.0070.07320.32
5.6.70.0170.07020.46
5.6.60.0070.08320.33
5.6.50.0130.07720.48
5.6.40.0100.07720.53
5.6.30.0000.06720.38
5.6.20.0100.06720.40
5.6.10.0070.08320.41
5.6.00.0130.04320.32
5.5.380.0070.07320.34
5.5.370.0070.07720.51
5.5.360.0070.04320.37
5.5.350.0070.04020.45
5.5.340.0100.06720.76
5.5.330.0030.05020.80
5.5.320.0100.03720.84
5.5.310.0170.06720.91
5.5.300.0130.07720.90
5.5.290.0100.05720.77
5.5.280.0030.07320.91
5.5.270.0100.07720.87
5.5.260.0130.08320.88
5.5.250.0030.08320.64
5.5.240.0070.07020.15
5.5.230.0030.08320.28
5.5.220.0030.07720.25
5.5.210.0070.07320.22
5.5.200.0070.08320.17
5.5.190.0070.07720.12
5.5.180.0070.05320.15
5.5.160.0000.08319.98
5.5.150.0070.07320.18
5.5.140.0100.07720.15
5.5.130.0070.05020.23
5.5.120.0130.07020.14
5.5.110.0030.08320.27
5.5.100.0100.05720.11
5.5.90.0130.07320.04
5.5.80.0100.07720.00
5.5.70.0000.05320.16
5.5.60.0100.03320.02
5.5.50.0030.04020.05
5.5.40.0100.03320.08
5.5.30.0030.04020.04
5.5.20.0070.03720.05
5.5.10.0070.04320.12
5.5.00.0030.04720.04
5.4.450.0100.06719.14
5.4.440.0070.08319.11
5.4.430.0070.04719.55
5.4.420.0200.04319.13
5.4.410.0100.07319.03
5.4.400.0070.05319.15
5.4.390.0200.06019.10
5.4.380.0030.04018.81
5.4.370.0130.07319.07
5.4.360.0170.06719.15
5.4.350.0070.04718.84
5.4.340.0030.08019.15
5.4.320.0100.07318.98
5.4.310.0100.07318.90
5.4.300.0170.04019.07
5.4.290.0070.07019.09
5.4.280.0030.05019.03
5.4.270.0130.06718.98
5.4.260.0170.06319.03
5.4.250.0030.05319.02
5.4.240.0130.07018.81
5.4.230.0030.04719.13
5.4.220.0100.06018.96
5.4.210.0130.04019.13
5.4.200.0030.03719.02
5.4.190.0000.04019.13
5.4.180.0030.04018.95
5.4.170.0070.03719.12
5.4.160.0030.04319.02
5.4.150.0130.05318.96
5.4.140.0070.03316.27
5.4.130.0000.06316.29
5.4.120.0070.07316.32
5.4.110.0070.06316.31
5.4.100.0030.07716.22
5.4.90.0000.06716.36
5.4.80.0100.06016.32
5.4.70.0000.04016.39
5.4.60.0070.03316.40
5.4.50.0100.03016.36
5.4.40.0070.03316.34
5.4.30.0070.03716.41
5.4.20.0070.05016.18
5.4.10.0030.03316.23
5.4.00.0030.03315.74
5.3.290.0100.06314.63
5.3.280.0070.05314.59
5.3.270.0000.04014.51
5.3.260.0000.04714.59
5.3.250.0170.02314.59
5.3.240.0000.04314.59
5.3.230.0000.04014.46
5.3.220.0000.05014.50
5.3.210.0000.05014.39
5.3.200.0100.07314.53
5.3.190.0070.04014.57
5.3.180.0070.03014.51
5.3.170.0030.06314.55
5.3.160.0030.03714.57
5.3.150.0130.02714.52
5.3.140.0000.04014.55
5.3.130.0030.04014.46
5.3.120.0030.03714.54
5.3.110.0030.03714.50
5.3.100.0070.03314.00
5.3.90.0030.03713.96
5.3.80.0000.04013.87
5.3.70.0000.04013.87
5.3.60.0100.02713.76
5.3.50.0100.03013.93
5.3.40.0030.04713.93
5.3.30.0070.03013.77
5.3.20.0000.04013.69
5.3.10.0070.03013.62
5.3.00.0030.03313.59
5.2.170.0000.03311.06
5.2.160.0130.02011.18
5.2.150.0000.03011.19
5.2.140.0030.02710.96
5.2.130.0000.03010.94
5.2.120.0030.02710.96
5.2.110.0100.02011.12
5.2.100.0000.03011.05
5.2.90.0070.02711.02
5.2.80.0030.03011.13
5.2.70.0000.03011.12
5.2.60.0070.02311.12
5.2.50.0000.03310.84
5.2.40.0030.02310.95
5.2.30.0000.03010.96
5.2.20.0030.02710.81
5.2.10.0030.02710.89
5.2.00.0000.03310.64
5.1.60.0000.0279.83
5.1.50.0000.02710.04
5.1.40.0000.0539.98
5.1.30.0000.02710.36
5.1.20.0000.02710.39
5.1.10.0000.02710.09
5.1.00.0000.02710.02
5.0.50.0030.0178.54
5.0.40.0000.0208.46
5.0.30.0000.0678.27
5.0.20.0100.0278.05
5.0.10.0030.0308.26
5.0.00.0070.0538.16
4.4.90.0000.0178.05
4.4.80.0000.0238.05
4.4.70.0000.0178.05
4.4.60.0030.0138.05
4.4.50.0000.0208.05
4.4.40.0030.0238.05
4.4.30.0030.0138.05
4.4.20.0000.0178.05
4.4.10.0000.0308.05
4.4.00.0000.0308.05
4.3.110.0030.0378.05
4.3.100.0030.0178.05
4.3.90.0000.0378.05
4.3.80.0000.0538.05
4.3.70.0000.0308.05
4.3.60.0000.0338.05
4.3.50.0030.0208.05
4.3.40.0000.0438.05
4.3.30.0030.0308.05
4.3.20.0070.0338.05
4.3.10.0000.0308.05
4.3.00.0070.0208.05

preferences:
50.63 ms | 401 KiB | 5 Q