3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "testabc"; $regex = "(^abc)"; for ($i = 0; $i < strlen($string); $i++) { var_dump(preg_match($regex, $string, $match, 0, $i)); }
based on 6vNHQ

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.0100.01016.73
7.3.00.0030.01916.28
7.2.130.0130.01016.96
7.2.120.0070.01616.87
7.2.110.0200.00316.85
7.2.100.0130.00716.90
7.2.90.0120.00416.82
7.2.80.0120.00416.84
7.2.70.0130.00317.20
7.2.60.0040.01516.82
7.2.50.0160.00317.04
7.2.40.0100.00717.23
7.2.30.0170.00317.21
7.2.20.0110.00616.86
7.2.10.0140.00317.21
7.2.00.0060.00818.25
7.1.250.0120.00415.76
7.1.100.0060.01318.02
7.1.70.0080.00617.29
7.1.60.0000.02419.50
7.1.50.0120.00917.11
7.1.00.0070.07022.32
7.0.200.0070.01014.89
7.0.140.0000.04722.12
7.0.60.0070.04320.03
7.0.50.0030.04717.81
7.0.40.0070.06019.98
7.0.30.0470.04020.14
7.0.20.0230.09020.14
7.0.10.0130.05020.22
7.0.00.0100.06720.22
5.6.280.0070.06720.77
5.6.210.0100.06020.66
5.6.200.0070.07718.12
5.6.190.0130.09020.63
5.6.180.0230.03720.42
5.6.170.0200.04720.52
5.6.160.0200.07020.44
5.6.150.0070.04318.21
5.6.140.0070.07318.16
5.6.130.0000.05718.18
5.6.120.0130.06321.11
5.6.110.0030.04020.98
5.6.100.0170.07321.11
5.6.90.0200.07320.92
5.6.80.0100.04320.46
5.6.70.0270.07720.41
5.5.350.0330.06720.41
5.5.340.0000.04318.02
5.5.330.0000.08320.16
5.5.320.0100.07720.37
5.5.310.0300.06320.18
5.5.300.0200.07718.02
5.5.290.0070.04718.00
5.5.280.0030.04720.65
5.5.270.0130.03720.95
5.5.260.0070.04320.88
5.5.250.0230.07320.76
5.5.240.0030.05320.15
5.4.450.0700.06019.58
5.4.440.1000.06719.50
5.4.430.0870.06319.50
5.4.420.0870.06319.46
5.4.410.0300.06018.94
5.4.400.0370.05718.69
5.4.390.0400.06018.72
5.4.380.0400.06018.49
5.4.370.0370.05718.65
5.4.360.0570.05318.74
5.4.350.0230.07318.70
5.4.340.0430.05718.49
5.4.320.0530.06018.59
5.4.310.0330.06018.49
5.4.300.0400.05318.66
5.4.290.0330.05318.77
5.4.280.0400.07018.59
5.4.270.0370.05018.73
5.4.260.0300.05718.67
5.4.250.0230.06318.56
5.4.240.0370.05718.45
5.4.230.0400.07018.48
5.4.220.0270.06318.76
5.4.210.0330.05718.68
5.4.200.0430.04716.65
5.4.190.0270.05718.68
5.4.180.0300.06318.66
5.4.170.0370.05318.63
5.4.160.0370.06318.58
5.4.150.0330.05718.43
5.4.140.0300.06016.27
5.4.130.0230.06016.22
5.4.120.0300.05316.36
5.4.110.0300.05316.30
5.4.100.0500.05716.18
5.4.90.0330.05716.29
5.4.80.0300.05316.20
5.4.70.0330.05316.23
5.4.60.0430.05316.15
5.4.50.0370.04316.05
5.4.40.0470.04716.12
5.4.30.0400.05016.17
5.4.20.0400.06016.22
5.4.10.0200.04716.18
5.4.00.0100.05315.68
5.3.290.0270.04314.64
5.3.280.0300.06014.56
5.3.270.0300.06014.68
5.3.260.0300.05714.51
5.3.250.0370.05314.59
5.3.240.0270.06014.75
5.3.230.0400.04714.59
5.3.220.0370.05314.71
5.3.210.0300.05714.53
5.3.200.0670.07014.54
5.3.190.0300.05714.55
5.3.180.0330.06014.66
5.3.170.0300.05314.55
5.3.160.0300.05314.54
5.3.150.0300.06014.56
5.3.140.0270.06014.50
5.3.130.0330.05314.61
5.3.120.0370.05714.61
5.3.110.0330.05314.52
5.3.100.0500.04314.10
5.3.90.0370.05014.01
5.3.80.0370.05313.97
5.3.70.0370.05014.04
5.3.60.0370.06713.93
5.3.50.0430.06013.97
5.3.40.0330.05713.95
5.3.30.0470.06013.90
5.3.20.0300.06013.61
5.3.10.0430.04713.57
5.3.00.0500.06313.63
5.2.170.0470.04311.19
5.2.160.0370.05311.16
5.2.150.0130.05711.36
5.2.140.0330.04011.10
5.2.130.0370.04011.31
5.2.120.0270.04711.03
5.2.110.0170.05311.08
5.2.100.0270.04011.10
5.2.90.0270.04011.14
5.2.80.0270.04011.12
5.2.70.0270.05311.13
5.2.60.0430.04711.06
5.2.50.0270.06011.03
5.2.40.0270.04010.94
5.2.30.0170.05310.90
5.2.20.0230.04310.91
5.2.10.0270.04010.91
5.2.00.0230.04310.71
5.1.60.0270.03310.04
5.1.50.0230.0379.97
5.1.40.0230.03310.11
5.1.30.0270.04710.37
5.1.20.0230.05710.36
5.1.10.0300.04010.14
5.1.00.0230.05310.18
5.0.50.0170.0278.57
5.0.40.0300.0278.40
5.0.30.0200.0508.24
5.0.20.0100.0308.38
5.0.10.0200.0238.26
5.0.00.0170.0438.17
4.4.90.0100.0277.25
4.4.80.0070.0277.25
4.4.70.0070.0277.25
4.4.60.0100.0307.25
4.4.50.0100.0237.25
4.4.40.0100.0377.25
4.4.30.0070.0277.25
4.4.20.0130.0237.25
4.4.10.0130.0207.25
4.4.00.0100.0337.25
4.3.110.0070.0377.25
4.3.100.0200.0237.25
4.3.90.0070.0337.25
4.3.80.0170.0407.25
4.3.70.0100.0307.25
4.3.60.0170.0277.25
4.3.50.0230.0207.25
4.3.40.0170.0407.25
4.3.30.0100.0277.25
4.3.20.0030.0277.25
4.3.10.0000.0307.25
4.3.00.0200.0236.56