3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = '/\bПривіт\W+(?:\w+\W+){0,6}?світу\b/ui'; $sample = 'Привіт, світу!'; echo (int)preg_match( $pattern, $sample, $matches).PHP_EOL; 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.3.00.0030.01016.79
7.2.130.0100.00617.04
7.2.120.0120.00715.82
7.2.110.0150.00515.95
7.2.100.0200.00815.88
7.2.90.0130.01015.87
7.2.80.0150.00415.95
7.2.70.0120.01016.01
7.2.60.0130.00916.41
7.2.50.0110.00515.98
7.2.40.0160.00816.07
7.2.30.0170.00716.16
7.2.20.0150.01116.18
7.2.10.0150.00316.09
7.2.00.0100.00817.14
7.1.250.0110.00315.92
7.1.240.0140.00714.70
7.1.230.0270.00814.81
7.1.220.0200.00914.96
7.1.210.0240.00514.79
7.1.200.0100.00615.30
7.1.190.0100.00614.95
7.1.180.0080.01114.89
7.1.170.0100.00915.03
7.1.160.0180.00514.77
7.1.150.0120.00514.98
7.1.140.0080.01014.98
7.1.130.0100.00715.02
7.1.120.0180.00214.99
7.1.110.0180.00615.08
7.1.100.0090.01216.14
7.1.90.0160.00616.03
7.1.80.0130.00515.92
7.1.70.0100.01016.07
7.1.60.0100.01321.07
7.1.50.0120.01420.49
7.1.40.0140.00921.36
7.1.30.0150.00921.62
7.1.20.0140.01021.51
7.1.10.0100.00915.57
7.1.00.0090.02817.33
7.0.330.0030.00915.47
7.0.320.0110.00814.35
7.0.310.0180.00614.53
7.0.300.0190.00514.37
7.0.290.0140.00814.39
7.0.280.0210.00614.44
7.0.270.0170.00914.37
7.0.260.0150.00714.40
7.0.250.0520.01214.63
7.0.240.0130.00815.62
7.0.230.0130.00915.67
7.0.220.0110.00915.62
7.0.210.0120.00815.14
7.0.200.0090.00815.54
7.0.190.0100.00915.23
7.0.180.0140.00815.14
7.0.170.0130.00715.26
7.0.160.0120.00715.24
7.0.150.0130.00715.29
7.0.140.0070.02716.90
7.0.130.0120.00815.31
7.0.120.0150.00815.37
7.0.110.0140.00415.31
7.0.100.0150.01416.31
7.0.90.0120.01616.36
7.0.80.0110.01616.41
7.0.70.0210.02816.45
7.0.60.0120.02716.23
7.0.50.0110.02616.64
7.0.40.0110.02715.93
7.0.30.0110.02516.05
7.0.20.0110.02715.83
7.0.10.0140.02315.94
7.0.00.0100.02716.02
hhvm-3.22.00.1700.18390.61
hhvm-3.21.30.1030.17490.21
hhvm-3.21.00.0940.16290.76
hhvm-3.20.20.0940.19191.28
hhvm-3.19.20.0970.17590.47
hhvm-3.18.50.1050.17888.72
hhvm-3.18.40.0850.17289.59
hhvm-3.17.30.1000.14888.08
hhvm-3.15.40.0910.15185.96
hhvm-3.13.20.0870.17497.34
hhvm-3.12.140.0930.18196.40
hhvm-3.11.10.0990.15388.17
hhvm-3.10.10.0750.18685.32
5.6.380.0070.00914.58
5.6.370.0100.00714.25
5.6.360.0150.00214.36
5.6.350.0090.00814.46
5.6.340.0070.01114.23
5.6.330.0090.00714.31
5.6.320.0100.00514.35
5.6.310.0060.01114.42
5.6.300.0110.02216.40
5.6.290.0080.02516.59
5.6.280.0100.03517.74
5.6.270.0090.02516.61
5.6.260.0010.03016.46
5.6.250.0100.02917.58
5.6.240.0070.03117.49
5.6.230.0110.03717.45
5.6.220.0110.03717.44
5.6.210.0100.03717.50
5.6.200.0100.03617.63
5.6.190.0090.03817.58
5.6.180.0110.03517.53
5.6.170.0080.03917.62
5.6.160.0110.03517.51
5.6.150.0080.03917.54
5.6.140.0090.03917.60
5.6.130.0120.03517.61
5.6.120.0070.03517.56
5.6.110.0090.03917.65
5.6.100.0090.04117.60
5.6.90.0110.03117.71
5.6.80.0080.03617.26
5.6.70.0020.04117.32
5.6.60.0050.04117.23
5.6.50.0110.03617.26
5.6.40.0100.03517.31
5.6.30.0090.03817.36
5.6.20.0080.03517.24
5.6.10.0080.03317.17
5.6.00.0040.04317.19
5.5.380.0030.02914.96
5.5.370.0080.02915.09
5.5.360.0060.04315.11
5.5.350.0060.03615.06
5.5.340.0110.03415.29
5.5.330.0090.03415.30
5.5.320.0090.03715.30
5.5.310.0070.02915.30
5.5.300.0090.03115.20
5.5.290.0130.03415.27
5.5.280.0100.02615.30
5.5.270.0080.03715.34
5.5.260.0080.03115.33
5.5.250.0050.03015.19
5.5.240.0130.03014.89
5.5.230.0120.02314.85
5.5.220.0090.03415.00
5.5.210.0050.02814.91
5.5.200.0090.03414.88
5.5.190.0110.03014.99
5.5.180.0090.03314.94
5.5.170.0080.00612.41
5.5.160.0080.03414.92
5.5.150.0090.03414.97
5.5.140.0080.02714.95
5.5.130.0080.03414.94
5.5.120.0100.03715.04
5.5.110.0050.03015.04
5.5.100.0070.02914.81
5.5.90.0060.03514.74
5.5.80.0100.03014.69
5.5.70.0070.03514.91
5.5.60.0080.02314.86
5.5.50.0110.03414.75
5.5.40.0080.03114.91
5.5.30.0060.03514.88
5.5.20.0110.03314.88
5.5.10.0070.03614.84
5.5.00.0070.02814.85
5.4.450.0090.03415.21
5.4.440.0070.03915.17
5.4.430.0030.04015.36
5.4.420.0100.03415.26
5.4.410.0080.03615.17
5.4.400.0070.03515.10
5.4.390.0100.03315.02
5.4.380.0110.03115.11
5.4.370.0060.03615.09
5.4.360.0070.02915.12
5.4.350.0050.03615.01
5.4.340.0080.03115.09
5.4.330.0080.00511.15
5.4.320.0080.03414.96
5.4.310.0040.03915.06
5.4.300.0090.03715.01
5.4.290.0050.03015.02
5.4.280.0100.03615.13
5.4.270.0080.03215.20
5.4.260.0070.03315.07
5.4.250.0090.03415.00
5.4.240.0060.03515.03
5.4.230.0070.03315.00
5.4.220.0090.03315.07
5.4.210.0110.03215.04
5.4.200.0090.02414.96
5.4.190.0100.02915.02
5.4.180.0090.03115.01
5.4.170.0070.02915.05
5.4.160.0060.02514.95
5.4.150.0090.03315.12
5.4.140.0070.03213.82
5.4.130.0080.02513.77
5.4.120.0070.03213.83
5.4.110.0090.03213.80
5.4.100.0090.03313.68
5.4.90.0050.03613.69
5.4.80.0060.03313.72
5.4.70.0160.01913.88
5.4.60.0050.03313.74
5.4.50.0100.02313.80
5.4.40.0080.02613.91
5.4.30.0050.02613.68
5.4.20.0060.03513.74
5.4.10.0090.03113.73
5.4.00.0090.03013.54
5.3.290.0080.03312.63
5.3.280.0110.02812.62
5.3.270.0110.02312.55
5.3.260.0060.03612.60
5.3.250.0070.02812.60
5.3.240.0070.03212.56
5.3.230.0070.02612.56
5.3.220.0070.02712.58
5.3.210.0110.02912.47
5.3.200.0030.03612.62
5.3.190.0070.03012.61
5.3.180.0060.02512.61
5.3.170.0080.03312.58
5.3.160.0110.02712.68
5.3.150.0060.03612.65
5.3.140.0060.03412.57
5.3.130.0050.03212.61
5.3.120.0110.02512.55
5.3.110.0070.03312.59
5.3.100.0120.02912.41
5.3.90.0090.02312.37
5.3.80.0080.02312.31
5.3.70.0080.03112.25
5.3.60.0050.03412.16
5.3.50.0040.02512.25
5.3.40.0090.03012.15
5.3.30.0080.03012.11
5.3.20.0100.02811.99
5.3.10.0080.03111.94
5.3.00.0060.03311.92
5.2.170.0070.02510.71
5.2.160.0110.02110.63
5.2.150.0060.02910.68
5.2.140.0070.02810.65
5.2.130.0070.02210.67
5.2.120.0050.02710.67
5.2.110.0070.02610.66
5.2.100.0080.02510.68
5.2.90.0060.02510.70
5.2.80.0060.02910.62
5.2.70.0060.02910.66
5.2.60.0050.02910.64
5.2.50.0030.03110.59
5.2.40.0050.02410.59
5.2.30.0050.02810.63
5.2.20.0070.02610.61
5.2.10.0070.02110.54
5.2.00.0060.01910.42
5.1.60.0060.02210.14
5.1.50.0070.02110.10
5.1.40.0040.02310.15
5.1.30.0040.02610.35
5.1.20.0040.02310.32
5.1.10.0020.02710.18
5.1.00.0050.02210.06
5.0.50.0020.0219.41
5.0.40.0030.0189.36
5.0.30.0030.0279.17
5.0.20.0060.0119.25
5.0.10.0070.0169.19
5.0.00.0070.0259.22
4.4.90.0030.0178.84
4.4.80.0060.0108.84
4.4.70.0040.0138.84
4.4.60.0030.0138.84
4.4.50.0030.0178.84
4.4.40.0030.0168.84
4.4.30.0020.0168.84
4.4.20.0030.0188.84
4.4.10.0040.0158.84
4.4.00.0040.0238.84
4.3.110.0030.0138.84
4.3.100.0000.0188.84
4.3.90.0020.0128.84
4.3.80.0050.0218.84
4.3.70.0040.0108.84
4.3.60.0030.0148.84
4.3.50.0030.0118.84
4.3.40.0050.0168.84
4.3.30.0020.0168.84
4.3.20.0040.0128.84
4.3.10.0050.0138.84
4.3.00.0010.0168.84