3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 1540511772; $difference = new DateTime(); $difference->setTimeStamp($time + '2592000'); $difference = $difference->diff(new DateTime()); print_r($difference);

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.0.110.0030.00517.09
8.0.100.0050.00216.96
8.0.90.0000.00716.95
8.0.80.0070.01017.12
8.0.70.0000.00717.07
8.0.60.0030.00516.91
8.0.50.0080.00016.96
8.0.30.0060.01017.29
8.0.20.0100.01117.40
8.0.10.0020.00517.17
8.0.00.0080.01016.72
7.4.240.0070.00016.59
7.4.230.0030.00316.71
7.4.220.0030.00616.61
7.4.210.0030.01216.57
7.4.200.0070.00016.71
7.4.160.0090.00716.54
7.4.140.0100.01117.86
7.4.130.0100.00716.73
7.4.120.0110.00816.58
7.4.110.0100.01016.52
7.4.100.0130.00916.70
7.4.90.0070.01116.67
7.4.80.0120.00319.39
7.4.70.0100.00716.77
7.4.60.0070.01016.64
7.4.50.0030.01516.46
7.4.40.0080.00816.55
7.4.10.0170.00316.46
7.4.00.0060.01115.86
7.3.300.0000.00716.23
7.3.290.0000.00716.30
7.3.280.0060.01216.39
7.3.260.0100.00816.54
7.3.240.0080.01116.52
7.3.230.0030.01416.46
7.3.210.0060.01216.36
7.3.200.0090.00816.54
7.3.190.0080.01116.65
7.3.180.0070.00716.48
7.3.170.0100.00616.43
7.3.160.0100.01016.52
7.3.130.0130.00716.47
7.3.120.0130.00315.69
7.3.110.0080.00815.72
7.3.100.0090.00615.68
7.3.90.0060.00815.63
7.3.80.0050.00615.76
7.3.70.0070.01015.62
7.3.60.0070.00815.60
7.3.50.0080.00715.50
7.3.40.0040.01215.58
7.3.30.0080.00615.70
7.3.20.0050.01017.53
7.3.10.0050.00617.33
7.3.00.0080.00817.63
7.2.330.0100.01016.82
7.2.320.0060.01216.42
7.2.310.0160.00816.71
7.2.300.0090.00916.58
7.2.290.0150.00616.70
7.2.260.0070.01416.82
7.2.250.0060.00916.66
7.2.240.0070.00815.77
7.2.230.0060.01116.11
7.2.220.0060.00815.91
7.2.210.0050.01015.90
7.2.200.0080.00815.68
7.2.190.0100.00715.89
7.2.180.0030.01215.82
7.2.170.0090.00715.71
7.2.160.0080.01015.79
7.2.150.0070.01017.73
7.2.140.0040.01417.68
7.2.130.0100.00517.74
7.2.120.0030.00917.74
7.2.110.0060.01017.29
7.2.100.0110.00517.37
7.2.90.0070.00917.27
7.2.80.0110.00617.48
7.2.70.0100.00617.42
7.2.60.0050.01117.40
7.2.50.0090.00617.44
7.2.40.0060.00817.45
7.2.30.0090.00517.43
7.2.20.0090.00817.44
7.2.10.0060.00917.42
7.2.00.0040.00917.46
7.1.330.0100.00516.69
7.1.320.0050.00716.76
7.1.310.0100.00316.76
7.1.300.0030.01416.59
7.1.290.0060.00916.73
7.1.280.0020.01416.72
7.1.270.0080.00516.56
7.1.260.0100.00616.71
7.1.250.0080.00816.54
7.1.240.0090.00317.40
7.1.230.0090.00816.74
7.1.220.0050.01216.58
7.1.210.0070.00916.52
7.1.200.0090.00716.56
7.1.190.0050.01016.57
7.1.180.0060.01016.39
7.1.170.0090.00616.61
7.1.160.0070.00816.54
7.1.150.0070.00916.63
7.1.140.0030.00916.56
7.1.130.0100.00616.71
7.1.120.0060.00816.27
7.1.110.0090.00416.58
7.1.100.0100.00916.61
7.1.90.0070.01016.61
7.1.80.0080.00716.67
7.1.70.0070.00916.66
7.1.60.0150.00925.66
7.1.50.0170.00925.45
7.1.40.0190.00525.36
7.1.30.0120.01525.47
7.1.20.0170.00925.48
7.1.10.0080.00716.67
7.1.00.0070.00816.60
7.0.330.0000.01317.23
7.0.320.0090.00617.17
7.0.310.0090.00317.05
7.0.300.0060.00617.20
7.0.290.0030.01416.94
7.0.280.0060.00917.06
7.0.270.0060.01017.16
7.0.260.0080.00417.11
7.0.250.0040.00817.19
7.0.240.0100.00317.09
7.0.230.0000.01017.33
7.0.220.0030.00917.18
7.0.210.0030.00917.21
7.0.200.0040.00417.19
7.0.190.0000.00917.00
7.0.180.0040.01117.21
7.0.170.0070.00716.98
7.0.160.0030.00717.06
7.0.150.0060.00316.88
7.0.140.0100.00317.27
7.0.130.0030.01017.06
7.0.120.0040.00817.25
7.0.110.0040.00417.11
7.0.100.0070.00717.26
7.0.90.0030.01317.21
7.0.80.0000.01017.07
7.0.70.0100.00017.23
7.0.60.0030.00717.27
7.0.50.0030.00717.05
7.0.40.0060.00615.14
7.0.30.0060.00914.94
7.0.20.0030.01015.14
7.0.10.0060.00615.02
7.0.00.0000.01415.06
5.6.400.0070.00716.09
5.6.390.0110.00416.21
5.6.380.0130.00615.21
5.6.370.0030.01315.90
5.6.360.0060.00915.91
5.6.350.0030.01016.11
5.6.340.0070.01016.02
5.6.330.0050.00515.75
5.6.320.0120.00315.87
5.6.310.0040.00816.04
5.6.300.0060.00615.77
5.6.290.0060.00916.10
5.6.280.0000.01016.16
5.6.270.0040.01116.04
5.6.260.0040.00716.16
5.6.250.0040.01016.16
5.6.240.0100.00315.95
5.6.230.0100.00315.84
5.6.220.0060.00316.05
5.6.210.0070.00716.09
5.6.200.0030.01015.79
5.6.190.0070.00716.00
5.6.180.0030.01416.06
5.6.170.0070.01015.88
5.6.160.0090.00615.75
5.6.150.0070.00715.79
5.6.140.0000.01615.98
5.6.130.0070.00716.14
5.6.120.0030.01416.07
5.6.110.0170.00015.89
5.6.100.0030.01316.09
5.6.90.0030.01215.99
5.6.80.0030.01015.87
5.6.70.0030.01215.79
5.6.60.0030.00915.99
5.6.50.0030.00915.86
5.6.40.0040.01115.91
5.6.30.0070.00715.91
5.6.20.0070.00715.71
5.6.10.0120.00315.89
5.6.00.0100.00015.84

preferences:
41.2 ms | 401 KiB | 5 Q