3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = "/(?<![\d.])(\d{1,2}'|\d{0,2}\.\d{1,2}')?(?![\d.](?=\d))/m"; $string = "thee hight is 15'"; preg_match_all($regex,$string,$matches); var_dump($matches); ?>
based on ljdST

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.00.0000.01619.14
7.1.100.0070.00718.19
7.1.70.0040.00417.38
7.1.60.0040.00717.42
7.1.50.0000.01017.19
7.1.40.0070.00316.87
7.1.30.0040.00716.79
7.1.20.0070.00417.11
7.1.10.0060.00616.61
7.1.00.0030.00516.92
7.0.200.0040.00417.02
7.0.190.0000.00716.79
7.0.180.0040.00716.41
7.0.170.0000.00916.32
7.0.160.0040.00416.48
7.0.150.0060.00616.17
7.0.140.0000.00916.45
7.0.130.0070.00716.56
7.0.120.0050.00316.75
7.0.110.0030.01016.46
7.0.100.0000.00716.38
7.0.90.0040.00416.59
7.0.80.0000.01516.60
7.0.70.0060.00316.43
7.0.60.0060.00616.39
7.0.50.0000.00916.36
7.0.40.0000.02115.26
7.0.30.0030.00515.26
7.0.20.0000.00815.26
7.0.10.0000.00815.26
7.0.00.0040.00415.26
hhvm-3.17.30.0460.08898.82
hhvm-3.15.40.0300.078100.93
hhvm-3.13.20.0330.149109.58
hhvm-3.12.140.0540.102113.99
hhvm-3.11.10.0310.086106.73
hhvm-3.10.10.0230.089103.78
5.6.300.0040.04620.81
5.6.290.0000.04820.67
5.6.280.0030.04521.00
5.6.270.0060.05521.07
5.6.260.0030.04420.86
5.6.250.0000.04420.89
5.6.240.0070.05420.92
5.6.230.0130.04520.87
5.6.220.0000.04520.95
5.6.210.0030.05721.04
5.6.200.0030.04720.76
5.6.190.0000.04621.01
5.6.180.0040.04221.01
5.6.170.0030.06120.75
5.6.160.0100.03520.86
5.6.150.0130.04920.82
5.6.140.0030.04620.97
5.6.130.0000.04520.92
5.6.120.0030.04120.98
5.6.110.0100.03520.73
5.6.100.0070.04020.79
5.6.90.0030.04020.80
5.6.80.0100.07420.23
5.6.70.0070.04020.13
5.6.60.0000.04920.39
5.6.50.0000.07720.21
5.6.40.0030.04020.18
5.6.30.0000.04220.08
5.6.20.0060.04120.27
5.6.10.0070.04420.16
5.6.00.0070.03420.03
5.5.380.0000.04217.41
5.5.370.0070.06717.46
5.5.360.0000.04317.56
5.5.350.0030.04017.40
5.5.340.0100.03518.03
5.5.330.0000.04218.02
5.5.320.0100.04418.06
5.5.310.0070.06218.05
5.5.300.0030.05617.96
5.5.290.0030.04118.02
5.5.280.0090.03417.70
5.5.270.0070.03718.02
5.5.260.0060.03718.10
5.5.250.0000.04817.93
5.5.240.0070.04317.38
5.5.230.0000.05017.12
5.5.220.0000.05317.14
5.5.210.0060.03817.12
5.5.200.0060.03617.21
5.5.190.0070.03417.29
5.5.180.0090.03617.09
5.5.160.0070.07817.38
5.5.150.0000.04117.29
5.5.140.0090.03117.41
5.5.130.0030.03917.37
5.5.120.0070.03817.34
5.5.110.0070.03417.37
5.5.100.0030.03717.19
5.5.90.0030.03917.19
5.5.80.0130.06617.31
5.5.70.0030.06417.18
5.5.60.0000.04717.27
5.5.50.0070.04917.35
5.5.40.0000.06117.36
5.5.30.0030.07017.26
5.5.20.0000.04317.25
5.5.10.0000.06817.27
5.5.00.0000.04817.29
5.4.450.0100.03419.32
5.4.440.0070.03719.36
5.4.430.0030.04819.34
5.4.420.0070.03619.39
5.4.410.0000.05519.21
5.4.400.0000.04518.98
5.4.390.0030.04318.98
5.4.380.0000.04118.98
5.4.370.0100.05218.96
5.4.360.0030.04918.95
5.4.350.0000.04619.07
5.4.340.0030.04319.12
5.4.320.0070.05218.95
5.4.310.0000.04319.16
5.4.300.0160.04619.04
5.4.290.0060.06118.89
5.4.280.0030.05419.02
5.4.270.0030.04419.02
5.4.260.0070.03719.04
5.4.250.0000.09218.87
5.4.240.0070.06518.80
5.4.230.0100.07418.97
5.4.220.0000.04619.01
5.4.210.0000.04118.97
5.4.200.0070.07019.02
5.4.190.0030.05119.02
5.4.180.0000.04619.04
5.4.170.0230.04319.11
5.4.160.0030.04218.79
5.4.150.0000.04819.14
5.4.140.0000.03816.39
5.4.130.0030.03816.61
5.4.120.0000.04016.65
5.4.110.0030.04216.50
5.4.100.0030.03816.69
5.4.90.0060.03516.57
5.4.80.0030.05316.43
5.4.70.0000.04116.56
5.4.60.0000.03716.30
5.4.50.0000.03716.61
5.4.40.0100.07016.36
5.4.30.0090.06316.57
5.4.20.0000.06416.55
5.4.10.0030.05516.54
5.4.00.0000.03915.84
5.3.290.0030.06215.26
5.3.280.0030.04415.26
5.3.270.0030.05015.26
5.3.260.0030.04215.26
5.3.250.0000.03815.26
5.3.240.0030.03715.26
5.3.230.0000.04015.26
5.3.220.0070.03215.26
5.3.210.0030.03715.26
5.3.200.0000.04115.26
5.3.190.0030.03715.26
5.3.180.0030.03615.26
5.3.170.0030.03915.26
5.3.160.0030.04015.26
5.3.150.0000.07415.26
5.3.140.0030.06415.26
5.3.130.0030.07715.26
5.3.120.0030.08115.26
5.3.110.0030.04015.26
5.3.100.0030.03515.26
5.3.90.0030.04015.26
5.3.80.0030.03615.26
5.3.70.0070.03415.26
5.3.60.0030.04415.26
5.3.50.0000.04015.26
5.3.40.0090.03215.26
5.3.30.0000.04415.26
5.3.20.0000.04415.26
5.3.10.0030.07315.26
5.3.00.0070.03115.26
5.2.170.0000.03515.26
5.2.160.0030.04015.26
5.2.150.0000.03515.26
5.2.140.0060.02915.26
5.2.130.0030.03015.26
5.2.120.0000.05415.26
5.2.110.0000.03415.26
5.2.100.0000.03115.26
5.2.90.0100.04615.26
5.2.80.0090.02515.26
5.2.70.0000.03315.26
5.2.60.0000.03315.26
5.2.50.0030.02715.26
5.2.40.0030.02915.26
5.2.30.0070.02415.26
5.2.20.0100.02015.26
5.2.10.0000.03315.26
5.2.00.0030.02815.26
5.1.60.0030.02315.26
5.1.50.0000.02615.26
5.1.40.0000.02515.26
5.1.30.0000.03215.26
5.1.20.0030.04815.26
5.1.10.0000.04515.26
5.1.00.0030.03015.26
5.0.50.0000.02415.26
5.0.40.0000.02415.26
5.0.30.0000.04315.26
5.0.20.0030.02115.26
5.0.10.0100.02215.26
5.0.00.0060.03015.26
4.4.90.0000.02015.26
4.4.80.0000.01815.26
4.4.70.0030.03415.26
4.4.60.0000.01815.26
4.4.50.0000.01715.26
4.4.40.0000.02515.26
4.4.30.0000.04215.26
4.4.20.0070.03015.26
4.4.10.0070.01715.26
4.4.00.0060.02215.26
4.3.110.0000.02015.26
4.3.100.0070.01015.26
4.3.90.0030.01615.26
4.3.80.0060.02215.26
4.3.70.0030.01315.26
4.3.60.0000.01615.26
4.3.50.0070.03315.26
4.3.40.0000.03415.26
4.3.30.0070.01115.26
4.3.20.0000.01815.26
4.3.10.0000.02815.26
4.3.00.0030.02015.26