3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $subject = "text text text text [hello] text (hello2) (hello3) text"; $pattern = '/^\[([^)]*)\]/'; preg_match($pattern, $subject, $matches); print_r($matches);

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.0070.01019.18
7.1.100.0060.00618.53
7.1.70.0000.00817.09
7.1.60.0070.01719.46
7.1.50.0180.00434.90
7.1.00.0030.07722.34
7.0.200.0150.00614.64
7.0.140.0100.06721.98
7.0.60.0030.07019.85
7.0.50.0070.05017.86
7.0.40.0000.05020.21
7.0.30.0200.04720.01
7.0.20.0300.06720.14
7.0.10.0100.06020.03
7.0.00.0130.07020.18
5.6.280.0000.07721.11
5.6.210.0000.05720.74
5.6.200.0070.08318.08
5.6.190.0030.04720.77
5.6.180.0330.07320.39
5.6.170.0330.06020.71
5.6.160.0070.08720.49
5.6.150.0000.07018.14
5.6.140.0000.04318.25
5.6.130.0130.07318.09
5.6.120.0130.08020.96
5.6.110.0200.07021.10
5.6.100.0000.05320.97
5.6.90.0100.07320.96
5.6.80.0030.06720.36
5.5.350.4230.03720.31
5.5.340.0070.08318.04
5.5.330.0100.03720.06
5.5.320.0170.05020.32
5.5.310.0270.04320.33
5.5.300.0070.07718.01
5.5.290.0130.08017.97
5.5.280.0100.03720.89
5.5.270.0070.08320.86
5.5.260.0130.07720.96
5.5.250.0130.08020.76
5.5.240.0070.07720.18
5.4.450.1000.07319.24
5.4.440.0970.07019.61
5.4.430.0800.06019.46
5.4.420.0230.04019.46
5.4.410.0930.07318.97
5.4.400.0070.06019.18
5.4.390.0770.04718.99
5.4.380.0270.05318.56
5.4.370.0200.05718.48
5.4.360.0400.06318.71
5.4.350.0400.05018.77
5.4.340.0570.06018.69
5.4.320.0070.03512.45
5.4.310.0090.03412.45
5.4.300.0090.03312.45
5.4.290.0070.05212.44
5.4.280.0080.04912.34
5.4.270.0070.05012.34
5.4.260.0080.05212.34
5.4.250.0100.05112.34
5.4.240.0080.05012.34
5.4.230.0090.05112.33
5.4.220.0120.05812.33
5.4.210.0140.04612.33
5.4.200.0100.05212.33
5.4.190.0100.06712.32
5.4.180.0070.06012.33
5.4.170.0110.04912.34
5.4.160.0100.06012.33
5.4.150.0100.04912.33
5.4.140.0090.05612.02
5.4.130.0100.04512.00
5.4.120.0060.04911.96
5.4.110.0080.05011.95
5.4.100.0050.05211.95
5.4.90.0120.04811.95
5.4.80.0130.04711.95
5.4.70.0070.05111.95
5.4.60.0070.04911.95
5.4.50.0080.04811.95
5.4.40.0190.07411.94
5.4.30.0090.05711.94
5.4.20.0080.04711.94
5.4.10.0060.04711.94
5.4.00.0090.04911.43
5.3.290.0080.03512.80
5.3.280.0090.04812.70
5.3.270.0040.05612.72
5.3.260.0100.06112.71
5.3.250.0140.06412.72
5.3.240.0130.05512.72
5.3.230.0140.04912.71
5.3.220.0140.04912.68
5.3.210.0080.05312.68
5.3.200.0140.03512.68
5.3.190.0050.04212.68
5.3.180.0040.04512.67
5.3.170.0090.04412.67
5.3.160.0120.05112.67
5.3.150.0090.04312.68
5.3.140.0070.04212.66
5.3.130.0110.05212.66
5.3.120.0060.04512.66
5.3.110.0080.04312.65
5.3.100.0060.04212.12
5.3.90.0090.04012.08
5.3.80.0080.03912.07
5.3.70.0070.03912.08
5.3.60.0050.04212.07
5.3.50.0110.04712.00
5.3.40.0090.04812.00
5.3.30.0160.06311.95
5.3.20.0200.07911.73
5.3.10.0080.04111.70
5.3.00.0070.04211.69
5.2.170.0150.0889.19
5.2.160.0070.0419.19
5.2.150.0070.0429.19
5.2.140.0060.0449.19
5.2.130.0160.0609.14
5.2.120.0140.0669.15
5.2.110.0090.0359.16
5.2.100.0200.0679.14
5.2.90.0060.0309.14
5.2.80.0090.0469.14
5.2.70.0110.0529.14
5.2.60.0150.0399.10
5.2.50.0120.0419.07
5.2.40.0180.0629.05
5.2.30.0160.0789.02
5.2.20.0060.0469.01
5.2.10.0090.0398.91
5.2.00.0090.0458.77
5.1.60.0060.0548.06
5.1.50.0100.0938.06
5.1.40.0110.0448.04
5.1.30.0050.0368.39
5.1.20.0070.0438.41
5.1.10.0120.0628.14
5.1.00.0080.0368.14
5.0.50.0050.0306.61
5.0.40.0070.0296.47
5.0.30.0070.0686.28
5.0.20.0160.0646.25
5.0.10.0030.0456.23
5.0.00.0060.0526.22
4.4.90.0050.0384.78
4.4.80.0040.0234.75
4.4.70.0060.0264.75
4.4.60.0060.0274.76
4.4.50.0060.0214.77
4.4.40.0100.0434.71
4.4.30.0130.0334.76
4.4.20.0080.0434.84
4.4.10.0180.0454.85
4.4.00.0080.0474.76
4.3.110.0050.0394.66
4.3.100.0150.0354.66
4.3.90.0050.0374.63
4.3.80.0070.0324.58
4.3.70.0040.0284.63
4.3.60.0090.0424.63
4.3.50.0140.0394.63
4.3.40.0100.0694.54
4.3.30.0030.0153.28
4.3.20.0060.0183.26
4.3.10.0050.0223.22
4.3.00.0000.01310.55