3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 50; $start = microtime(true); $code = ' $ret = ""; for ($i=0; $i<100; $i++) { $ret.= md5($i.$ret); } return $ret;'; for($i = 0; $i < $count; $i++){ eval($code); } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); $f = function(){ $ret = ''; for ($i=0; $i<100; $i++) { $ret.= md5($i.$ret); } return $ret; }; for($i = 0; $i < $count; $i++){ $f(); } printf("#2, done in %f\n", microtime(true) - $start); ?>

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.00.0040.02519.34
7.1.70.0030.01916.93
7.1.60.0100.04719.82
7.1.50.0100.04616.75
7.1.00.0000.07322.46
7.0.200.0000.02516.76
7.0.140.0070.09322.18
7.0.60.0130.10020.02
7.0.50.0000.06318.07
7.0.40.0100.10020.23
7.0.30.0270.05720.22
7.0.20.0300.06020.16
7.0.10.0200.06020.30
7.0.00.0100.06720.24
5.6.280.0070.09720.91
5.6.210.0070.09020.55
5.6.200.0100.08718.15
5.6.190.0100.10320.60
5.6.180.3170.06020.64
5.6.170.0130.05720.48
5.6.160.0100.05020.57
5.6.150.0100.11318.29
5.6.140.0070.08018.14
5.6.130.0070.06718.25
5.6.120.0070.05021.05
5.6.110.0170.09020.99
5.6.100.0170.08320.98
5.6.90.0100.09321.02
5.6.80.0000.05720.36
5.6.70.0200.10320.37
5.5.350.0200.11020.50
5.5.340.0130.10018.02
5.5.330.0100.07320.42
5.5.320.0130.07320.44
5.5.310.0200.05720.34
5.5.300.0030.10718.03
5.5.290.0070.06018.01
5.5.280.0200.09320.80
5.5.270.0030.05720.77
5.5.260.0170.09320.84
5.5.250.0070.10720.69
5.5.240.0100.07020.34
5.4.450.0930.07319.48
5.4.440.0930.09319.45
5.4.430.1030.07719.16
5.4.420.0830.08319.54
5.4.410.0800.08019.48
5.4.400.0300.07318.73
5.4.390.0300.07718.62
5.4.380.0230.08318.71
5.4.370.0130.07318.84
5.4.360.0030.08018.77
5.4.350.0100.06312.04
5.4.340.0100.05812.03
5.4.320.0130.05112.52
5.4.310.0070.05812.51
5.4.300.0120.05612.52
5.4.290.0070.05512.52
5.4.280.0070.04912.41
5.4.270.0110.05912.41
5.4.260.0090.07012.41
5.4.250.0030.07318.84
5.4.240.0100.06718.93
5.4.230.0100.07018.98
5.4.220.0030.07718.96
5.4.210.0000.07719.02
5.4.200.0130.06319.09
5.4.190.0030.07718.81
5.4.180.0100.06718.95
5.4.170.0130.06718.83
5.4.160.0170.06318.94
5.4.150.0070.07718.96
5.4.140.0100.06716.59
5.4.130.0070.06716.46
5.4.120.0130.06316.34
5.4.110.0030.07316.36
5.4.100.0070.06716.42
5.4.90.0070.06316.51
5.4.80.0070.06716.32
5.4.70.0100.06316.39
5.4.60.0070.06716.39
5.4.50.0170.05716.34
5.4.40.0000.07716.46
5.4.30.0070.07316.39
5.4.20.0130.07016.53
5.4.10.0000.07716.36
5.4.00.0030.07015.89
5.3.290.0070.06012.80
5.3.280.0100.07014.70
5.3.270.0030.07714.71
5.3.260.0000.08014.63
5.3.250.0000.07714.80
5.3.240.0100.07014.71
5.3.230.0030.07314.70
5.3.220.0030.07314.66
5.3.210.0100.07014.49
5.3.200.0170.07014.76
5.3.190.0070.07014.49
5.3.180.0070.07014.58
5.3.170.0070.07314.57
5.3.160.0070.07014.74
5.3.150.0070.07014.57
5.3.140.0030.07714.65
5.3.130.0130.07014.58
5.3.120.0070.07314.46
5.3.110.0130.07714.70
5.3.100.0100.06714.14
5.3.90.0070.07014.02
5.3.80.0100.06714.04
5.3.70.0100.07013.86
5.3.60.0070.07014.05
5.3.50.0100.06714.12
5.3.40.0000.08713.98
5.3.30.0030.07313.82
5.3.20.0100.07713.54
5.3.10.0000.07313.88
5.3.00.0070.07013.65
5.2.170.0100.03311.24
5.2.160.0030.04010.98
5.2.150.0070.05711.07
5.2.140.0100.03711.14
5.2.130.0000.04310.98
5.2.120.0100.03311.21
5.2.110.0030.04011.19
5.2.100.0000.04011.00
5.2.90.0030.04011.01
5.2.80.0030.04011.10
5.2.70.0030.04011.09
5.2.60.0030.04010.81
5.2.50.0030.04011.04
5.2.40.0070.03710.88
5.2.30.0100.03310.89
5.2.20.0070.03711.05
5.2.10.0000.04311.03
5.2.00.0100.04710.63
5.1.60.0000.03310.09
5.1.50.0070.0339.93
5.1.40.0030.0339.75
5.1.30.0030.03310.23
5.1.20.0030.03310.44
5.1.10.0070.0339.98
5.1.00.0070.0479.84
5.0.50.0100.0278.58
5.0.40.0030.0238.38
5.0.30.0030.0508.27
5.0.20.0070.0208.12
5.0.10.0000.0278.26
5.0.00.0000.0438.19
4.4.90.0030.0176.43
4.4.80.0000.0206.43
4.4.70.0030.0176.43
4.4.60.0000.0236.43
4.4.50.0030.0306.43
4.4.40.0000.0336.43
4.4.30.0070.0176.43
4.4.20.0000.0206.43
4.4.10.0000.0236.43
4.4.00.0000.0336.43
4.3.110.0000.0276.43
4.3.100.0000.0236.43
4.3.90.0000.0206.43
4.3.80.0000.0336.41
4.3.70.0000.0206.38
4.3.60.0030.0176.37
4.3.50.0000.0236.36
4.3.40.0070.0276.34
4.3.30.0000.0206.33
4.3.20.0030.0206.32
4.3.10.0030.0206.29
4.3.00.0030.0208.34

preferences:
59.92 ms | 401 KiB | 5 Q