3v4l.org

run code in 300+ PHP versions simultaneously
<?php $opening_time = "02 May 2019 - 03:10"; $closing_time = "12 May 2019 - 13:40"; $open = DateTime::createFromFormat("d M Y - H:i", $opening_time); $close = DateTime::createFromFormat("d M Y - H:i", $closing_time ); $diff = $close->getTimestamp() - $open->getTimestamp(); echo $opening_time."<br />\n"; echo $closing_time."<br />\n"; echo $diff;

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.5.10.0130.00616.80
8.5.00.0130.00820.11
8.4.150.0020.00114.05
8.4.140.0150.00717.65
8.4.130.0030.00618.58
8.4.120.0120.00724.01
8.4.110.0100.00822.34
8.4.100.0120.00918.43
8.4.90.0110.01019.02
8.4.80.0140.00718.84
8.4.70.0060.00218.32
8.4.60.0110.01018.90
8.4.50.0120.00818.84
8.4.40.0120.00919.45
8.4.30.0140.00718.82
8.4.20.0060.00320.78
8.4.10.0060.00319.58
8.3.280.0130.00918.51
8.3.270.0120.00816.46
8.3.260.0120.00816.80
8.3.250.0100.00918.63
8.3.240.0110.00717.38
8.3.230.0110.00716.54
8.3.220.0090.00918.63
8.3.210.0130.01018.60
8.3.200.0060.00516.50
8.3.190.0090.00620.57
8.3.180.0110.00716.73
8.3.170.0120.00618.74
8.3.160.0080.00016.71
8.3.150.0060.01217.26
8.3.140.0110.00716.55
8.3.130.0090.00018.36
8.3.120.0110.00720.73
8.3.110.0080.00016.71
8.3.100.0100.01016.38
8.3.90.0070.00716.79
8.3.80.0060.00318.18
8.3.70.0080.01116.49
8.3.60.0040.01918.30
8.3.50.0150.00817.32
8.3.40.0040.01418.84
8.3.30.0030.01018.84
8.3.20.0000.00821.49
8.3.10.0080.00019.11
8.3.00.0040.00423.48
8.2.290.0100.00920.31
8.2.280.0050.00418.27
8.2.270.0130.00716.97
8.2.260.0040.00418.86
8.2.250.0120.00616.75
8.2.240.0030.00619.14
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0060.00316.75
8.2.190.0120.00917.93
8.2.180.0090.00916.48
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00526.16
8.2.120.0050.00326.16
8.2.110.0100.00020.97
8.2.100.0060.00617.94
8.2.90.0040.00419.16
8.2.80.0040.00417.97
8.2.70.0030.00717.75
8.2.60.0040.00417.93
8.2.50.0000.00918.05
8.2.40.0000.00818.00
8.2.30.0040.00420.58
8.2.20.0070.00018.13
8.2.10.0040.00419.17
8.2.00.0000.00818.18
8.1.330.0090.01021.90
8.1.320.0080.00916.05
8.1.310.0080.00616.81
8.1.300.0080.00819.64
8.1.290.0100.00018.88
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.62
8.1.230.0080.00417.70
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.47
8.1.190.0000.00917.48
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0060.00318.94
8.1.150.0000.00718.96
8.1.140.0040.00418.96
8.1.130.0070.00020.17
8.1.120.0030.00417.58
8.1.110.0000.00717.54
8.1.100.0080.00017.53
8.1.90.0060.00617.59
8.1.80.0040.00417.43
8.1.70.0070.00017.54
8.1.60.0040.00417.61
8.1.50.0040.00417.41
8.1.40.0050.00317.55
8.1.30.0000.00817.66
8.1.20.0030.00717.57
8.1.10.0040.00417.56
8.1.00.0000.00817.69
8.0.300.0050.00218.77
8.0.290.0070.00016.88
8.0.280.0000.00818.53
8.0.270.0040.00416.97
8.0.260.0000.00618.40
8.0.250.0030.00417.11
8.0.240.0000.00717.11
8.0.230.0000.01017.15
8.0.220.0000.00717.10
8.0.210.0000.00717.09
8.0.200.0030.00317.07
8.0.190.0000.00817.07
8.0.180.0030.00617.16
8.0.170.0030.00617.08
8.0.160.0120.00017.02
8.0.150.0030.00317.07
8.0.140.0030.00517.00
8.0.130.0030.00313.41
8.0.120.0080.00017.05
8.0.110.0060.00317.09
8.0.100.0000.00717.05
8.0.90.0040.00417.15
8.0.80.0110.00417.06
8.0.70.0070.00017.16
8.0.60.0020.00516.99
8.0.50.0000.00716.96
8.0.30.0100.00717.30
8.0.20.0060.01517.18
8.0.10.0040.00417.21
8.0.00.0070.01216.91
7.4.330.0000.00515.55
7.4.320.0060.00016.56
7.4.300.0060.00016.50
7.4.290.0050.00316.58
7.4.280.0050.00516.64
7.4.270.0070.00016.66
7.4.260.0000.00716.64
7.4.250.0000.00816.59
7.4.240.0000.00716.63
7.4.230.0070.00016.43
7.4.220.0040.00416.64
7.4.210.0100.00616.61
7.4.200.0000.00716.50
7.4.160.0090.00716.51
7.4.130.0140.00316.38
7.4.120.0130.00316.30
7.4.110.0060.01116.57
7.4.100.0090.01216.73
7.4.90.0120.00416.59
7.4.80.0110.00719.39
7.4.70.0070.01016.41
7.4.60.0060.00916.55
7.4.50.0120.00616.68
7.4.40.0040.01216.39
7.4.00.0150.00015.20
7.3.330.0000.00813.20
7.3.320.0000.00613.25
7.3.310.0020.00516.40
7.3.300.0030.00316.37
7.3.290.0070.01416.38
7.3.280.0070.01016.39
7.3.260.0090.00916.52
7.3.240.0110.00616.52
7.3.230.0090.00916.56
7.3.210.0100.00616.43
7.3.200.0100.01316.38
7.3.190.0120.00616.41
7.3.180.0090.00916.62
7.3.170.0070.01016.37
7.3.160.0130.00316.64
7.3.50.0030.00914.86
7.3.40.0080.00414.83
7.3.30.0030.00714.67
7.3.20.0120.00916.75
7.3.10.0150.00016.84
7.3.00.0030.00716.52
7.2.330.0140.00316.65
7.2.320.0090.01016.64
7.2.310.0130.00616.57
7.2.300.0090.00916.84
7.2.290.0110.00716.98
7.2.180.0060.00615.32
7.2.170.0060.00915.28
7.2.160.0100.01114.93
7.2.150.0180.00316.74
7.2.140.0060.00916.92
7.2.130.0060.00616.95
7.2.120.0060.00617.04
7.2.110.0100.01016.77
7.2.100.0070.01117.00
7.2.90.0070.00416.80
7.2.80.0080.01316.68
7.2.70.0170.00316.82
7.2.60.0060.00916.89
7.2.50.0150.00616.87
7.2.40.0030.01017.02
7.2.30.0100.01016.88
7.2.20.0030.00917.02
7.2.10.0070.00716.91
7.2.00.0030.01116.78
7.1.280.0090.00315.67
7.1.270.0140.00715.94
7.1.260.0040.00815.69
7.1.250.0150.00415.66

preferences:
40.62 ms | 403 KiB | 5 Q