3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str ="test Приходите в наш <a d>test</a> видеочат, бывший когда-то test'м.testa больше нет. Забейте на <h2>test</h3> Труконф test"; echo preg_replace('/<(?:a|h\d)[^>]*>test\K(*SKIP)(*FAIL)|test/', '<$0>', $str).PHP_EOL; echo preg_replace('/a{3}c/', '<$0>', 'aaaac');

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.0rc40.0190.00698.97
7.3.0rc30.0260.00316.16
7.3.0beta10.0030.00612.88
7.3.0alpha10.0080.00312.79
7.2.60.0140.00316.90
7.2.00.0040.01119.57
7.1.200.0080.00415.58
7.1.100.0000.01418.10
7.1.70.0030.01017.27
7.1.60.0130.01319.82
7.1.50.0040.01117.15
7.1.00.0070.07322.42
7.0.200.0100.00616.61
7.0.140.0100.07021.97
7.0.110.0000.08719.94
7.0.100.0100.07320.10
7.0.90.0070.07720.06
7.0.80.0170.07719.93
7.0.70.0070.07320.05
7.0.60.0100.08319.92
7.0.50.0030.08320.36
7.0.40.0100.07720.05
7.0.30.0100.09020.13
7.0.20.0100.07720.04
7.0.10.0270.06020.15
7.0.00.0130.07320.27
5.6.280.0000.07720.86
5.6.260.0030.07320.65
5.6.250.0000.08720.72
5.6.240.0070.08320.68
5.6.230.0100.07320.59
5.6.220.0170.07320.67
5.6.210.0030.08320.61
5.6.200.0030.09021.05
5.6.190.0030.07720.95
5.6.180.0070.07720.98
5.6.170.0070.08321.13
5.6.160.0030.08721.07
5.6.150.0070.05321.14
5.6.140.0030.08721.25
5.6.130.0100.08320.93
5.6.120.0130.08021.28
5.6.110.0000.09720.93
5.6.100.0170.06721.03
5.6.90.0030.05320.90
5.6.80.0070.08020.56
5.6.70.0130.07020.51
5.6.60.0100.07020.55
5.6.50.0030.05020.64
5.6.40.0070.07720.29
5.6.30.0070.08020.64
5.6.20.0130.07020.27
5.6.10.0030.08020.29
5.6.00.0070.08720.35
5.5.380.0030.07320.32
5.5.370.0070.08320.32
5.5.360.0070.08020.23
5.5.350.0200.06020.38
5.5.340.0170.07320.89
5.5.330.0170.07720.90
5.5.320.0070.08020.89
5.5.310.0100.08320.69
5.5.300.0100.07720.74
5.5.290.0170.07320.89
5.5.280.0130.07720.80
5.5.270.0070.08320.73
5.5.260.0100.07720.85
5.5.250.0070.07720.54
5.5.240.0130.07020.34
5.5.230.0130.07720.11
5.5.220.0100.07020.17
5.5.210.0100.07320.31
5.5.200.0170.05320.17
5.5.190.0000.09020.23
5.5.180.0170.06720.38
5.5.160.0030.07020.29
5.5.150.0130.06720.14
5.5.140.0170.06020.04
5.5.130.0200.06320.23
5.5.120.0030.08720.25
5.5.110.0130.04020.14
5.5.100.0130.07319.98
5.5.90.0070.07320.13
5.5.80.0070.06020.01
5.5.70.0030.04319.96
5.5.60.0070.04020.13
5.5.50.0030.07720.12
5.5.40.0030.05719.98
5.5.30.0100.03720.16
5.5.20.0200.06319.97
5.5.10.0070.08320.05
5.5.00.0030.08019.90
5.4.450.0070.08019.31
5.4.440.0100.08319.36
5.4.430.0070.05019.39
5.4.420.0130.07319.27
5.4.410.0030.07719.27
5.4.400.0100.07719.18
5.4.390.0070.04719.00
5.4.380.0070.08019.02
5.4.370.0100.06319.00
5.4.360.0030.07019.03
5.4.350.0000.05318.93
5.4.340.0130.04319.02
5.4.320.0070.06719.16
5.4.310.0030.07719.03
5.4.300.0070.07719.16
5.4.290.0000.08318.90
5.4.280.0200.03718.94
5.4.270.0100.07019.00
5.4.260.0070.07719.07
5.4.250.0130.04019.11
5.4.240.0130.06319.01
5.4.230.0170.06718.97
5.4.220.0030.07319.02
5.4.210.0100.05319.02
5.4.200.0100.07318.99
5.4.190.0170.06319.26
5.4.180.0100.05018.92
5.4.170.0100.07319.11
5.4.160.0130.07319.02
5.4.150.0130.07019.00
5.4.140.0030.06716.47
5.4.130.0100.07016.34
5.4.120.0030.08016.38
5.4.110.0100.06016.29
5.4.100.0070.07316.41
5.4.90.0200.06016.48
5.4.80.0130.06016.27
5.4.70.0000.04716.47
5.4.60.0100.06016.34
5.4.50.0070.04316.25
5.4.40.0000.05016.26
5.4.30.0130.06316.32
5.4.20.0100.06716.24
5.4.10.0030.07316.05
5.4.00.0070.04015.92
5.3.290.0030.08014.45
5.3.280.0070.04014.53
5.3.270.0070.07314.62
5.3.260.0070.06714.66
5.3.250.0100.07314.45
5.3.240.0070.07714.62
5.3.230.0100.07014.48
5.3.220.0170.06014.50
5.3.210.0030.07314.39
5.3.200.0100.05014.35
5.3.190.0100.07314.41
5.3.180.0070.07314.39
5.3.170.0030.07714.57
5.3.160.0100.06714.58
5.3.150.0070.07714.49
5.3.140.0070.07314.34
5.3.130.0070.08014.33
5.3.120.0270.05014.55
5.3.110.0130.06314.60
5.3.100.0070.07713.99
5.3.90.0070.07314.12
5.3.80.0070.07313.88
5.3.70.0230.05013.91
5.3.60.0100.04713.89
5.3.50.0030.08014.02
5.3.40.0030.07314.00
5.3.30.0100.07013.69
5.3.20.0100.07013.63
5.3.10.0230.05713.54
5.3.00.0030.07013.53
5.2.170.0030.06311.87
5.2.160.0130.05311.87
5.2.150.0000.04011.87
5.2.140.0000.07011.87
5.2.130.0100.06011.87
5.2.120.0070.05711.87
5.2.110.0070.05311.87
5.2.100.0070.07011.87
5.2.90.0100.05311.87
5.2.80.0100.05311.87
5.2.70.0030.05711.87
5.2.60.0030.04711.87
5.2.50.0030.06011.87
5.2.40.0100.06011.87
5.2.30.0070.06011.87
5.2.20.0100.05711.87
5.2.10.0030.06311.87
5.2.00.0000.04011.87
5.1.60.0070.05311.87
5.1.50.0030.05311.87
5.1.40.0000.05711.87
5.1.30.0000.05711.87
5.1.20.0030.04311.87
5.1.10.0130.04711.87
5.1.00.0000.06011.87
5.0.50.0030.04311.87
5.0.40.0100.03311.87
5.0.30.0070.05711.87
5.0.20.0070.03711.87
5.0.10.0030.03011.87
5.0.00.0070.06011.87
4.4.90.0000.01711.87
4.4.80.0030.03311.87
4.4.70.0070.03011.87
4.4.60.0000.03711.87
4.4.50.0000.03311.87
4.4.40.0200.03311.87
4.4.30.0070.03311.87
4.4.20.0000.04011.87
4.4.10.0100.02711.87
4.4.00.0070.04711.87
4.3.110.0000.03311.87
4.3.100.0030.02711.87
4.3.90.0000.03011.87
4.3.80.0100.03711.87
4.3.70.0000.02711.87
4.3.60.0030.01711.87
4.3.50.0000.03711.87
4.3.40.0030.05011.87
4.3.30.0000.03011.87
4.3.20.0000.03711.87
4.3.10.0000.03711.87
4.3.00.0030.02711.87