3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = '#Новости_0629 #Мариуполь #митинг #война Подробнее: http://www.0629.com.ua/news/488931'; $t_full = "В 14.00 возле горсовета собрались сотни людей, которые выступают за единую Украину и против ввода российских вой..."; $description_text_lenght = 200 - strlen($t); $full_text = mb_substr($t_full , 0, $description_text_lenght) . $t; var_dump( array($full_text,mb_substr($t, 0,1,'UTF-8'),iconv_strlen($t,'UTF-8'),strlen($t)) );

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.2.60.0100.00717.02
7.2.00.0100.00319.62
7.1.200.0090.00615.94
7.1.100.0030.01318.32
7.1.70.0090.00317.28
7.1.60.0070.02019.82
7.1.50.0000.01217.33
7.1.00.0000.08022.46
7.0.200.0040.00416.70
7.0.140.0100.07022.27
7.0.60.0100.06320.02
7.0.50.0070.08018.00
7.0.40.0030.06320.11
7.0.30.0230.05320.35
7.0.20.0200.03720.28
7.0.10.0000.05020.24
7.0.00.0130.08020.16
5.6.280.0030.07721.14
5.6.210.0100.08320.76
5.6.200.0000.04718.35
5.6.190.0170.07320.77
5.6.180.0370.05320.65
5.6.170.0300.06720.79
5.6.160.0100.07020.56
5.6.150.0070.06318.28
5.6.140.0170.07018.33
5.6.130.0030.08718.29
5.6.120.0100.04721.16
5.6.110.0070.04321.11
5.6.100.0070.08021.09
5.6.90.0030.08721.07
5.6.80.0170.07320.47
5.5.350.0230.07320.42
5.5.340.0100.05018.19
5.5.330.0030.06320.37
5.5.320.2630.04720.29
5.5.310.0270.04020.42
5.5.300.0070.04018.18
5.5.290.0070.05018.07
5.5.280.0130.08320.99
5.5.270.0130.07721.00
5.5.260.0070.09020.98
5.5.250.0070.05020.73
5.5.240.0070.08020.25
5.4.450.0030.07019.27
5.4.440.0030.06319.42
5.4.430.0030.08319.39
5.4.420.0030.08019.57
5.4.410.0030.05719.30
5.4.400.0000.05019.30
5.4.390.0070.05019.30
5.4.380.0030.04719.24
5.4.370.0100.03319.41
5.4.360.0030.04019.25
5.4.350.0070.07319.41
5.4.340.0000.06719.26
5.4.320.0030.07318.94
5.4.310.0130.05319.41
5.4.300.0100.05319.32
5.4.290.0000.06019.29
5.4.280.0030.04019.40
5.4.270.0070.07319.38
5.4.260.0030.05718.95
5.4.250.0030.05319.25
5.4.240.0030.07719.11
5.4.230.0070.07319.24
5.4.220.0000.08319.39
5.4.210.0000.05019.23
5.4.200.0030.06019.21
5.4.190.0070.07019.21
5.4.180.0030.07019.36
5.4.170.0000.07319.39
5.4.160.0100.06018.94
5.4.150.0030.06719.23
5.4.140.0070.06016.39
5.4.130.0030.08016.67
5.4.120.0030.07716.58
5.4.110.0000.08016.41
5.4.100.0030.07716.65
5.4.90.0000.06316.68
5.4.80.0030.07016.40
5.4.70.0000.07316.63
5.4.60.0000.06316.61
5.4.50.0070.04016.59
5.4.40.0000.04016.48
5.4.30.0000.03716.60
5.4.20.0030.07316.65
5.4.10.0030.04316.64
5.4.00.0100.03015.92
5.3.290.0100.06714.76
5.3.280.0030.08014.63
5.3.270.0030.07314.61
5.3.260.0000.04714.79
5.3.250.0070.06714.67
5.3.240.0070.04014.70
5.3.230.0030.05714.84
5.3.220.0000.04714.55
5.3.210.0030.05714.60
5.3.200.0030.04714.60
5.3.190.0000.08014.55
5.3.180.0070.06714.55
5.3.170.0030.07714.63
5.3.160.0000.07714.58
5.3.150.0100.05014.68
5.3.140.0000.08014.56
5.3.130.0070.05314.57
5.3.120.0070.07314.64
5.3.110.0030.07014.56
5.3.100.0030.05714.05
5.3.90.0030.05714.03
5.3.80.0000.07313.95
5.3.70.0000.08014.20
5.3.60.0030.07013.99
5.3.50.0030.04314.08
5.3.40.0100.06314.01
5.3.30.0000.04714.00
5.3.20.0000.05013.82
5.3.10.0030.05313.77
5.3.00.0030.05013.88
5.2.170.0000.03712.10
5.2.160.0030.06012.10
5.2.150.0000.03712.10
5.2.140.0030.06312.10
5.2.130.0030.05012.10
5.2.120.0030.03712.10
5.2.110.0030.05012.10
5.2.100.0030.06312.10
5.2.90.0030.06012.10
5.2.80.0000.04712.10
5.2.70.0070.06012.10
5.2.60.0030.05012.10
5.2.50.0000.06312.10
5.2.40.0030.05712.10
5.2.30.0000.04712.10
5.2.20.0000.05712.10
5.2.10.0000.04712.10
5.2.00.0030.05312.10
5.1.60.0000.05712.10
5.1.50.0000.06012.10
5.1.40.0070.05312.10
5.1.30.0030.04012.10
5.1.20.0030.03312.10
5.1.10.0100.04312.10
5.1.00.0070.04712.10
5.0.50.0100.04012.10
5.0.40.0000.05012.10
5.0.30.0000.06012.10
5.0.20.0000.03712.10
5.0.10.0030.02712.10
5.0.00.0000.03312.10
4.4.90.0000.03712.10
4.4.80.0000.03012.10
4.4.70.0000.03312.10
4.4.60.0000.02012.10
4.4.50.0070.02712.10
4.4.40.0100.04312.10
4.4.30.0000.03712.10
4.4.20.0000.03712.10
4.4.10.0030.01312.10
4.4.00.0000.04012.10
4.3.110.0070.03012.10
4.3.100.0000.02012.10
4.3.90.0030.02012.10
4.3.80.0000.03312.10
4.3.70.0030.02712.10
4.3.60.0000.03312.10
4.3.50.0070.01712.10
4.3.40.0000.02712.10
4.3.30.0000.01712.10
4.3.20.0000.02012.10
4.3.10.0070.03012.10
4.3.00.0030.03312.10