3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $txt='28:Apr:2015 "This is an Example!"'; $re1='.*?'; # Non-greedy match on filler $re2='(?:[a-z][a-z]+)'; # Uninteresting: word $re3='.*?'; # Non-greedy match on filler $re4='(?:[a-z][a-z]+)'; # Uninteresting: word $re5='.*?'; # Non-greedy match on filler $re6='(?:[a-z][a-z]+)'; # Uninteresting: word $re7='.*?'; # Non-greedy match on filler $re8='(?:[a-z][a-z]+)'; # Uninteresting: word $re9='.*?'; # Non-greedy match on filler $re10='((?:[a-z][a-z]+))'; # Word 1 if ($c=preg_match_all ("/".$re1.$re2."/is", $txt, $matches)) { $word1=$matches[1][0]; print "($word1) \n"; }
based on f8MHE

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.0110.00416.93
7.2.130.0040.01117.13
7.2.120.0110.00416.99
7.2.110.0060.00816.77
7.2.100.0060.00317.03
7.2.90.0060.00617.09
7.2.80.0090.00616.78
7.2.70.0110.00717.25
7.2.60.0030.00916.95
7.2.50.0090.00617.09
7.2.40.0030.01316.93
7.2.30.0000.01116.97
7.2.20.0000.01417.32
7.2.10.0070.00717.20
7.2.00.0020.01018.26
7.1.250.0150.00316.08
7.1.240.0120.00616.00
7.1.230.0060.00616.13
7.1.220.0080.00415.88
7.1.210.0060.00815.64
7.1.200.0130.00315.95
7.1.190.0000.01715.89
7.1.180.0070.01016.11
7.1.170.0080.00416.03
7.1.160.0060.00615.93
7.1.150.0040.00715.77
7.1.140.0030.00816.03
7.1.130.0090.00316.07
7.1.120.0130.00015.97
7.1.110.0070.00715.95
7.1.100.0020.01017.10
7.1.90.0060.01015.98
7.1.80.0070.00715.95
7.1.70.0040.00816.69
7.1.60.0110.00817.84
7.1.50.0030.01416.62
7.1.40.0000.01216.08
7.1.30.0060.00316.08
7.1.20.0040.01116.19
7.1.10.0060.00616.11
7.1.00.0060.04019.17
7.0.330.0060.00315.73
7.0.320.0090.00315.43
7.0.310.0100.00715.60
7.0.300.0120.00315.27
7.0.290.0030.00715.71
7.0.280.0120.00315.75
7.0.270.0080.00815.23
7.0.260.0090.00315.27
7.0.250.0040.00715.65
7.0.240.0110.00315.63
7.0.230.0090.00615.47
7.0.220.0060.00615.68
7.0.210.0100.00315.59
7.0.200.0440.00915.27
7.0.190.0000.01515.29
7.0.180.0060.00615.48
7.0.170.0090.00615.66
7.0.160.0030.00915.50
7.0.150.0040.00715.49
7.0.140.0050.04018.68
7.0.130.0110.00415.47
7.0.120.0040.00815.77
7.0.110.0040.01015.68
7.0.100.0070.00415.36
7.0.90.0080.00315.70
7.0.80.0040.01115.74
7.0.70.0070.00715.78
7.0.60.0070.04517.73
7.0.50.0100.02816.73
7.0.40.0030.02817.06
7.0.30.0190.03316.83
7.0.20.0140.03216.94
7.0.10.0140.04117.00
7.0.00.0090.02816.89
hhvm-3.22.00.0570.14091.00
hhvm-3.21.30.0680.10890.63
hhvm-3.21.00.0530.14590.08
hhvm-3.20.20.0600.12990.69
hhvm-3.19.20.0370.15389.86
hhvm-3.18.50.0730.10388.46
hhvm-3.18.40.0430.13288.74
hhvm-3.17.30.0630.11787.59
hhvm-3.15.40.0230.13785.46
hhvm-3.13.20.0470.12096.95
hhvm-3.12.140.0530.11395.76
hhvm-3.11.10.0430.11887.87
hhvm-3.10.10.0430.11884.66
5.6.380.0070.00714.62
5.6.370.0030.00614.63
5.6.360.0000.00814.25
5.6.350.0070.00414.70
5.6.340.0040.00414.11
5.6.330.0090.00314.70
5.6.320.0060.00614.71
5.6.310.0060.00614.64
5.6.300.0040.00814.51
5.6.290.0070.00414.36
5.6.280.0040.03917.70
5.6.270.0070.00714.76
5.6.260.0030.01014.65
5.6.250.0080.00314.50
5.6.240.0070.00714.25
5.6.230.0100.00714.44
5.6.220.0040.00814.54
5.6.210.0050.04517.52
5.6.200.0070.04516.29
5.6.190.0050.04517.49
5.6.180.0130.04817.35
5.6.170.0140.03717.59
5.6.160.0080.02017.49
5.6.150.0030.04216.31
5.6.140.0070.02716.32
5.6.130.0080.03716.16
5.6.120.0090.04617.84
5.6.110.0050.02317.59
5.6.100.0070.04517.76
5.6.90.0050.03217.72
5.6.80.0050.04217.32
5.6.70.0180.02217.48
5.6.60.0050.00514.46
5.6.50.0030.00914.32
5.6.40.0000.01014.27
5.6.30.0030.01014.34
5.6.20.0120.00014.28
5.6.10.0070.00414.41
5.6.00.0060.00914.52
5.5.380.0030.00611.10
5.5.370.0030.00611.32
5.5.360.0050.00311.18
5.5.350.0070.04315.69
5.5.340.0080.02014.67
5.5.330.0070.04315.67
5.5.320.0080.02315.75
5.5.310.0120.04315.48
5.5.300.0070.02314.60
5.5.290.0010.04914.53
5.5.280.0030.02116.05
5.5.270.0050.03016.04
5.5.260.0030.03316.05
5.5.250.0060.02315.88
5.5.240.0050.04015.70
5.5.230.0040.00411.06
5.5.220.0030.00611.05
5.5.210.0000.00710.84
5.5.200.0040.00411.07
5.5.190.0040.00410.87
5.5.180.0040.00411.21
5.5.170.0040.00811.08
5.5.160.0070.00311.34
5.5.150.0040.00411.18
5.5.140.0060.00311.27
5.5.130.0060.00310.95
5.5.120.0040.00411.19
5.5.110.0090.00311.22
5.5.100.0000.01210.82
5.5.90.0040.00411.14
5.5.80.0070.00311.25
5.5.70.0000.00711.08
5.5.60.0040.00411.13
5.5.50.0030.00711.01
5.5.40.0080.00310.95
5.5.30.0040.00811.29
5.5.20.0100.00011.23
5.5.10.0080.00411.17
5.5.00.0070.00311.09
5.4.450.0430.03915.12
5.4.440.0350.03815.41
5.4.430.0300.03215.16
5.4.420.0720.04615.31
5.4.410.0450.03015.36
5.4.400.0210.03814.73
5.4.390.0150.03114.77
5.4.380.0120.03714.80
5.4.370.0150.02814.77
5.4.360.0140.02814.94
5.4.350.0150.03614.85
5.4.340.0150.04814.95
5.4.330.0030.00511.27
5.4.320.0150.03014.73
5.4.310.0160.03014.85
5.4.300.0130.03014.89
5.4.290.0120.03614.70
5.4.280.0140.03114.84
5.4.270.0170.02414.76
5.4.260.0120.03214.68
5.4.250.0120.03614.87
5.4.240.0110.03215.02
5.4.230.0150.03414.84
5.4.220.0150.03014.91
5.4.210.0110.03714.89
5.4.200.0140.03013.87
5.4.190.0110.03314.78
5.4.180.0130.02814.72
5.4.170.0220.02214.72
5.4.160.0160.02514.80
5.4.150.0120.03114.63
5.4.140.0100.03213.65
5.4.130.0080.03213.56
5.4.120.0130.03113.60
5.4.110.0120.02613.39
5.4.100.0160.02913.62
5.4.90.0100.03313.51
5.4.80.0120.02813.58
5.4.70.0170.02613.50
5.4.60.0100.03013.61
5.4.50.0130.02913.54
5.4.40.0120.02913.67
5.4.30.0070.03313.58
5.4.20.0070.03513.66
5.4.10.0030.03413.55
5.4.00.0120.02713.35
5.3.290.0080.03412.69
5.3.280.0120.03112.63
5.3.270.0120.03112.54
5.3.260.0090.03412.60
5.3.250.0120.02712.55
5.3.240.0120.02812.50
5.3.230.0140.02812.54
5.3.220.0080.03312.54
5.3.210.0100.03212.52
5.3.200.0070.03312.49
5.3.190.0140.02612.60
5.3.180.0120.03012.61
5.3.170.0190.03412.53
5.3.160.0130.03012.60
5.3.150.0130.02912.56
5.3.140.0110.03012.51
5.3.130.0170.03012.60
5.3.120.0080.03312.49
5.3.110.0080.03412.57
5.3.100.0050.03712.28
5.3.90.0200.02112.14
5.3.80.0180.02312.20
5.3.70.0100.03012.11
5.3.60.0110.03112.31
5.3.50.0180.02812.20
5.3.40.0150.02612.24
5.3.30.0150.02812.13
5.3.20.0070.03411.94
5.3.10.0180.02311.96
5.3.00.0070.03111.79
5.2.170.0100.02510.51
5.2.160.0070.02710.51
5.2.150.0100.02310.58
5.2.140.0130.02110.56
5.2.130.0080.02410.55
5.2.120.0030.02810.55
5.2.110.0110.02310.51
5.2.100.0100.02510.55
5.2.90.0110.02110.52
5.2.80.0050.02610.51
5.2.70.0130.02210.52
5.2.60.0100.02210.61
5.2.50.0070.02710.45
5.2.40.0070.02810.55
5.2.30.0050.02910.44
5.2.20.0050.02910.48
5.2.10.0120.02610.39
5.2.00.0070.02610.34
5.1.60.0110.01610.03
5.1.50.0050.02410.01
5.1.40.0110.0179.98
5.1.30.0070.02410.13
5.1.20.0100.02210.20
5.1.10.0120.01710.05
5.1.00.0050.02510.02
5.0.50.0050.0179.28
5.0.40.0100.0109.24
5.0.30.0030.0279.16
5.0.20.0070.0159.17
5.0.10.0100.0179.15
5.0.00.0060.0239.06
4.4.90.0080.0178.25
4.4.80.0070.0128.25
4.4.70.0050.0148.25
4.4.60.0070.0118.25
4.4.50.0070.0158.25
4.4.40.0020.0238.25
4.4.30.0040.0138.25
4.4.20.0070.0128.25
4.4.10.0100.0088.25
4.4.00.0050.0208.25
4.3.110.0030.0158.25
4.3.100.0070.0108.25
4.3.90.0070.0128.25
4.3.80.0020.0218.25
4.3.70.0080.0088.25
4.3.60.0020.0148.25
4.3.50.0050.0138.25
4.3.40.0050.0188.25
4.3.30.0060.0108.25
4.3.20.0030.0148.25
4.3.10.0030.0158.25
4.3.00.0090.0128.39