3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php (!preg_match("/([\w\-]+\@[\w\-]+\[\w\-]+)/", "maragathamani.b@gmail.com", $matches)); echo $matches[0]; // 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.3.0rc40.0230.00598.97
7.3.0rc30.0960.00316.51
7.3.0beta10.0170.00012.56
7.2.00.0040.01119.57
7.1.200.0030.01216.07
7.1.100.0000.01218.05
7.1.70.0060.00317.09
7.1.60.0120.01219.43
7.1.50.0030.00817.01
7.1.00.0000.03722.45
7.0.200.0170.00014.62
7.0.140.0030.07721.98
7.0.60.0070.04319.91
7.0.50.0070.04017.81
7.0.40.0170.07720.11
7.0.30.0230.05320.11
7.0.20.0270.04020.02
7.0.10.0300.07720.25
7.0.00.0130.04320.14
5.6.280.0000.07721.01
5.6.210.0130.07720.62
5.6.200.0070.04718.19
5.6.190.0170.08020.38
5.6.180.0170.04720.41
5.6.170.0070.05020.33
5.6.160.0030.08320.38
5.6.150.0070.05718.15
5.6.140.0070.03718.11
5.6.130.0230.06718.04
5.6.120.0130.08021.11
5.6.110.0100.08021.13
5.6.100.0130.07721.01
5.6.90.0030.04020.95
5.6.80.0030.04020.38
5.6.70.0400.06720.39
5.5.350.0000.08320.43
5.5.340.0070.05718.01
5.5.330.0170.08020.29
5.5.320.0300.07320.18
5.5.310.0230.06720.17
5.5.300.0130.07317.91
5.5.290.0070.08017.88
5.5.280.0030.07720.87
5.5.270.0100.04320.95
5.5.260.0130.05720.71
5.5.250.0130.07720.66
5.5.240.0300.06320.14
5.4.450.0300.06319.52
5.4.440.1100.05719.52
5.4.430.1000.05719.63
5.4.420.1130.05319.48
5.4.410.1000.05718.97
5.4.400.1630.07318.62
5.4.390.1130.04718.53
5.4.380.0170.06018.70
5.4.370.0200.04718.56
5.4.360.0130.05018.72
5.4.350.0070.03511.97
5.4.340.0070.03411.97
5.4.320.0030.05112.45
5.4.310.0070.04912.45
5.4.300.0060.03812.45
5.4.290.0060.04112.45
5.4.280.0100.04812.34
5.4.270.0090.03712.35
5.4.260.0050.04112.35
5.4.250.0020.04212.35
5.4.240.0070.05318.74
5.4.230.0230.04718.69
5.4.220.0100.05018.83
5.4.210.0170.04319.04
5.4.200.0070.05718.74
5.4.190.0130.06718.63
5.4.180.0070.05318.65
5.4.170.0070.07018.74
5.4.160.0030.07318.99
5.4.150.0130.07018.83
5.4.140.0030.07316.26
5.4.130.0070.04716.22
5.4.120.0130.05316.45
5.4.110.0100.04716.20
5.4.100.0230.03716.51
5.4.90.0070.05016.36
5.4.80.0100.06016.21
5.4.70.0070.05016.18
5.4.60.0130.04716.40
5.4.50.0030.05016.36
5.4.40.0030.05316.50
5.4.30.0130.04316.30
5.4.20.0070.07316.36
5.4.10.0000.05716.23
5.4.00.0030.05015.64
5.3.290.0090.05612.80
5.3.280.0030.07014.58
5.3.270.0170.04314.62
5.3.260.0100.05014.66
5.3.250.0070.05714.30
5.3.240.0170.07014.61
5.3.230.0070.07014.51
5.3.220.0070.05014.57
5.3.210.0130.04714.57
5.3.200.0100.05014.45
5.3.190.0030.06014.40
5.3.180.0070.05014.71
5.3.170.0100.04714.47
5.3.160.0070.05714.65
5.3.150.0000.05714.43
5.3.140.0070.05014.57
5.3.130.0070.05714.43
5.3.120.0170.05714.24
5.3.110.0030.06714.41
5.3.100.0030.07313.95
5.3.90.0000.05714.11
5.3.80.0130.04314.11
5.3.70.0100.04713.71
5.3.60.0070.05013.77
5.3.50.0100.06313.81
5.3.40.0070.05013.82
5.3.30.0070.07013.91
5.3.20.0030.05013.78
5.3.10.0130.04013.48
5.3.00.0130.06013.41
5.2.170.0070.06011.16
5.2.160.0030.06311.16
5.2.150.0130.05311.14
5.2.140.0030.06311.02
5.2.130.0000.04311.12
5.2.120.0030.04010.98
5.2.110.0070.03711.11
5.2.100.0000.06711.13
5.2.90.0200.03011.11
5.2.80.0100.04311.18
5.2.70.0030.04311.11
5.2.60.0070.04010.88
5.2.50.0000.05310.85
5.2.40.0030.04010.93
5.2.30.0130.03310.89
5.2.20.0000.06010.95
5.2.10.0030.04310.93
5.2.00.0100.05010.60
5.1.60.0000.03710.18
5.1.50.0000.03710.05
5.1.40.0070.0309.90
5.1.30.0030.03710.23
5.1.20.0000.05710.43
5.1.10.0030.05010.13
5.1.00.0070.0309.92
5.0.50.0070.0338.73
5.0.40.0100.0238.32
5.0.30.0070.0478.27
5.0.20.0000.0408.10
5.0.10.0000.0408.31
5.0.00.0030.0408.12
4.4.90.0070.0175.81
4.4.80.0000.0235.69
4.4.70.0070.0205.75
4.4.60.0000.0275.75
4.4.50.0030.0235.80
4.4.40.0000.0335.76
4.4.30.0070.0235.78
4.4.20.0030.0205.82
4.4.10.0000.0235.91
4.4.00.0000.0375.81
4.3.110.0070.0235.70
4.3.100.0000.0235.69
4.3.90.0030.0275.68
4.3.80.0030.0335.68
4.3.70.0100.0135.70
4.3.60.0000.0205.68
4.3.50.0000.0235.69
4.3.40.0030.0305.66
4.3.30.0030.0205.28
4.3.20.0000.0235.28
4.3.10.0030.0205.28
4.3.00.0030.0206.71