3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Calcutta'); $end_date = "2014-09-09 18:03:10"; $now = date('Y-m-d H:i:s'); $diff = strtotime($now) - strtotime($end_date); $fullDays = ceil($diff/(60*60*24)); $fullHours = ceil(($diff-($fullDays*60*60*24))/(60*60)); $fullMinutes = ceil(($diff-($fullDays*60*60*24)-($fullHours*60*60))/60); echo "Difference is $fullDays days, $fullHours hours and $fullMinutes minutes.";

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.0070.00718.30
8.3.50.0100.01122.83
8.3.40.0110.00418.95
8.3.30.0100.00319.18
8.3.20.0040.00420.34
8.3.10.0070.00023.65
8.3.00.0000.00919.39
8.2.180.0070.00716.50
8.2.170.0180.00022.96
8.2.160.0070.00720.52
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00721.16
8.2.110.0080.00622.23
8.2.100.0110.00018.34
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0040.00418.29
8.2.50.0060.00318.07
8.2.40.0030.00518.28
8.2.30.0020.00518.30
8.2.20.0030.00617.84
8.2.10.0040.00418.23
8.2.00.0050.00217.97
8.1.280.0120.00625.92
8.1.270.0000.00824.01
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00024.10
8.1.230.0060.00619.20
8.1.220.0050.00317.78
8.1.210.0030.00518.77
8.1.200.0100.00017.60
8.1.190.0030.00617.23
8.1.180.0020.00518.10
8.1.170.0000.00818.78
8.1.160.0030.00322.02
8.1.150.0040.00418.95
8.1.140.0040.00417.56
8.1.130.0030.00318.00
8.1.120.0030.00517.55
8.1.110.0080.00017.56
8.1.100.0000.00717.59
8.1.90.0040.00417.67
8.1.80.0000.00717.64
8.1.70.0000.00817.55
8.1.60.0040.00417.73
8.1.50.0000.00817.62
8.1.40.0000.00817.64
8.1.30.0080.00017.62
8.1.20.0000.00817.68
8.1.10.0000.00817.62
8.1.00.0040.00417.60
8.0.300.0000.00818.77
8.0.290.0070.00017.00
8.0.280.0000.00718.64
8.0.270.0030.00317.38
8.0.260.0060.00017.25
8.0.250.0040.00417.09
8.0.240.0000.00717.07
8.0.230.0030.00317.13
8.0.220.0000.00817.11
8.0.210.0000.00717.02
8.0.200.0000.00717.21
8.0.190.0040.00417.20
8.0.180.0040.00417.07
8.0.170.0040.00417.04
8.0.160.0000.00717.16
8.0.150.0030.00317.06
8.0.140.0080.00016.91
8.0.130.0030.00313.61
8.0.120.0070.00017.00
8.0.110.0070.00017.14
8.0.100.0000.00717.20
8.0.90.0040.00416.93
8.0.80.0100.00717.07
8.0.70.0000.00717.18
8.0.60.0000.00817.09
8.0.50.0040.00417.10
8.0.30.0080.01117.30
8.0.20.0100.00917.40
8.0.10.0040.00417.08
8.0.00.0120.00816.95
7.4.330.0050.00015.03
7.4.320.0050.00216.73
7.4.300.0000.00716.54
7.4.290.0040.00416.73
7.4.280.0040.00416.77
7.4.270.0000.00616.71
7.4.260.0000.00716.64
7.4.250.0080.00016.57
7.4.240.0030.00416.66
7.4.230.0000.00716.82
7.4.220.0070.01116.57
7.4.210.0090.00916.62
7.4.200.0000.00716.82
7.4.160.0050.01116.91
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0080.00816.74
7.4.120.0140.00616.71
7.4.110.0190.00016.51
7.4.100.0130.00316.68
7.4.90.0140.00316.80
7.4.80.0100.00519.39
7.4.70.0090.00616.57
7.4.60.0110.00616.61
7.4.50.0030.00316.54
7.4.40.0110.00716.30
7.4.30.0100.00716.53
7.4.00.0030.01415.12
7.3.330.0020.00213.42
7.3.320.0000.00713.36
7.3.310.0030.00316.60
7.3.300.0030.00316.55
7.3.290.0140.00016.46
7.3.280.0110.00416.53
7.3.270.0140.00317.40
7.3.260.0110.01416.67
7.3.250.0090.00716.68
7.3.240.0040.01816.64
7.3.230.0120.00616.75
7.3.210.0100.00616.68
7.3.200.0110.00419.39
7.3.190.0060.01116.57
7.3.180.0110.00516.74
7.3.170.0060.01316.68
7.3.160.0100.01016.59
7.3.00.0100.00016.87
7.2.330.0110.01116.94
7.2.320.0070.01016.93
7.2.310.0090.00816.93
7.2.300.0070.01016.89
7.2.290.0070.01416.79
7.2.130.0070.00317.05
7.2.120.0060.00317.10
7.2.110.0070.00717.11
7.2.100.0030.00717.06
7.2.90.0120.00017.14
7.2.80.0060.00617.25
7.2.70.0040.00717.19
7.2.60.0050.00816.96
7.2.50.0000.01017.09
7.2.40.0060.00616.86
7.2.30.0030.00916.77
7.2.20.0070.01117.07
7.2.10.0070.01117.18
7.2.00.0010.00818.24
7.1.250.0000.01016.16
7.1.240.0000.01015.98
7.1.230.0030.00715.84
7.1.220.0030.00716.07
7.1.210.0060.00316.02
7.1.200.0020.01015.94
7.1.190.0080.00416.00
7.1.180.0060.00616.09
7.1.170.0040.00415.88
7.1.160.0110.00415.97
7.1.150.0030.00615.78
7.1.140.0050.00315.86
7.1.130.0060.00315.83
7.1.120.0060.00916.02
7.1.110.0050.00315.76
7.1.100.0000.01017.10
7.1.90.0030.00616.00
7.1.80.0100.00016.12
7.1.70.0070.00916.61
7.1.60.0060.01317.71
7.1.50.0090.00816.47
7.1.40.0030.00915.88
7.1.30.0050.00516.00
7.1.20.0030.00616.00
7.1.10.0030.01016.12
7.1.00.0050.04119.20
7.0.330.0030.00715.39
7.0.320.0030.00615.59
7.0.310.0040.00415.61
7.0.300.0100.00315.76
7.0.290.0060.00615.56
7.0.280.0040.00715.59
7.0.270.0070.00715.54
7.0.260.0040.01115.50
7.0.250.0070.00415.60
7.0.240.0030.00615.66
7.0.230.0100.00315.68
7.0.220.0000.01215.46
7.0.210.0090.00315.70
7.0.200.0200.00215.42
7.0.190.0070.00715.39
7.0.180.0040.00815.78
7.0.170.0040.01115.62
7.0.160.0030.01215.69
7.0.150.0100.00315.43
7.0.140.0040.04118.87
7.0.130.0030.00915.71
7.0.120.0050.00515.74
7.0.110.0030.00715.59
7.0.100.0080.03817.86
7.0.90.0050.04317.83
7.0.80.0050.02517.69
7.0.70.0060.02317.71
7.0.60.0150.02117.74
7.0.50.0020.02617.98
7.0.40.0070.01716.76
7.0.30.0050.02316.80
7.0.20.0080.03816.90
7.0.10.0030.02516.81
7.0.00.0030.03016.78
5.6.380.0060.00614.55
5.6.370.0040.00914.03
5.6.360.0060.00614.55
5.6.350.0000.01314.42
5.6.340.0040.00814.75
5.6.330.0060.00614.39
5.6.320.0040.00714.45
5.6.310.0070.00714.63
5.6.300.0100.00514.40
5.6.290.0100.00714.69
5.6.280.0080.03817.76
5.6.270.0090.00414.56
5.6.260.0120.00314.30
5.6.250.0100.03817.52
5.6.240.0070.03717.57
5.6.230.0120.02217.60
5.6.220.0070.02817.47
5.6.210.0120.03217.66
5.6.200.0020.02817.71
5.6.190.0030.02517.89
5.6.180.0080.02217.67
5.6.170.0030.04717.69
5.6.160.0030.03617.70
5.6.150.0050.02317.74
5.6.140.0070.02017.75
5.6.130.0050.02517.78
5.6.120.0050.02317.77
5.6.110.0030.02717.74
5.6.100.0050.02517.85
5.6.90.0030.02817.68
5.6.80.0120.01717.27
5.6.70.0050.02217.29
5.6.60.0020.03817.38
5.6.50.0020.02717.31
5.6.40.0070.02217.37
5.6.30.0050.02117.46
5.6.20.0050.02317.42
5.6.10.0080.02517.39
5.6.00.0050.02517.26
5.5.380.0130.03915.84
5.5.370.0050.03615.76
5.5.360.0070.02015.76
5.5.350.0030.02315.79
5.5.340.0040.02116.05
5.5.330.0040.02116.06
5.5.320.0050.02316.03
5.5.310.0050.02516.06
5.5.300.0060.02316.04
5.5.290.0050.03616.05
5.5.280.0050.02615.97
5.5.270.0040.02716.08
5.5.260.0040.02916.05
5.5.250.0010.02615.87
5.5.240.0140.01515.71
5.5.230.0060.02515.71
5.5.220.0010.02515.71
5.5.210.0030.02315.73
5.5.200.0060.02415.70
5.5.190.0070.02215.64
5.5.180.0090.02015.66
5.5.170.0030.00911.18
5.5.160.0030.02315.65
5.5.150.0080.02815.71
5.5.140.0100.04015.70
5.5.130.0030.04715.66
5.5.120.0000.04815.74
5.5.110.0060.04215.66
5.5.100.0030.04215.63
5.5.90.0100.03715.62
5.5.80.0070.02515.63
5.5.70.0110.04115.66
5.5.60.0070.04415.61
5.5.50.0120.03715.61
5.5.40.0090.02415.66
5.5.30.0010.04315.61
5.5.20.0080.03515.65
5.5.10.0120.03715.65
5.5.00.0060.04315.60
5.4.450.0040.02515.32
5.4.440.0000.02615.27
5.4.430.0070.02015.37
5.4.420.0050.03315.35
5.4.410.0020.02515.16
5.4.400.0020.02415.15
5.4.390.0030.02215.04
5.4.380.0070.02015.09
5.4.370.0080.01815.15
5.4.360.0080.01815.15
5.4.350.0070.01915.14
5.4.340.0030.02115.18
5.4.330.0030.00611.18
5.4.320.0000.02715.10
5.4.310.0020.04315.14
5.4.300.0060.01815.13
5.4.290.0070.04015.15
5.4.280.0080.03615.10
5.4.270.0070.03615.06
5.4.260.0060.03615.14
5.4.250.0020.03115.17
5.4.240.0050.03915.10
5.4.230.0060.03915.14
5.4.220.0050.04115.20
5.4.210.0030.02615.20
5.4.200.0050.03314.97
5.4.190.0060.01815.07
5.4.180.0000.04315.10
5.4.170.0030.03815.06
5.4.160.0070.03815.17
5.4.150.0040.03815.06
5.4.140.0030.03813.80
5.4.130.0070.02013.80
5.4.120.0110.03313.75
5.4.110.0020.03413.86
5.4.100.0030.03913.84
5.4.90.0080.03813.84
5.4.80.0100.03313.82
5.4.70.0100.03313.76
5.4.60.0050.04013.70
5.4.50.0080.03713.74
5.4.40.0040.04213.85
5.4.30.0070.02213.67
5.4.20.0070.03513.68
5.4.10.0090.03713.70
5.4.00.0080.03313.46
5.3.290.0070.03312.83
5.3.280.0080.04012.82
5.3.270.0080.03512.89
5.3.260.0050.04212.86
5.3.250.0100.04212.88
5.3.240.0080.03612.88
5.3.230.0030.02712.89
5.3.220.0030.03812.85
5.3.210.0060.03812.86
5.3.200.0060.02312.78
5.3.190.0050.04012.80
5.3.180.0080.03512.80
5.3.170.0050.04112.80
5.3.160.0020.04212.87
5.3.150.0040.02412.87
5.3.140.0030.03512.84
5.3.130.0050.04212.79
5.3.120.0100.01812.84
5.3.110.0030.04212.84
5.3.100.0050.03512.53
5.3.90.0050.04012.58
5.3.80.0070.03812.59
5.3.70.0030.03812.59
5.3.60.0070.03512.58
5.3.50.0040.02212.55
5.3.40.0070.03512.54
5.3.30.0080.03512.47
5.3.20.0050.03912.43
5.3.10.0050.03012.38
5.3.00.0030.03812.40
5.2.170.0030.03311.12
5.2.160.0050.03011.17
5.2.150.0050.01611.15
5.2.140.0060.01311.18
5.2.130.0020.02411.10
5.2.120.0030.03111.15
5.2.110.0030.03211.11
5.2.100.0100.02711.13
5.2.90.0010.03511.13
5.2.80.0020.01811.13
5.2.70.0060.02511.10
5.2.60.0000.02411.12
5.2.50.0000.02311.09
5.2.40.0020.02311.07
5.2.30.0050.03011.05
5.2.20.0030.03310.99
5.2.10.0020.01810.95
5.2.00.0030.03410.94
5.1.60.0050.02610.58
5.1.50.0080.01210.58
5.1.40.0020.01710.61
5.1.30.0000.02110.83
5.1.20.0040.02910.79
5.1.10.0050.02810.61
5.1.00.0050.02810.65
5.0.50.0070.0229.86
5.0.40.0030.0239.79
5.0.30.0030.0319.70
5.0.20.0050.0209.69
5.0.10.0000.0259.63
5.0.00.0050.0329.67
4.4.90.0060.0088.93
4.4.80.0030.0128.93
4.4.70.0000.0208.93
4.4.60.0000.0138.93
4.4.50.0020.0108.93
4.4.40.0010.0288.93
4.4.30.0030.0198.93
4.4.20.0030.0198.93
4.4.10.0000.0208.93
4.4.00.0020.0158.93
4.3.110.0010.0168.93
4.3.100.0030.0188.93
4.3.90.0000.0188.93
4.3.80.0010.0288.93
4.3.70.0000.0228.93
4.3.60.0000.0128.93
4.3.50.0020.0118.93
4.3.40.0010.0258.93
4.3.30.0020.0208.93
4.3.20.0020.0178.93
4.3.10.0000.0218.93
4.3.00.0050.0188.93

preferences:
53.11 ms | 401 KiB | 5 Q