3v4l.org

run code in 300+ PHP versions simultaneously
<?php function timePassed($time){ $time = time() - $time; echo $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.0180.00416.46
7.2.00.0060.00619.51
7.1.200.0030.01015.83
7.1.100.0080.00317.94
7.1.70.0040.00417.30
7.1.60.0060.01819.82
7.1.50.0070.01316.98
7.1.00.0070.07022.27
7.0.200.0130.00316.73
7.0.140.0030.07022.08
7.0.90.0670.03320.14
7.0.80.0600.06019.88
7.0.70.0570.07719.94
7.0.60.0570.06719.98
7.0.50.0300.06320.25
7.0.40.0030.05020.08
7.0.30.0000.06720.03
7.0.20.0000.04320.11
7.0.10.0030.04719.95
7.0.00.0000.04719.95
5.6.280.0130.06320.99
5.6.240.0000.08320.51
5.6.230.0030.07720.50
5.6.220.0100.07020.60
5.6.210.0070.08020.77
5.6.200.0030.07021.11
5.6.190.0100.04321.05
5.6.180.0070.04021.03
5.6.170.0070.04721.01
5.6.160.0070.04021.06
5.6.150.0070.04021.01
5.6.140.0070.04721.02
5.6.130.0000.03721.04
5.6.120.0070.04721.04
5.6.110.0000.03721.17
5.6.100.0070.03721.07
5.6.90.0070.03720.99
5.6.80.0070.03720.33
5.6.70.0100.03320.41
5.6.60.0100.03320.38
5.6.50.0000.04320.31
5.6.40.0030.03720.31
5.6.30.0030.04020.41
5.6.20.0030.03320.43
5.6.10.0070.03320.45
5.6.00.0100.02720.27
5.5.380.0000.08320.45
5.5.370.0100.04020.43
5.5.360.0000.09020.41
5.5.350.0100.07720.39
5.5.340.0070.08020.87
5.5.330.0130.03320.87
5.5.320.0030.04020.94
5.5.310.0000.04320.84
5.5.300.0070.03720.93
5.5.290.0030.03720.91
5.5.280.0000.04320.65
5.5.270.0070.03720.82
5.5.260.0030.04720.87
5.5.250.0070.05720.70
5.5.240.0030.03320.30
5.5.230.0030.03320.30
5.5.220.0000.04320.23
5.5.210.0100.03320.20
5.5.200.0030.03320.19
5.5.190.0030.03320.09
5.5.180.0030.03720.24
5.5.160.0130.02320.09
5.5.150.0070.03720.23
5.5.140.0070.03020.25
5.5.130.0170.02719.96
5.5.120.0030.03720.25
5.5.110.0070.03720.11
5.5.100.0000.05320.18
5.5.90.0000.04320.10
5.5.80.0100.03719.95
5.5.70.0000.04020.14
5.5.60.0070.04320.10
5.5.50.0100.07020.16
5.5.40.0130.07319.96
5.5.30.0100.07320.05
5.5.20.0000.04320.03
5.5.10.0130.06020.02
5.5.00.0030.04020.05
5.4.450.0000.04319.56
5.4.440.0000.04019.45
5.4.430.0000.03719.55
5.4.420.0000.03719.55
5.4.410.0070.03719.07
5.4.400.0030.03718.88
5.4.390.0000.03719.06
5.4.380.0000.04019.13
5.4.370.0100.03019.12
5.4.360.0100.03019.06
5.4.350.0000.03718.94
5.4.340.0070.03018.90
5.4.320.0030.04019.23
5.4.310.0100.04719.03
5.4.300.0000.03318.87
5.4.290.0030.03019.13
5.4.280.0070.03319.23
5.4.270.0030.03719.18
5.4.260.0000.03719.18
5.4.250.0030.03719.11
5.4.240.0000.03718.94
5.4.230.0030.04019.05
5.4.220.0030.08019.08
5.4.210.0070.07319.04
5.4.200.0070.03719.09
5.4.190.0100.07019.07
5.4.180.0070.04019.12
5.4.170.0070.07018.86
5.4.160.0070.07319.07
5.4.150.0130.07019.01
5.4.140.0030.06716.48
5.4.130.0100.06316.43
5.4.120.0030.08016.19
5.4.110.0170.07016.50
5.4.100.0070.07716.36
5.4.90.0100.06316.50
5.4.80.0070.07016.27
5.4.70.0070.07716.25
5.4.60.0130.06316.48
5.4.50.0100.06716.33
5.4.40.0070.08016.42
5.4.30.0100.08316.33
5.4.20.0070.07716.39
5.4.10.0070.07016.44
5.4.00.0100.07015.77
5.3.290.0030.03714.69
5.3.280.0070.03714.60
5.3.270.0100.08014.66
5.3.260.0100.07714.66
5.3.250.0130.06714.71
5.3.240.0030.07014.70
5.3.230.0030.07014.58
5.3.220.0030.08014.63
5.3.210.0070.04314.54
5.3.200.0200.05714.57
5.3.190.0070.07314.63
5.3.180.0070.07314.68
5.3.170.0030.04014.59
5.3.160.0070.04014.49
5.3.150.0130.06314.49
5.3.140.0070.04014.53
5.3.130.0030.08014.56
5.3.120.0070.08714.65
5.3.110.0030.08014.48
5.3.100.0070.07014.00
5.3.90.0030.06313.97
5.3.80.0070.06313.90
5.3.70.0030.05714.07
5.3.60.0070.07014.03
5.3.50.0170.06313.98
5.3.40.0100.07314.06
5.3.30.0100.04013.84
5.3.20.0230.06013.70
5.3.10.0070.06013.68
5.3.00.0130.06313.69
5.2.170.0000.03711.05
5.2.160.0030.04711.24
5.2.150.0030.06011.20
5.2.140.0000.06711.20
5.2.130.0230.04711.12
5.2.120.0000.06311.01
5.2.110.0070.05711.16
5.2.100.0070.05011.00
5.2.90.0030.03311.23
5.2.80.0070.06010.98
5.2.70.0030.06311.18
5.2.60.0070.06311.07
5.2.50.0070.06311.08
5.2.40.0070.06011.10
5.2.30.0030.06311.02
5.2.20.0000.06710.96
5.2.10.0030.06310.91
5.2.00.0070.05710.64
5.1.60.0030.04010.50
5.1.50.0070.04710.50
5.1.40.0030.03710.50
5.1.30.0100.05010.50
5.1.20.0000.06010.50
5.1.10.0030.05010.50
5.1.00.0070.05010.50
5.0.50.0030.04710.50
5.0.40.0000.02310.50
5.0.30.0070.06310.50
5.0.20.0070.04010.50
5.0.10.0000.04710.50
5.0.00.0030.07010.50
4.4.90.0030.03710.50
4.4.80.0000.03710.50
4.4.70.0070.03310.50
4.4.60.0000.03710.50
4.4.50.0000.03310.50
4.4.40.0000.05710.50
4.4.30.0100.03010.50
4.4.20.0100.01010.50
4.4.10.0030.03310.50
4.4.00.0030.03710.50
4.3.110.0030.01710.50
4.3.100.0000.03310.50
4.3.90.0000.03010.50
4.3.80.0070.05310.50
4.3.70.0000.03710.50
4.3.60.0030.02310.50
4.3.50.0000.03710.50
4.3.40.0000.02710.50
4.3.30.0000.02010.50
4.3.20.0000.01710.50
4.3.10.0000.01710.50
4.3.00.0000.01710.50

preferences:
32.48 ms | 400 KiB | 5 Q