3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \Datetime("2015-12-03"); $b = new \Datetime("2015-12-12"); print_r($b->diff($a)->format("%y - %m - %d")); $now = new DateTime; $clone = clone $now; $clone->modify( '-1 day' ); echo $now->format( 'd-m-Y' ), "\n", $clone->format( 'd-m-Y' );

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.0170.00316.63
8.3.50.0080.00818.43
8.3.40.0150.00719.02
8.3.30.0110.00418.85
8.3.20.0080.00020.38
8.3.10.0050.00221.90
8.3.00.0040.00419.72
8.2.170.0140.00718.86
8.2.160.0140.00022.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0030.00619.43
8.2.120.0040.00426.35
8.2.110.0070.00422.42
8.2.100.0040.00818.05
8.2.90.0080.00019.39
8.2.80.0000.00818.05
8.2.70.0000.00917.63
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0070.00022.32
8.2.30.0040.00420.57
8.2.20.0040.00417.98
8.2.10.0070.00018.09
8.2.00.0040.00418.04
8.1.270.0050.00224.66
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0080.00419.05
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.47
8.1.180.0000.00718.10
8.1.170.0060.00318.63
8.1.160.0040.00420.80
8.1.150.0000.00718.95
8.1.140.0060.00319.67
8.1.130.0000.00717.71
8.1.120.0000.00717.56
8.1.110.0070.00017.53
8.1.100.0040.00417.55
8.1.90.0030.00617.73
8.1.80.0000.00717.68
8.1.70.0000.00717.58
8.1.60.0030.00717.73
8.1.50.0000.00917.61
8.1.40.0030.00617.74
8.1.30.0040.00417.86
8.1.20.0000.00917.71
8.1.10.0050.00317.83
8.1.00.0040.00417.66
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.57
8.0.270.0050.00317.39
8.0.260.0040.00417.35
8.0.250.0030.00317.17
8.0.240.0000.00717.25
8.0.230.0050.00317.03
8.0.220.0000.00717.09
8.0.210.0050.00217.06
8.0.200.0000.00617.11
8.0.190.0000.01117.04
8.0.180.0070.00016.97
8.0.170.0080.00017.02
8.0.160.0040.00417.07
8.0.150.0000.00817.07
8.0.140.0040.00417.02
8.0.130.0000.00713.40
8.0.120.0030.00516.88
8.0.110.0040.00417.15
8.0.100.0050.00217.09
8.0.90.0000.00717.01
8.0.80.0050.01017.13
8.0.70.0040.00417.08
8.0.60.0000.00816.90
8.0.50.0070.00017.12
8.0.30.0070.01317.34
8.0.20.0090.00917.43
8.0.10.0050.00217.23
8.0.00.0130.00717.01
7.4.330.0030.00316.75
7.4.320.0000.00616.73
7.4.300.0030.00316.64
7.4.290.0080.00016.59
7.4.280.0050.00216.72
7.4.270.0050.00216.77
7.4.260.0000.00716.64
7.4.250.0040.00416.61
7.4.240.0020.00516.58
7.4.230.0030.00316.53
7.4.220.0100.00916.79
7.4.210.0060.00816.74
7.4.200.0030.00316.53
7.4.160.0090.00616.55
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0110.00816.69
7.4.120.0120.00816.74
7.4.110.0070.01116.52
7.4.100.0190.00616.73
7.4.90.0120.00616.71
7.4.80.0110.00519.39
7.4.70.0060.01016.60
7.4.60.0120.00416.68
7.4.50.0030.01316.59
7.4.40.0060.00916.70
7.4.30.0070.01016.68
7.4.00.0030.01415.11
7.3.330.0000.00613.33
7.3.320.0000.00613.27
7.3.310.0050.00216.36
7.3.300.0030.00316.26
7.3.290.0070.01116.38
7.3.280.0090.00816.45
7.3.270.0030.01417.40
7.3.260.0130.00316.61
7.3.250.0050.01516.56
7.3.240.0080.00816.56
7.3.230.0100.01316.64
7.3.210.0170.00416.78
7.3.200.0120.00916.50
7.3.190.0060.01016.53
7.3.180.0050.01116.66
7.3.170.0120.00616.62
7.3.160.0120.00416.48
7.2.330.0100.00716.91
7.2.320.0120.00816.50
7.2.310.0130.00316.94
7.2.300.0080.01116.94
7.2.290.0040.01416.92
7.2.60.0030.01017.22
7.2.00.0070.00719.60
7.1.200.0100.00316.01
7.1.100.0030.00918.27
7.1.70.0030.00717.39
7.1.60.0120.01219.52
7.1.50.0110.01117.23
7.1.00.0000.08022.57
7.0.200.0030.00616.94
7.0.60.0070.06020.00
7.0.50.0030.05317.82
7.0.40.0030.04720.03
7.0.30.0270.05320.00
7.0.20.0330.08020.09
7.0.10.0000.09020.22
7.0.00.0070.04020.12
5.6.280.0030.03021.09
5.6.210.0130.07320.60
5.6.200.0030.05018.22
5.6.190.0100.06020.61
5.6.180.0330.07020.77
5.6.170.0230.06320.49
5.6.160.0130.03720.33
5.6.150.0000.06318.20
5.6.140.0030.04018.21
5.6.130.0130.06318.09
5.6.120.0130.07020.99
5.6.110.0030.04320.98
5.6.100.0100.07721.01
5.6.90.0200.03721.00
5.6.80.0100.08020.48
5.5.350.0230.08020.36
5.5.340.0130.07717.92
5.5.330.0030.04020.36
5.5.320.0470.07320.30
5.5.310.0230.04720.26
5.5.300.0030.08317.98
5.5.290.0100.04017.98
5.5.280.0130.06020.73
5.5.270.0130.08020.86
5.5.260.0100.08320.83
5.5.250.0000.05720.46
5.5.240.3330.03720.25

preferences:
53.3 ms | 400 KiB | 5 Q