3v4l.org

run code in 300+ PHP versions simultaneously
<?php function timePassed($time){ $time = time() - $time; $tokens = array ( 31536000 => 'year', 2592000 => 'month', 604800 => 'week', 86400 => 'day', 3600 => 'hour', 60 => 'minute', 1 => 'second' ); foreach ($tokens as $unit => $text) { if ($time < $unit) continue; $numberOfUnits = floor($time / $unit); return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':''); } } echo timePassed('2014-04-03 19:21:30');

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)
7.2.60.0070.00417.02
7.2.00.0030.01019.54
7.1.200.0040.00715.79
7.1.100.0070.00717.93
7.1.70.0040.00417.30
7.1.60.0100.01619.82
7.1.50.0000.01216.92
7.1.00.0030.07722.37
7.0.200.0050.00516.68
7.0.140.0000.07322.08
7.0.90.0070.08719.99
7.0.80.0070.05019.92
7.0.70.0070.08319.89
7.0.60.0100.05719.95
7.0.50.0430.08020.25
7.0.40.0000.04720.18
7.0.30.0070.04020.13
7.0.20.0030.04320.02
7.0.10.0070.06720.09
7.0.00.0030.08320.09
5.6.240.0130.07720.70
5.6.230.0130.07320.75
5.6.220.0070.07720.71
5.6.210.0070.08020.68
5.6.200.0030.08721.08
5.6.190.0100.08021.11
5.6.180.0100.04720.94
5.6.170.0000.05020.93
5.6.160.0130.07021.02
5.6.150.0030.07021.08
5.6.140.0200.05021.03
5.6.130.0070.06320.94
5.6.120.0070.08720.95
5.6.110.0030.06721.02
5.6.100.0100.07321.00
5.6.90.0100.03720.98
5.6.80.0000.04320.44
5.6.70.0070.04720.40
5.6.60.0070.06020.43
5.6.50.0200.06320.56
5.6.40.0100.03020.42
5.6.30.0170.07320.53
5.6.20.0030.07320.37
5.6.10.0170.06720.44
5.6.00.0030.08020.28
5.5.380.0070.08020.55
5.5.370.0030.08720.45
5.5.360.0070.08720.36
5.5.350.0070.08720.34
5.5.340.0030.09020.65
5.5.330.0170.06720.87
5.5.320.0130.03320.74
5.5.310.0100.03720.65
5.5.300.0100.08020.94
5.5.290.0270.06020.83
5.5.280.0070.04320.77
5.5.270.0100.07320.87
5.5.260.0070.03720.82
5.5.250.0000.06020.73
5.5.240.0000.04020.16
5.5.230.0100.03020.28
5.5.220.0030.07320.30
5.5.210.0130.07020.14
5.5.200.0030.03720.15
5.5.190.0100.07720.12
5.5.180.0200.06720.16
5.5.160.0100.07720.15
5.5.150.0100.07720.23
5.5.140.0130.07320.23
5.5.130.0030.08720.14
5.5.120.0100.07320.23
5.5.110.0070.08320.08
5.5.100.0130.06720.02
5.5.90.0070.07720.16
5.5.80.0070.07720.16
5.5.70.0170.08320.07
5.5.60.0170.04720.16
5.5.50.0070.07720.06
5.5.40.0100.07719.96
5.5.30.0200.06720.08
5.5.20.0030.08019.93
5.5.10.0070.07720.03
5.5.00.0130.07020.07
5.4.450.0170.07319.47
5.4.440.0070.07719.46
5.4.430.0100.07719.46
5.4.420.0030.08319.37
5.4.410.0000.04019.23
5.4.400.0030.03719.03
5.4.390.0070.03319.21
5.4.380.0070.04019.23
5.4.370.0030.06718.85
5.4.360.0100.04018.90
5.4.350.0130.05319.03
5.4.340.0130.06719.04
5.4.320.0130.06719.23
5.4.310.0130.06718.95
5.4.300.0100.07018.87
5.4.290.0130.07319.12
5.4.280.0070.07718.90
5.4.270.0030.07718.94
5.4.260.0070.07319.15
5.4.250.0030.08019.00
5.4.240.0130.06719.12
5.4.230.0030.07319.13
5.4.220.0030.07718.86
5.4.210.0070.07718.84
5.4.200.0100.06718.84
5.4.190.0030.07719.13
5.4.180.0200.06719.11
5.4.170.0070.08019.11
5.4.160.0170.07019.01
5.4.150.0170.07019.02
5.4.140.0000.08016.34
5.4.130.0070.07716.41
5.4.120.0070.04316.24
5.4.110.0070.07716.47
5.4.100.0070.07316.50
5.4.90.0030.07016.34
5.4.80.0100.07016.34
5.4.70.0130.07016.33
5.4.60.0100.07016.34
5.4.50.0030.07016.53
5.4.40.0100.07316.53
5.4.30.0100.07316.24
5.4.20.0070.05016.47
5.4.10.0070.06316.39
5.4.00.0070.07015.79
5.3.290.0100.07314.59
5.3.280.0030.08014.65
5.3.270.0100.07714.59
5.3.260.0100.06314.58
5.3.250.0130.06714.63
5.3.240.0070.07714.64
5.3.230.0100.07014.52
5.3.220.0000.08014.55
5.3.210.0030.08014.68
5.3.200.0130.07014.63
5.3.190.0000.08014.54
5.3.180.0070.07014.67
5.3.170.0070.07014.62
5.3.160.0100.07014.48
5.3.150.0030.08014.62
5.3.140.0100.07314.60
5.3.130.0070.06014.59
5.3.120.0070.07314.66
5.3.110.0030.07314.64
5.3.100.0070.07314.14
5.3.90.0130.07013.98
5.3.80.0130.07314.08
5.3.70.0070.08013.95
5.3.60.0030.07314.11
5.3.50.0030.05713.88
5.3.40.0070.05713.93
5.3.30.0130.06013.98
5.3.20.0100.07013.59
5.3.10.0200.05313.54
5.3.00.0070.06713.77
5.2.170.0170.05311.20
5.2.160.0030.06311.03
5.2.150.0030.05711.00
5.2.140.0030.06311.13
5.2.130.0030.06010.98
5.2.120.0000.03311.23
5.2.110.0030.06011.15
5.2.100.0000.04711.16
5.2.90.0100.05711.11
5.2.80.0100.05711.12
5.2.70.0200.05711.09
5.2.60.0030.06010.91
5.2.50.0130.06011.13
5.2.40.0070.03711.02
5.2.30.0030.06010.96
5.2.20.0070.06011.02
5.2.10.0000.06010.95
5.2.00.0070.06010.78
5.1.60.0000.05710.45
5.1.50.0070.04310.45
5.1.40.0070.04710.45
5.1.30.0030.06010.45
5.1.20.0100.05310.45
5.1.10.0030.05310.45
5.1.00.0030.05310.45
5.0.50.0070.04310.45
5.0.40.0030.04310.45
5.0.30.0030.06310.37
5.0.20.0000.04710.37
5.0.10.0030.04710.37
5.0.00.0100.05710.37
4.4.90.0000.03710.45
4.4.80.0000.04010.45
4.4.70.0030.03010.45
4.4.60.0030.03310.45
4.4.50.0030.03010.45
4.4.40.0030.02710.45
4.4.30.0000.03310.45
4.4.20.0030.03010.45
4.4.10.0000.03710.45
4.4.00.0070.05310.45
4.3.110.0070.03010.45
4.3.100.0000.04010.37
4.3.90.0070.03010.37
4.3.80.0030.05010.37
4.3.70.0070.03010.37
4.3.60.0030.03310.37
4.3.50.0030.03710.37
4.3.40.0000.04710.37
4.3.30.0030.03310.37
4.3.20.0030.03310.37
4.3.10.0000.04010.37
4.3.00.0000.03710.37

preferences:
30.14 ms | 401 KiB | 5 Q