3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'bla bla </container> e <container style="autore"> bla bla bla'; $value = preg_replace('#.*>\s?([a-z]+|\,|\;)\s?<container style="autore">.*#m', 'X\1X', $string); echo $value;

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.0000.01217.11
7.2.50.0100.00716.72
7.1.200.0000.01415.86
7.1.70.0050.00317.37
7.1.60.0040.02119.32
7.1.50.0070.01416.84
7.1.00.0000.03722.29
7.0.200.0060.00316.96
7.0.140.0000.07722.10
7.0.120.0170.08320.15
7.0.110.0070.05722.11
7.0.100.0100.06722.03
7.0.90.0030.07322.14
7.0.80.0000.04322.00
7.0.70.0030.04022.18
7.0.60.0030.03321.93
7.0.50.0000.03321.95
7.0.40.0000.03720.02
7.0.30.0030.03320.13
7.0.20.0070.02720.00
7.0.10.0030.03320.06
7.0.00.0070.03020.15
5.6.280.0070.07021.06
5.6.270.0070.04021.04
5.6.260.0070.04021.02
5.6.250.0100.07320.91
5.6.240.0070.06020.70
5.6.230.0030.04320.77
5.6.220.0000.04320.95
5.6.210.0030.04020.87
5.6.200.0000.04320.86
5.6.190.0070.04320.98
5.6.180.0000.04321.03
5.6.170.0030.03320.86
5.6.160.0030.04020.98
5.6.150.0000.05020.69
5.6.140.0030.03320.88
5.6.130.0130.02320.94
5.6.120.0000.03720.88
5.6.110.0030.03720.99
5.6.100.0100.02720.75
5.6.90.0000.04320.93
5.6.80.0030.03020.26
5.6.70.0070.02720.23
5.6.60.0000.04020.38
5.6.50.0070.03320.36
5.6.40.0030.03720.10
5.6.30.0000.03720.30
5.6.20.0030.08020.09
5.6.10.0000.04020.13
5.6.00.0000.04020.12
5.5.380.0070.03317.62
5.5.370.0030.03717.63
5.5.360.0030.04017.43
5.5.350.0030.03017.51
5.5.340.0000.04018.00
5.5.330.0030.03017.87
5.5.320.0000.03318.13
5.5.310.0000.04017.84
5.5.300.0070.04017.98
5.5.290.0000.03718.02
5.5.280.0030.03018.16
5.5.270.0000.03718.00
5.5.260.0030.03017.98
5.5.250.0000.03317.58
5.5.240.0000.04017.23
5.5.230.0030.03017.48
5.5.220.0000.04017.63
5.5.210.0000.03317.48
5.5.200.0100.02717.34
5.5.190.0070.07317.45
5.5.180.0030.07317.20
5.5.160.0030.07317.47
5.5.150.0030.08017.60
5.5.140.0000.05717.37
5.5.130.0030.03317.51
5.5.120.0000.07717.21
5.5.110.0070.06017.11
5.5.100.0030.04317.51
5.5.90.0000.05017.26
5.5.80.0000.06317.09
5.5.70.0030.05317.10
5.5.60.0030.03317.40
5.5.50.0000.04317.49
5.5.40.0000.03717.13
5.5.30.0070.06317.00
5.5.20.0030.07017.25
5.5.10.0000.05017.39
5.5.00.0070.07017.22
5.4.450.0000.03319.31
5.4.440.0000.04319.26
5.4.430.0030.03019.44
5.4.420.0030.03319.43
5.4.410.0030.04019.32
5.4.400.0000.03318.89
5.4.390.0070.02719.13
5.4.380.0030.03718.95
5.4.370.0000.03318.95
5.4.360.0030.03019.12
5.4.350.0000.04319.07
5.4.340.0070.05019.02
5.4.320.0030.06719.22
5.4.310.0030.03318.93
5.4.300.0000.07018.89
5.4.290.0030.04718.96
5.4.280.0030.06718.96
5.4.270.0000.03718.88
5.4.260.0000.05018.93
5.4.250.0100.04318.89
5.4.240.0000.03719.21
5.4.230.0030.03319.10
5.4.220.0030.03718.89
5.4.210.0000.03718.96
5.4.200.0070.05018.97
5.4.190.0070.03719.02
5.4.180.0100.06018.88
5.4.170.0100.04319.05
5.4.160.0070.03318.96
5.4.150.0030.04019.19
5.4.140.0070.08016.43
5.4.130.0100.06716.35
5.4.120.0000.04316.29
5.4.110.0100.04716.43
5.4.100.0000.03716.36
5.4.90.0100.05716.43
5.4.80.0170.05316.31
5.4.70.0070.03716.46
5.4.60.0100.05016.20
5.4.50.0000.03716.16
5.4.40.0100.03316.11
5.4.30.0070.04016.32
5.4.20.0100.03016.32
5.4.10.0070.07316.44
5.4.00.0070.06015.66
5.3.290.0000.03714.58
5.3.280.0000.03714.53
5.3.270.0030.06714.55
5.3.260.0030.03714.63
5.3.250.0070.03314.43
5.3.240.0100.02714.46
5.3.230.0000.06314.66
5.3.220.0070.06014.66
5.3.210.0100.06314.50
5.3.200.0030.04714.59
5.3.190.0000.07014.46
5.3.180.0000.08014.46
5.3.170.0000.03714.46
5.3.160.0030.05314.40
5.3.150.0030.06014.46
5.3.140.0030.07314.49
5.3.130.0100.03014.56
5.3.120.0030.03714.44
5.3.110.0030.05314.42
5.3.100.0070.04714.04
5.3.90.0000.03713.86
5.3.80.0070.03313.86
5.3.70.0030.03713.95
5.3.60.0070.04713.79
5.3.50.0070.03313.80
5.3.40.0000.03713.87
5.3.30.0000.03713.81
5.3.20.0030.03713.63
5.3.10.0030.05713.50
5.3.00.0070.03713.65
5.2.170.0000.03011.07
5.2.160.0030.04011.05
5.2.150.0030.04711.16
5.2.140.0030.05311.05
5.2.130.0170.03710.90
5.2.120.0030.03011.25
5.2.110.0000.03711.05
5.2.100.0030.06011.00
5.2.90.0070.05310.89
5.2.80.0030.02711.11
5.2.70.0000.03011.10
5.2.60.0100.03310.99
5.2.50.0030.06010.80
5.2.40.0000.04710.78
5.2.30.0030.05010.86
5.2.20.0030.06010.75
5.2.10.0030.02711.00
5.2.00.0030.03310.62
5.1.60.0070.04310.15
5.1.50.0000.02310.24
5.1.40.0030.0279.95
5.1.30.0000.06310.41
5.1.20.0070.04310.29
5.1.10.0000.03710.04
5.1.00.0030.0239.95
5.0.50.0030.0479.95
5.0.40.0070.0439.95
5.0.30.0030.0609.95
5.0.20.0100.0239.95
5.0.10.0000.0479.95
5.0.00.0030.0579.95
4.4.90.0030.0109.95
4.4.80.0000.0239.95
4.4.70.0030.0139.95
4.4.60.0030.0139.95
4.4.50.0000.0139.95
4.4.40.0130.0339.95
4.4.30.0070.0109.95
4.4.20.0000.0279.95
4.4.10.0000.0179.95
4.4.00.0030.0479.95
4.3.110.0030.0339.95
4.3.100.0100.0239.95
4.3.90.0000.0339.95
4.3.80.0000.0539.95
4.3.70.0000.0379.95
4.3.60.0030.0179.95
4.3.50.0000.0409.95
4.3.40.0000.0239.95
4.3.30.0000.0379.95
4.3.20.0000.0279.95
4.3.10.0000.0279.95
4.3.00.0000.0309.95