3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $Draw_time = "29/01/2016 7pm"; $date = DateTime::createFromFormat("d/m/Y ha",$Draw_time); $new_date = $date->format('Y-m-d H:i:s'); $seconds = strtotime($new_date) - time(); $days = floor($seconds / 86400); $seconds %= 86400; $hours = floor($seconds / 3600); $seconds %= 3600; $minutes = floor($seconds / 60); $seconds %= 60; echo "$days days and $hours hours and $minutes minutes and $seconds seconds";
based on 9nNm7

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.2.60.0070.00716.96
7.2.00.0030.01419.55
7.1.200.0040.01116.03
7.1.100.0040.01118.20
7.1.70.0060.00317.22
7.1.60.0130.01019.27
7.1.50.0060.00616.79
7.1.00.0100.07022.36
7.0.200.0500.00614.99
7.0.100.0200.05019.90
7.0.90.0130.07719.85
7.0.80.0130.08719.92
7.0.70.0170.08019.92
7.0.60.0200.08319.97
7.0.50.0130.05020.36
7.0.40.0100.07320.17
7.0.30.0130.07320.05
7.0.20.0130.08020.08
7.0.10.0070.05320.14
7.0.00.0070.08720.04
5.6.280.0030.04020.98
5.6.250.0170.03320.59
5.6.240.0170.06720.71
5.6.230.0170.07720.50
5.6.220.0100.07320.73
5.6.210.0100.09720.64
5.6.200.0130.07721.04
5.6.190.0070.07721.03
5.6.180.0130.06021.00
5.6.170.0000.05020.95
5.6.160.0070.07021.04
5.6.150.0170.07021.06
5.6.140.0130.07321.10
5.6.130.0100.08321.07
5.6.120.0070.08320.96
5.6.110.0030.06021.10
5.6.100.0130.05021.00
5.6.90.0100.04321.00
5.6.80.0170.07320.47
5.6.70.0100.07720.44
5.6.60.0130.04020.35
5.6.50.0030.06020.44
5.6.40.0070.08320.38
5.6.30.0130.04320.36
5.6.20.0070.04720.44
5.6.10.0100.04020.52
5.6.00.0070.05320.38
5.5.380.0130.07020.41
5.5.370.0100.08720.38
5.5.360.0100.08020.34
5.5.350.0170.07320.41
5.5.340.0130.07720.91
5.5.330.0070.05720.77
5.5.320.0030.08320.79
5.5.310.0100.06720.86
5.5.300.0070.07720.91
5.5.290.0170.04720.78
5.5.280.0100.06720.87
5.5.270.0170.07720.91
5.5.260.0130.07720.81
5.5.250.0200.07020.62
5.5.240.0070.05720.31
5.5.230.0070.04020.31
5.5.220.0070.04320.26
5.5.210.0070.08020.15
5.5.200.0100.07720.21
5.5.190.0130.07320.24
5.5.180.0070.08020.21
5.5.160.0100.03720.08
5.5.150.0070.04320.12
5.5.140.0030.09020.23
5.5.130.0170.07320.21
5.5.120.0030.05020.10
5.5.110.0030.08320.11
5.5.100.0030.06320.16
5.5.90.0030.08320.10
5.5.80.0070.07720.14
5.5.70.0170.05019.93
5.5.60.0070.08020.14
5.5.50.0130.07320.11
5.5.40.0100.07320.13
5.5.30.0030.07719.94
5.5.20.0100.04020.05
5.5.10.0100.08020.03
5.5.00.0070.08020.07