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':''); } }

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.3.10.0110.00316.56
7.3.00.0000.01316.54
7.2.130.0030.00816.27
7.2.120.0050.00516.79
7.2.110.0110.00416.78
7.2.100.0070.00716.77
7.2.90.0030.00716.69
7.2.80.0070.00716.76
7.2.70.0060.00616.88
7.2.60.0030.00616.62
7.2.50.0040.01116.78
7.2.40.0080.00816.48
7.2.30.0030.01116.78
7.2.20.0060.00316.48
7.2.10.0110.00416.83
7.2.00.0070.00317.94
7.1.250.0090.00615.46
7.1.100.0040.00817.70
7.1.70.0000.00916.90
7.1.60.0140.01019.82
7.1.50.0040.02216.54
7.1.00.0030.07322.57
7.0.200.0100.00616.74
7.0.140.0030.07322.09
7.0.100.0030.04020.05
7.0.90.0030.03319.93
7.0.80.0070.05019.91
7.0.70.0030.04319.92
7.0.60.0100.04019.78
7.0.50.0030.04320.31
7.0.40.0070.03020.11
7.0.30.0000.03720.15
7.0.20.0030.04320.00
7.0.10.0030.03720.05
7.0.00.0070.04020.09
5.6.280.0000.07721.07
5.6.250.0000.03720.81
5.6.240.0100.03720.61
5.6.230.0070.04320.64
5.6.220.0000.03720.58
5.6.210.0030.03320.68
5.6.200.0030.04321.01
5.6.190.0070.04021.14
5.6.180.0070.03721.08
5.6.170.0030.04021.04
5.6.160.0030.04021.05
5.6.150.0100.03320.96
5.6.140.0070.04020.97
5.6.130.0030.04021.04
5.6.120.0030.03720.94
5.6.110.0070.04021.07
5.6.100.0030.05720.93
5.6.90.0070.07720.91
5.6.80.0030.08320.33
5.6.70.0030.07320.49
5.6.60.0000.09020.48
5.6.50.0230.06720.50
5.6.40.0070.06020.31
5.6.30.0030.05720.37
5.6.20.0070.08320.52
5.6.10.0100.05020.43
5.6.00.0130.07720.42
5.5.380.0200.08020.34
5.5.370.0030.09020.36
5.5.360.0000.04720.36
5.5.350.0070.04320.40
5.5.340.0070.04020.80
5.5.330.0070.03320.87
5.5.320.0030.03320.75
5.5.310.0030.04020.80
5.5.300.0030.03720.64
5.5.290.0070.04020.86
5.5.280.0000.03720.89
5.5.270.0070.06320.90
5.5.260.0030.04020.92
5.5.250.0030.07020.54
5.5.240.0070.04320.14
5.5.230.0170.03320.11
5.5.220.0030.08320.18
5.5.210.0100.07720.17
5.5.200.0070.06720.09
5.5.190.0100.05020.11
5.5.180.0070.07320.23
5.5.160.0070.06320.26
5.5.150.0100.04020.26
5.5.140.0000.04720.13
5.5.130.0130.07320.11
5.5.120.0070.08020.08
5.5.110.0130.05320.17
5.5.100.0130.06720.08
5.5.90.0130.08020.15
5.5.80.0070.07320.04
5.5.70.0070.07720.14
5.5.60.0100.07320.04
5.5.50.0170.06720.00
5.5.40.0070.07720.05
5.5.30.0100.06320.09
5.5.20.0170.09720.05
5.5.10.0070.03720.11
5.5.00.0030.05320.00
5.4.450.0030.03319.41
5.4.440.0100.03019.36
5.4.430.0130.04019.50
5.4.420.0030.03319.50
5.4.410.0000.04319.34
5.4.400.0100.07318.95
5.4.390.0030.06719.03
5.4.380.0070.06318.84
5.4.370.0000.06319.13
5.4.360.0000.05019.21
5.4.350.0070.05018.88
5.4.340.0130.03319.20
5.4.320.0070.07719.14
5.4.310.0000.06719.12
5.4.300.0070.06719.18
5.4.290.0200.07019.13
5.4.280.0070.06719.17
5.4.270.0130.07018.84
5.4.260.0230.05018.84
5.4.250.0070.07719.02
5.4.240.0170.06719.13
5.4.230.0130.05319.04
5.4.220.0100.07018.87
5.4.210.0130.06319.18
5.4.200.0030.05719.08
5.4.190.0100.03719.21
5.4.180.0030.04719.21
5.4.170.0030.08318.84
5.4.160.0030.05719.21
5.4.150.0070.04319.14
5.4.140.0030.05316.39
5.4.130.0000.04316.39
5.4.120.0000.04316.36
5.4.110.0070.02716.40
5.4.100.0030.04016.49
5.4.90.0070.06716.40
5.4.80.0030.07016.25
5.4.70.0030.07716.32
5.4.60.0100.04716.24
5.4.50.0000.04316.39
5.4.40.0030.04016.36
5.4.30.0100.06316.24
5.4.20.0000.07316.47
5.4.10.0000.06316.23
5.4.00.0100.07015.81
5.3.290.0030.08314.71
5.3.280.0100.07314.58
5.3.270.0030.04314.66
5.3.260.0030.07714.53
5.3.250.0070.07714.63
5.3.240.0100.07314.66
5.3.230.0030.04014.72
5.3.220.0130.05314.50
5.3.210.0070.06014.62
5.3.200.0100.06314.50
5.3.190.0130.07314.67
5.3.180.0030.05314.54
5.3.170.0100.04014.59
5.3.160.0100.07014.66
5.3.150.0130.03714.68
5.3.140.0100.07014.50
5.3.130.0000.03714.55
5.3.120.0070.03014.67
5.3.110.0070.08014.53
5.3.100.0030.07714.07
5.3.90.0100.06713.98
5.3.80.0100.07013.95
5.3.70.0000.04014.14
5.3.60.0030.04714.12
5.3.50.0070.07013.86
5.3.40.0100.04014.05
5.3.30.0030.06714.00
5.3.20.0000.07713.71
5.3.10.0070.03713.79
5.3.00.0070.02713.57
5.2.170.0030.05711.64
5.2.160.0100.05311.64
5.2.150.0070.06311.64
5.2.140.0070.06011.64
5.2.130.0030.03311.64
5.2.120.0030.06311.64
5.2.110.0000.05711.64
5.2.100.0030.02311.64
5.2.90.0000.02711.64
5.2.80.0000.05011.64
5.2.70.0000.04311.64
5.2.60.0100.05311.64
5.2.50.0030.02711.64
5.2.40.0000.05311.64
5.2.30.0030.06311.64
5.2.20.0100.04011.64
5.2.10.0070.04311.64
5.2.00.0000.02711.64
5.1.60.0070.04711.64
5.1.50.0070.05311.64
5.1.40.0000.05311.64
5.1.30.0030.03311.64
5.1.20.0030.03711.64
5.1.10.0000.05711.64
5.1.00.0030.05011.64
5.0.50.0030.01711.64
5.0.40.0030.04011.64
5.0.30.0000.06311.64
5.0.20.0070.04311.64
5.0.10.0030.04311.64
5.0.00.0030.03311.64
4.4.90.0070.02311.64
4.4.80.0000.01311.64
4.4.70.0000.03011.64
4.4.60.0030.03311.64
4.4.50.0000.01311.64
4.4.40.0070.01711.64
4.4.30.0000.02711.64
4.4.20.0070.03311.64
4.4.10.0070.03011.64
4.4.00.0000.02711.64
4.3.110.0000.01711.64
4.3.100.0070.02711.64
4.3.90.0000.03311.64
4.3.80.0000.05711.64
4.3.70.0030.03011.64
4.3.60.0000.03311.64
4.3.50.0100.01711.64
4.3.40.0070.03711.64
4.3.30.0030.03311.64
4.3.20.0000.01711.64
4.3.10.0030.01311.64
4.3.00.0030.03011.64

preferences:
41.2 ms | 401 KiB | 5 Q