3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // create a string $string = '1234-5678'; // look for a match echo preg_match("/1234-?5678/", $string, $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.0rc40.0160.00898.97
7.3.0rc30.0740.00716.63
7.2.00.0000.01319.71
7.1.100.0000.01118.35
7.1.70.0040.00417.41
7.1.60.0030.00917.48
7.1.50.0120.00916.95
7.1.00.0030.03322.45
7.0.200.0030.01316.59
7.0.140.0100.06722.09
7.0.60.0030.08319.99
7.0.50.0070.05717.79
7.0.40.0130.08320.14
7.0.30.0600.06320.36
7.0.20.0270.06320.22
7.0.10.0130.06320.32
7.0.00.0030.05720.22
5.6.280.0030.07320.75
5.6.210.0070.07020.69
5.6.200.0100.04318.12
5.6.190.0070.09320.49
5.6.180.3270.04720.41
5.6.170.0400.06720.50
5.6.160.0000.04320.40
5.6.150.0000.04718.15
5.6.140.0030.05018.20
5.6.130.0030.04318.19
5.6.120.0100.04021.11
5.6.110.0200.07021.09
5.6.100.0230.06720.98
5.6.90.0200.07021.09
5.6.80.0070.07720.39
5.6.70.0330.03320.25
5.5.350.0330.06320.29
5.5.340.0000.04317.91
5.5.330.0030.05020.06
5.5.320.0400.07320.31
5.5.310.0300.07020.26
5.5.300.0100.07318.01
5.5.290.0030.05718.00
5.5.280.0100.07320.64
5.5.270.0030.06720.86
5.5.260.0200.08320.86
5.5.250.0200.06320.68
5.5.240.0270.07720.26
5.4.450.0830.07019.11
5.4.440.1100.05319.46
5.4.430.0970.05319.48
5.4.420.0100.05319.51
5.4.410.1000.05718.98
5.4.400.0370.05318.83
5.4.390.0430.04718.72
5.4.380.0170.06018.69
5.4.370.0230.04318.68
5.4.360.0200.04318.79
5.4.350.0070.04711.97
5.4.340.0080.04711.97
5.4.320.0060.04712.45
5.4.310.0060.03812.45
5.4.300.0060.03912.45
5.4.290.0060.03812.45
5.4.280.0100.03112.34
5.4.270.0050.03712.35
5.4.260.0040.03912.34
5.4.250.0130.04318.65
5.4.240.0100.04718.65
5.4.230.0070.05018.65
5.4.220.0070.05718.75
5.4.210.0070.05319.04
5.4.200.0130.04318.96
5.4.190.0000.05718.65
5.4.180.0070.05018.88
5.4.170.0000.05718.77
5.4.160.0170.04718.69
5.4.150.0170.04319.02
5.4.140.0130.04716.41
5.4.130.0070.04716.25
5.4.120.0100.04716.27
5.4.110.0100.05016.39
5.4.100.0030.07016.43
5.4.90.0030.05016.50
5.4.80.0070.05016.41
5.4.70.0130.04316.34
5.4.60.0100.04716.33
5.4.50.0030.05316.37
5.4.40.0070.05016.49
5.4.30.0030.05316.32
5.4.20.0100.04716.46
5.4.10.0130.04316.23
5.4.00.0230.03315.88
5.3.290.0080.03712.80
5.3.280.0070.07314.45
5.3.270.0130.04714.62
5.3.260.0030.05714.48
5.3.250.0030.05714.61
5.3.240.0070.05014.37
5.3.230.0030.05714.59
5.3.220.0070.05014.41
5.3.210.0070.05014.59
5.3.200.0000.05714.71
5.3.190.0030.05314.41
5.3.180.0130.04314.48
5.3.170.0070.05014.57
5.3.160.0000.05714.57
5.3.150.0130.04314.57
5.3.140.0130.04314.55
5.3.130.0170.04314.32
5.3.120.0030.05714.59
5.3.110.0070.06714.61
5.3.100.0100.06713.73
5.3.90.0070.05014.03
5.3.80.0100.04314.16
5.3.70.0130.04013.80
5.3.60.0130.06313.85
5.3.50.0100.05313.64
5.3.40.0170.05713.82
5.3.30.0070.05013.86
5.3.20.0100.05313.55
5.3.10.0030.05013.69
5.3.00.0100.04313.63
5.2.170.0070.05311.13
5.2.160.0100.04011.14
5.2.150.0070.03711.15
5.2.140.0030.04311.05
5.2.130.0030.04011.19
5.2.120.0070.04011.10
5.2.110.0030.04011.03
5.2.100.0100.03711.11
5.2.90.0030.04311.20
5.2.80.0030.04011.11
5.2.70.0130.03310.92
5.2.60.0030.04010.98
5.2.50.0070.04011.04
5.2.40.0030.04011.15
5.2.30.0030.05011.13
5.2.20.0000.04710.95
5.2.10.0070.03711.07
5.2.00.0030.04310.89
5.1.60.0070.0409.95
5.1.50.0070.03010.05
5.1.40.0070.03010.16
5.1.30.0030.03310.31
5.1.20.0070.03310.41
5.1.10.0000.03710.15
5.1.00.0030.03710.11
5.0.50.0070.0308.62
5.0.40.0100.0208.60
5.0.30.0070.0408.18
5.0.20.0030.0278.27
5.0.10.0030.0278.22
5.0.00.0030.0408.06
4.4.90.0000.0236.91
4.4.80.0000.0236.88
4.4.70.0070.0206.74
4.4.60.0030.0206.70
4.4.50.0000.0236.55
4.4.40.0100.0276.04
4.4.30.0030.0236.04
4.4.20.0000.0236.04
4.4.10.0030.0236.04
4.4.00.0000.0376.04
4.3.110.0070.0206.04
4.3.100.0030.0206.04
4.3.90.0000.0276.04
4.3.80.0000.0376.04
4.3.70.0030.0206.04
4.3.60.0070.0176.04
4.3.50.0000.0276.04
4.3.40.0100.0276.04
4.3.30.0030.0206.04
4.3.20.0000.0236.04
4.3.10.0030.0206.04
4.3.00.0230.0237.32