3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match( "/^ndg\_keywords\.partial\('[a-zA-Z\_\ ]+'\)/", "ndg_keywords.partial('a_Imelda Staunton ')", $matches); echo $matches[1]; // 1234 ?>

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.0040.00819.63
7.1.100.0030.00918.09
7.1.70.0000.00717.33
7.1.60.0100.01619.25
7.1.50.0060.01817.09
7.1.00.0070.03022.46
7.0.200.0000.01516.77
7.0.140.0030.07322.12
7.0.120.0100.06722.17
7.0.60.0070.08719.86
7.0.50.0070.08317.79
7.0.40.0100.08317.78
7.0.30.0370.05317.81
7.0.20.0130.06317.74
7.0.10.0130.07017.81
7.0.00.0100.08017.74
5.6.280.0000.07321.03
5.6.210.0070.04720.45
5.6.200.0030.04318.12
5.6.190.0030.07318.15
5.6.180.0130.04318.18
5.6.170.0070.05018.11
5.6.160.0070.08718.12
5.6.150.0030.05318.17
5.6.140.0100.08018.12
5.6.130.0230.06718.18
5.6.120.0070.08318.22
5.6.110.0030.08318.10
5.6.100.0100.07718.10
5.6.90.0100.06718.17
5.6.80.0170.06717.48
5.6.70.0030.07717.53
5.6.60.0000.08717.50
5.6.50.0100.06717.60
5.6.40.0100.07317.52
5.6.30.0100.07717.53
5.6.20.0100.07017.57
5.6.10.0100.06317.55
5.6.00.0070.05017.56
5.5.350.0130.07720.41
5.5.340.0100.08018.01
5.5.330.0100.07717.88
5.5.320.0000.04317.89
5.5.310.0030.08317.91
5.5.300.0070.07717.89
5.5.290.0070.08718.01
5.5.280.0070.06717.94
5.5.270.0100.05717.89
5.5.260.0130.08017.88
5.5.250.0100.08317.83
5.5.240.0030.07317.33
5.5.230.0030.08317.38
5.5.220.0030.07717.36
5.5.210.0030.06717.32
5.5.200.0030.08317.34
5.5.190.0000.05317.27
5.5.180.0070.08017.33
5.5.160.0100.07017.37
5.5.150.0170.06717.24
5.5.140.0030.04717.30
5.5.130.0070.06717.31
5.5.120.0030.07717.25
5.5.110.0070.06017.36
5.5.100.0100.07717.20
5.5.90.0100.07317.12
5.5.80.0070.05717.16
5.5.70.0170.07017.16
5.5.60.0000.07717.26
5.5.50.0030.07717.21
5.5.40.0170.06317.13
5.5.30.0030.07317.22
5.5.20.0000.08317.14
5.5.10.0030.05317.22
5.5.00.0000.04317.25
5.4.450.0070.05719.31
5.4.440.0100.06319.39
5.4.430.0030.06019.35
5.4.420.0030.08019.39
5.4.410.0130.07019.17
5.4.400.0030.08319.03
5.4.390.0070.07319.11
5.4.380.0070.08019.09
5.4.370.0100.07718.98
5.4.360.0070.04318.98
5.4.350.0030.07718.82
5.4.340.0030.08018.82
5.4.320.0070.04319.05
5.4.310.0070.03319.24
5.4.300.0100.07718.93
5.4.290.0030.08018.99
5.4.280.0070.07019.01
5.4.270.0100.07018.97
5.4.260.0100.07319.02
5.4.250.0070.04719.11
5.4.240.0070.07718.97
5.4.230.0070.07318.78
5.4.220.0130.04318.94
5.4.210.0070.04018.82
5.4.200.0070.07718.97
5.4.190.0100.03318.98
5.4.180.0070.07318.96
5.4.170.0030.04718.98
5.4.160.0070.04018.99
5.4.150.0030.04019.00
5.4.140.0070.03316.17
5.4.130.0100.03016.28
5.4.120.0070.03716.27
5.4.110.0000.04716.43
5.4.100.0070.03316.43
5.4.90.0100.03016.17
5.4.80.0030.03316.43
5.4.70.0000.04016.39
5.4.60.0030.03316.23
5.4.50.0030.03316.23
5.4.40.0030.03716.28
5.4.30.0070.03016.22
5.4.20.0070.03016.27
5.4.10.0000.03716.49
5.4.00.0070.03015.61
5.3.290.0030.04014.44
5.3.280.0070.07014.55
5.3.270.0070.06714.53
5.3.260.0000.04014.43
5.3.250.0030.03714.43
5.3.240.0030.03714.53
5.3.230.0000.04014.54
5.3.220.0000.04014.39
5.3.210.0030.03714.54
5.3.200.0030.03714.51
5.3.190.0030.04014.55
5.3.180.0070.03314.48
5.3.170.0030.03714.52
5.3.160.0070.03014.50
5.3.150.0030.03714.41
5.3.140.0000.03714.48
5.3.130.0070.03314.47
5.3.120.0030.03714.63
5.3.110.0030.03714.37
5.3.100.0000.03713.98
5.3.90.0030.03314.09
5.3.80.0000.03713.96
5.3.70.0000.03713.86
5.3.60.0100.03013.96
5.3.50.0030.04013.87
5.3.40.0000.03713.87
5.3.30.0030.04013.87
5.3.20.0000.03713.62
5.3.10.0130.02313.61
5.3.00.0030.03313.38
5.2.170.0030.03011.14
5.2.160.0000.03011.12
5.2.150.0000.03011.12
5.2.140.0030.02711.14
5.2.130.0030.02711.09
5.2.120.0000.03011.08
5.2.110.0030.02710.92
5.2.100.0030.02710.91
5.2.90.0030.02710.92
5.2.80.0000.03010.91
5.2.70.0030.02710.86
5.2.60.0000.03011.19
5.2.50.0000.03010.98
5.2.40.0070.02710.95
5.2.30.0030.03010.97
5.2.20.0100.02710.96
5.2.10.0000.05010.69
5.2.00.0030.06310.55
5.1.60.0070.0339.96
5.1.50.0030.02310.06
5.1.40.0000.06010.01
5.1.30.0030.05710.34
5.1.20.0030.04310.35
5.1.10.0100.02710.21
5.1.00.0070.02310.11
5.0.50.0030.0479.29
5.0.40.0030.0439.29
5.0.30.0030.0609.29
5.0.20.0100.0379.29
5.0.10.0030.0379.29
5.0.00.0000.0679.29
4.4.90.0000.0209.29
4.4.80.0000.0139.29
4.4.70.0030.0339.29
4.4.60.0030.0279.29
4.4.50.0000.0339.29
4.4.40.0000.0379.29
4.4.30.0000.0179.29
4.4.20.0030.0339.29
4.4.10.0030.0379.29
4.4.00.0000.0509.29
4.3.110.0000.0409.29
4.3.100.0000.0379.29
4.3.90.0030.0239.29
4.3.80.0070.0509.29
4.3.70.0030.0339.29
4.3.60.0000.0409.29
4.3.50.0000.0339.29
4.3.40.0070.0409.29
4.3.30.0030.0379.29
4.3.20.0000.0279.29
4.3.10.0030.0379.29
4.3.00.0000.0279.29