3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'categoryparameterusedpricing_15'; // look for a match preg_match("/[categoryparameterusedpricing_\d]/", $string, $matches); echo $matches[0];
based on 9qcMe

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.0160.00616.39
7.3.00.0090.01016.50
7.2.130.0150.00716.59
7.2.120.0180.00716.50
7.2.110.0150.00716.58
7.2.100.0160.01116.55
7.2.90.0120.00916.54
7.2.80.0080.01716.68
7.2.70.0210.01217.11
7.2.60.0090.00816.61
7.2.50.0170.00616.43
7.2.40.0120.00616.27
7.2.30.0160.00316.33
7.2.20.0060.01116.52
7.2.10.0140.00416.54
7.2.00.0110.00518.14
7.1.250.0140.01115.71
7.1.200.0030.00915.86
7.1.100.0040.01218.11
7.1.70.0000.00717.47
7.1.60.0030.00717.54
7.1.50.0030.01717.12
7.1.00.0030.07322.48
7.0.200.0070.01116.80
7.0.140.0000.04021.93
7.0.60.0170.03319.93
7.0.50.0070.05017.82
7.0.40.0070.08720.21
7.0.30.0230.05720.32
7.0.20.0230.06720.31
7.0.10.0030.08020.34
7.0.00.0130.07320.21
5.6.280.0070.07021.14
5.6.210.0030.07020.60
5.6.200.0030.08718.19
5.6.190.0070.05320.61
5.6.180.0230.05320.60
5.6.170.0330.07020.49
5.6.160.0030.08720.48
5.6.150.0070.04718.18
5.6.140.0000.08318.15
5.6.130.0070.06718.18
5.6.120.0100.07720.89
5.6.110.0230.06320.88
5.6.100.0100.08021.07
5.6.90.0000.04321.09
5.6.80.0200.05720.28
5.5.350.0230.08020.36
5.5.340.0000.04717.89
5.5.330.0000.08720.36
5.5.320.0230.05320.13
5.5.310.0370.07020.30
5.5.300.0000.04318.02
5.5.290.0070.06317.88
5.5.280.0030.07720.93
5.5.270.0030.07320.87
5.5.260.0070.08720.85
5.5.250.0100.07720.69
5.5.240.0000.08320.03
5.4.450.0530.06319.48
5.4.440.0800.06019.24
5.4.430.0770.05719.09
5.4.420.0900.04019.27
5.4.410.0800.05019.28
5.4.400.0600.05718.78
5.4.390.0830.05019.14
5.4.380.0270.04718.69
5.4.370.0200.05018.71
5.4.360.0230.04718.57
5.4.350.0230.05018.50
5.4.340.0130.06018.49
5.4.320.0170.05718.54
5.4.310.0200.05318.61
5.4.300.0270.05318.67
5.4.290.0170.05718.58
5.4.280.0200.06318.68
5.4.270.0300.04018.57
5.4.260.0200.05018.48
5.4.250.0170.05718.72
5.4.240.0230.05318.72
5.4.230.0270.04718.57
5.4.220.0300.05018.69
5.4.210.0230.07318.51
5.4.200.0130.05716.74
5.4.190.0200.07318.45
5.4.180.0130.06318.51
5.4.170.0230.07018.51
5.4.160.0200.05018.62
5.4.150.0200.05318.64
5.4.140.0200.05016.25
5.4.130.0130.05316.26
5.4.120.0230.05316.30
5.4.110.0200.05016.19
5.4.100.0200.05316.25
5.4.90.0200.05316.37
5.4.80.0300.04316.23
5.4.70.0270.04316.25
5.4.60.0170.05716.16
5.4.50.0230.04716.03
5.4.40.0200.05016.16
5.4.30.0200.05316.18
5.4.20.0170.05716.18
5.4.10.0200.04716.12
5.4.00.0100.06315.58
5.3.290.0170.06714.66
5.3.280.0170.06014.64
5.3.270.0100.06714.72
5.3.260.0200.07014.61
5.3.250.0230.05314.70
5.3.240.0170.05714.67
5.3.230.0230.05014.64
5.3.220.0270.05314.49
5.3.210.0270.04714.50
5.3.200.0170.05314.61
5.3.190.0230.05014.59
5.3.180.0200.05714.47
5.3.170.0100.06014.46
5.3.160.0100.06014.63
5.3.150.0170.06014.66
5.3.140.0170.05314.46
5.3.130.0200.05014.63
5.3.120.0270.04714.59
5.3.110.0230.04714.54
5.3.100.0170.05014.04
5.3.90.0200.05013.91
5.3.80.0230.05013.99
5.3.70.0270.04714.02
5.3.60.0230.05313.98
5.3.50.0130.05713.85
5.3.40.0200.05013.94
5.3.30.0200.04713.80
5.3.20.0230.04313.59
5.3.10.0200.04313.59
5.3.00.0200.05013.59
5.2.170.0130.04311.13
5.2.160.0030.05011.12
5.2.150.0130.04311.17
5.2.140.0130.04311.05
5.2.130.0170.04311.14
5.2.120.0130.04311.08
5.2.110.0100.04711.06
5.2.100.0200.04011.13
5.2.90.0130.04311.07
5.2.80.0200.03711.12
5.2.70.0130.04311.22
5.2.60.0200.03711.03
5.2.50.0270.03010.93
5.2.40.0130.03711.14
5.2.30.0070.04711.02
5.2.20.0230.04310.93
5.2.10.0130.04010.99
5.2.00.0230.04710.66
5.1.60.0170.03010.00
5.1.50.0130.0379.97
5.1.40.0200.02710.10
5.1.30.0230.03710.37
5.1.20.0170.03710.37
5.1.10.0200.03010.09
5.1.00.0100.04010.18
5.0.50.0070.0308.55
5.0.40.0130.0308.43
5.0.30.0070.0438.25
5.0.20.0030.0308.19
5.0.10.0070.0278.20
5.0.00.0130.0408.33
4.4.90.0070.0207.18
4.4.80.0100.0177.18
4.4.70.0130.0307.18
4.4.60.0130.0177.18
4.4.50.0070.0307.18
4.4.40.0100.0307.18
4.4.30.0030.0237.18
4.4.20.0100.0207.18
4.4.10.0030.0277.18
4.4.00.0100.0307.18
4.3.110.0130.0177.18
4.3.100.0100.0177.18
4.3.90.0030.0237.18
4.3.80.0100.0307.18
4.3.70.0000.0277.18
4.3.60.0000.0277.18
4.3.50.0100.0177.18
4.3.40.0070.0337.18
4.3.30.0030.0237.18
4.3.20.0030.0237.18
4.3.10.0070.0207.18
4.3.00.0130.0207.63