3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $end_date = "2014-10-09 15:03:10"; date_default_timezone_set('Asia/Calcutta'); $now = "2014-10-09 15:01:10"; $diff = strtotime($now) - strtotime($end_date); $fullDays = floor($diff/(60*60*24)); $fullHours = floor(($diff-($fullDays*60*60*24))/(60*60)); $fullMinutes = floor(($diff-($fullDays*60*60*24)-($fullHours*60*60))/60); echo "Difference is $fullDays days, $fullHours hours and $fullMinutes minutes.";
based on cWrrM

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0150.00798.97
7.3.0rc30.0140.01016.89
7.3.0beta10.0000.01112.66
7.3.0alpha10.0040.00712.87
7.2.60.0080.00316.86
7.2.00.0060.00619.53
7.1.200.0070.00415.83
7.1.100.0040.00818.14
7.1.70.0000.00717.54
7.1.60.0000.02419.40
7.1.50.0120.00917.18
7.1.00.0030.07722.31
7.0.200.0050.00316.86
7.0.140.0000.07322.08
7.0.60.0070.08719.79
7.0.50.0070.06717.87
7.0.40.0030.06020.21
7.0.30.0270.06720.00
7.0.20.0370.07320.09
7.0.10.0100.06720.04
7.0.00.0030.04719.99
5.6.280.0070.07021.10
5.6.210.0130.07720.66
5.6.200.0130.07318.21
5.6.190.0070.08320.61
5.6.180.0430.06320.35
5.6.170.0230.08020.48
5.6.160.0070.05720.38
5.6.150.0130.07318.18
5.6.140.0100.07718.22
5.6.130.0100.03718.16
5.6.120.0070.06320.82
5.6.110.0170.06320.91
5.6.100.0100.06021.11
5.6.90.0030.07720.96
5.6.80.0000.06020.37
5.5.350.0270.02020.46
5.5.340.0070.04717.95
5.5.330.0070.06020.40
5.5.320.0230.04020.32
5.5.310.0170.04720.20
5.5.300.0030.04017.98
5.5.290.0030.05718.00
5.5.280.0070.04720.87
5.5.270.0100.03720.86
5.5.260.0070.08020.97
5.5.250.0070.04720.61
5.5.240.0170.05320.34
5.4.450.0230.04019.41
5.4.440.0070.05019.10
5.4.430.0200.04319.42
5.4.420.0270.04719.45
5.4.410.0230.04319.44
5.4.400.0400.03719.08
5.4.390.0430.03019.13
5.4.380.0470.04018.64
5.4.370.0230.06018.57
5.4.360.0500.06318.53
5.4.350.0270.05318.53
5.4.340.0330.05018.76
5.4.320.0070.03612.46
5.4.310.0030.04112.46
5.4.300.0090.03412.46
5.4.290.0070.03612.45
5.4.280.0070.03412.35
5.4.270.0050.03712.35
5.4.260.0050.03812.36
5.4.250.0080.03412.35
5.4.240.0060.03512.36
5.4.230.0100.03412.35
5.4.220.0080.04012.34
5.4.210.0040.03912.34
5.4.200.0040.04212.35
5.4.190.0110.03312.34
5.4.180.0070.03412.34
5.4.170.0040.03712.35
5.4.160.0070.03412.35
5.4.150.0080.03312.34
5.4.140.0090.03512.03
5.4.130.0070.03412.01
5.4.120.0060.03911.97
5.4.110.0100.03111.97
5.4.100.0090.03311.96
5.4.90.0090.03511.96
5.4.80.0060.03711.97
5.4.70.0060.03711.96
5.4.60.0050.03911.96
5.4.50.0070.04111.96
5.4.40.0060.03511.95
5.4.30.0040.03711.95
5.4.20.0070.03411.95
5.4.10.0040.03711.95
5.4.00.0030.04011.44
5.3.290.0070.03712.80
5.3.280.0080.03612.71
5.3.270.0050.04012.73
5.3.260.0070.03812.72
5.3.250.0060.03612.72
5.3.240.0060.03712.72
5.3.230.0030.04112.71
5.3.220.0090.03412.68
5.3.210.0070.04012.68
5.3.200.0080.04212.68
5.3.190.0040.03912.68
5.3.180.0100.04012.67
5.3.170.0070.04012.67
5.3.160.0070.03612.67
5.3.150.0040.04112.67
5.3.140.0060.03612.66
5.3.130.0100.03712.66
5.3.120.0060.03912.66
5.3.110.0040.04012.66
5.3.100.0060.04112.11
5.3.90.0070.03512.08
5.3.80.0050.03612.08
5.3.70.0020.03812.07
5.3.60.0040.03912.06
5.3.50.0090.03312.00
5.3.40.0100.03212.00
5.3.30.0060.03411.95
5.3.20.0070.03411.73
5.3.10.0060.03411.70
5.3.00.0090.03711.68
5.2.170.0050.0349.18
5.2.160.0050.0339.18
5.2.150.0070.0289.18
5.2.140.0030.0399.18
5.2.130.0040.0299.14
5.2.120.0030.0319.14
5.2.110.0070.0299.15
5.2.100.0080.0259.14
5.2.90.0040.0339.14
5.2.80.0040.0319.14
5.2.70.0050.0309.14
5.2.60.0040.0309.09
5.2.50.0030.0319.06
5.2.40.0060.0279.04
5.2.30.0030.0319.01
5.2.20.0040.0299.00
5.2.10.0030.0308.96
5.2.00.0020.0318.82
5.1.60.0030.0258.10
5.1.50.0030.0268.10
5.1.40.0050.0238.07
5.1.30.0040.0258.43
5.1.20.0040.0328.45
5.1.10.0060.0258.18
5.1.00.0030.0288.18
5.0.50.0030.0206.63
5.0.40.0060.0196.49
5.0.30.0030.0386.31
5.0.20.0020.0206.27
5.0.10.0040.0186.25
5.0.00.0040.0296.24
4.4.90.0010.0164.78
4.4.80.0020.0164.75
4.4.70.0050.0144.76
4.4.60.0020.0164.75
4.4.50.0040.0134.77
4.4.40.0060.0224.71
4.4.30.0050.0134.75
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0030.0174.67
4.3.100.0020.0164.66
4.3.90.0010.0164.63
4.3.80.0030.0294.58
4.3.70.0050.0194.63
4.3.60.0030.0184.63
4.3.50.0030.0154.63
4.3.40.0040.0224.54
4.3.30.0030.0193.30
4.3.20.0030.0173.27
4.3.10.0010.0163.22
4.3.00.0000.02015.65