3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = <<<STR THEDLSDARNVNS CCVBXXMTGFRWS CVIYTVBVSDOPTR VBNMAITYSURFD MOTYYERSAWERTY MOITRUHDYRTBDI VNOWUNMBORN STR; $str = preg_replace("/\s|\n/", "", $str); $fib = [1, 2, 3, 5, 8, 13]; foreach ($fib as $pos) { echo substr($str, $pos, 1); }

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.3.10.0050.00916.92
7.3.00.0060.00616.90
7.2.130.0090.00617.23
7.2.120.0100.00317.30
7.2.110.0060.00617.19
7.2.100.0060.00616.83
7.2.90.0060.00617.16
7.2.80.0080.00417.25
7.2.70.0060.00616.86
7.2.60.0060.00617.07
7.2.50.0120.00316.97
7.2.40.0040.01116.75
7.2.30.0090.00616.83
7.2.20.0070.01017.04
7.2.10.0110.00417.10
7.2.00.0060.00918.46
7.1.250.0100.00315.77
7.1.200.0080.00616.04
7.1.100.0000.01118.26
7.1.70.0090.00317.47
7.1.60.0070.00717.49
7.1.50.0000.01117.21
7.1.00.0000.07722.37
7.0.200.0000.02117.11
7.0.140.0070.06721.99
7.0.60.0030.08720.05
7.0.50.0130.07317.92
7.0.40.0070.09019.98
7.0.30.0270.05020.03
7.0.20.0330.03720.18
7.0.10.0230.04320.14
7.0.00.0100.07020.05
5.6.280.0070.07021.09
5.6.210.0100.04020.69
5.6.200.0070.05318.12
5.6.190.0070.07320.39
5.6.180.3200.03720.61
5.6.170.0230.09020.51
5.6.160.0130.05720.32
5.6.150.0200.07318.16
5.6.140.0100.06318.21
5.6.130.0100.08318.22
5.6.120.0100.05720.99
5.6.110.0070.08720.95
5.6.100.0130.08020.97
5.6.90.0130.07321.09
5.6.80.0170.07020.39
5.6.70.0230.04020.52
5.5.350.0000.08020.46
5.5.340.0030.08717.98
5.5.330.0100.06020.38
5.5.320.0270.07720.28
5.5.310.0200.05320.41
5.5.300.0030.06717.98
5.5.290.0130.05017.92
5.5.280.0070.05320.63
5.5.270.0130.07320.76
5.5.260.0130.07320.75
5.5.250.0100.08320.46
5.5.240.0100.07720.34
5.4.450.0600.07719.62
5.4.440.0770.05719.29
5.4.430.0730.05719.60
5.4.420.0170.05719.39
5.4.410.0830.04319.10
5.4.400.1300.00018.71
5.4.390.1400.00018.74
5.4.380.0300.05718.55
5.4.370.0330.05018.60
5.4.360.0270.05718.50
5.4.350.0130.05018.53
5.4.340.0170.05318.72
5.4.320.0080.03712.45
5.4.310.0100.03412.45
5.4.300.0060.04112.45
5.4.290.0080.04412.45
5.4.280.0050.04112.35
5.4.270.0090.04012.35
5.4.260.0100.06018.79
5.4.250.0070.05318.65
5.4.240.0200.05018.97
5.4.230.0130.05318.99
5.4.220.0070.05318.80
5.4.210.0230.04318.69
5.4.200.0100.05018.82
5.4.190.0170.05018.69
5.4.180.0100.05318.74
5.4.170.0130.05318.86
5.4.160.0030.06318.70
5.4.150.0070.06318.88
5.4.140.0030.05716.43
5.4.130.0130.05316.22
5.4.120.0230.05716.41
5.4.110.0100.05716.46
5.4.100.0000.05316.42
5.4.90.0130.04016.46
5.4.80.0070.07316.21
5.4.70.0030.07716.37
5.4.60.0000.05316.24
5.4.50.0100.04316.32
5.4.40.0070.05016.46
5.4.30.0130.04316.25
5.4.20.0130.04016.37
5.4.10.0070.05016.21
5.4.00.0030.05315.70
5.3.290.0070.03712.80
5.3.280.0230.05714.45
5.3.270.0170.07314.48
5.3.260.0070.06314.38
5.3.250.0130.07014.61
5.3.240.0170.05014.75
5.3.230.0130.06714.60
5.3.220.0070.05014.59
5.3.210.0170.04714.56
5.3.200.0070.07014.57
5.3.190.0100.07314.41
5.3.180.0070.07314.40
5.3.170.0130.05314.34
5.3.160.0000.05714.26
5.3.150.0030.05314.42
5.3.140.0070.05014.73
5.3.130.0100.05314.56
5.3.120.0030.05314.46
5.3.110.0100.05014.34
5.3.100.0170.04713.91
5.3.90.0070.04714.04
5.3.80.0100.06313.87
5.3.70.0100.05013.93
5.3.60.0030.05313.92
5.3.50.0030.05013.94
5.3.40.0070.07013.96
5.3.30.0030.05313.93
5.3.20.0030.05013.63
5.3.10.0170.04313.36
5.3.00.0030.05013.73
5.2.170.0000.04711.03
5.2.160.0070.03711.30
5.2.150.0030.04311.16
5.2.140.0100.03711.05
5.2.130.0030.04011.19
5.2.120.0000.04011.10
5.2.110.0000.04311.20
5.2.100.0000.04311.25
5.2.90.0000.04310.93
5.2.80.0000.04311.00
5.2.70.0030.04710.85
5.2.60.0100.03710.97
5.2.50.0100.03710.91
5.2.40.0030.04010.90
5.2.30.0100.03710.97
5.2.20.0070.05310.71
5.2.10.0170.03010.76
5.2.00.0100.04710.79
5.1.60.0030.04310.06
5.1.50.0030.04710.09
5.1.40.0030.03710.21
5.1.30.0030.04010.25
5.1.20.0000.04010.53
5.1.10.0070.03010.03
5.1.00.0030.0339.84
5.0.50.0030.0278.79
5.0.40.0030.0278.45
5.0.30.0000.0438.28
5.0.20.0070.0208.23
5.0.10.0000.0308.00
5.0.00.0070.0378.30
4.4.90.0070.0207.16
4.4.80.0000.0237.16
4.4.70.0000.0237.16
4.4.60.0000.0237.16
4.4.50.0030.0237.16
4.4.40.0000.0437.16
4.4.30.0030.0307.16
4.4.20.0030.0207.16
4.4.10.0000.0237.16
4.4.00.0070.0307.16
4.3.110.0030.0307.16
4.3.100.0030.0207.16
4.3.90.0030.0207.16
4.3.80.0030.0307.16
4.3.70.0000.0237.16
4.3.60.0000.0207.16
4.3.50.0000.0237.16
4.3.40.0100.0237.16
4.3.30.0030.0207.16
4.3.20.0000.0237.16
4.3.10.0030.0207.16
4.3.00.0130.0207.18