3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $kw = " asdsdfsdf \xFF as "; $pattern = '/[[:cntrl:]' . preg_quote(',!@%^*()={};~`<>?\|', '/') . ']/u'; var_dump($pattern); var_dump(var_export($pattern, true)); var_dump(preg_match($pattern, $kw));
based on odUuD

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.0060.00616.77
7.3.00.0040.00716.84
7.2.130.0070.01016.97
7.2.120.0000.00917.04
7.2.110.0070.01016.96
7.2.100.0030.01316.96
7.2.90.0060.00317.03
7.2.80.0070.01016.69
7.2.70.0030.00916.96
7.2.60.0070.00616.92
7.2.50.0060.00917.03
7.2.40.0080.00817.08
7.2.30.0100.00717.11
7.2.20.0080.00816.85
7.2.10.0090.00616.99
7.2.00.0080.00618.35
7.1.250.0030.00615.87
7.1.200.0100.00316.09
7.1.100.0040.00718.41
7.1.70.0040.00417.06
7.1.60.0030.02119.46
7.1.50.0120.00916.83
7.1.00.0100.06322.43
7.0.200.0000.00716.57
7.0.140.0030.03322.11
7.0.60.0230.06020.06
7.0.50.0100.06717.91
7.0.40.0030.08020.42
7.0.30.0270.04320.22
7.0.20.0430.06720.17
7.0.10.0070.09019.96
7.0.00.0070.06320.01
5.6.280.0100.06720.77
5.6.210.0000.08720.61
5.6.200.0070.04718.10
5.6.190.0070.08320.42
5.6.180.0330.07720.49
5.6.170.0300.07020.51
5.6.160.0100.08720.40
5.6.150.0070.04318.15
5.6.140.0030.04018.14
5.6.130.0030.08318.21
5.6.120.0100.04320.98
5.6.110.0070.07320.98
5.6.100.0070.04721.00
5.6.90.0100.07320.96
5.6.80.0070.04320.50
5.5.350.0230.04720.40
5.5.340.0000.04017.93
5.5.330.0100.08020.19
5.5.320.0030.04020.30
5.5.310.0370.08720.35
5.5.300.0030.05717.96
5.5.290.0030.04017.91
5.5.280.0000.05720.79
5.5.270.0200.05320.71
5.5.260.0100.08320.95
5.5.250.0070.08020.54
5.5.240.0200.04720.00
5.4.450.0130.06019.50
5.4.440.1230.08019.54
5.4.430.0730.05319.58
5.4.420.0670.06319.58
5.4.410.0830.04719.28
5.4.400.1000.05019.00
5.4.390.0170.06018.71
5.4.380.0170.05718.74
5.4.370.0130.06018.49
5.4.360.0200.05318.47
5.4.350.0200.06018.61
5.4.340.0130.07318.57
5.4.320.0170.05018.61
5.4.310.0170.05318.50
5.4.300.0170.05018.73
5.4.290.0200.06018.58
5.4.280.0170.06018.64
5.4.270.0100.07018.73
5.4.260.0200.06018.52
5.4.250.0070.06318.58
5.4.240.0230.05318.48
5.4.230.0200.05718.73
5.4.220.0270.05018.67
5.4.210.0270.05318.76
5.4.200.0100.05716.50
5.4.190.0070.06018.57
5.4.180.0200.05718.54
5.4.170.0130.08318.66
5.4.160.0130.08018.68
5.4.150.0270.06018.44
5.4.140.0330.05316.05
5.4.130.0270.05716.11
5.4.120.0300.05716.04
5.4.110.0100.05716.07
5.4.100.0170.05716.00
5.4.90.0070.06016.21
5.4.80.0130.05316.33
5.4.70.0170.04716.02
5.4.60.0070.07716.18
5.4.50.0230.05716.32
5.4.40.0130.07716.09
5.4.30.0170.06716.19
5.4.20.0100.07716.32
5.4.10.0170.06716.01
5.4.00.0070.07715.60
5.3.290.0130.08014.71
5.3.280.0230.06314.68
5.3.270.0130.08014.70
5.3.260.0170.07014.69
5.3.250.0200.06714.51
5.3.240.0300.04314.59
5.3.230.0070.08014.55
5.3.220.0230.06714.52
5.3.210.0100.06014.63
5.3.200.0100.05314.63
5.3.190.0100.05714.65
5.3.180.0170.05014.63
5.3.170.0270.06314.52
5.3.160.0030.08714.65
5.3.150.0130.07714.52
5.3.140.0170.07314.63
5.3.130.0200.07314.50
5.3.120.0200.07014.64
5.3.110.0300.06314.64
5.3.100.0130.07013.94
5.3.90.0100.07714.07
5.3.80.0230.06314.00
5.3.70.0070.07713.98
5.3.60.0130.05714.00
5.3.50.0170.05013.93
5.3.40.0130.06013.91
5.3.30.0170.07014.00
5.3.20.0170.06713.73
5.3.10.0200.04713.66
5.3.00.0170.06313.73
5.2.170.0100.05711.28
5.2.160.0070.05011.07
5.2.150.0230.05011.30
5.2.140.0130.05711.11
5.2.130.0070.06311.09
5.2.120.0100.05711.07
5.2.110.0130.04711.14
5.2.100.0100.06011.09
5.2.90.0070.06311.11
5.2.80.0130.05711.25
5.2.70.0130.05711.14
5.2.60.0070.06011.12
5.2.50.0130.06010.98
5.2.40.0300.03711.05
5.2.30.0030.07010.93
5.2.20.0100.04310.95
5.2.10.0130.04710.93
5.2.00.0230.04710.73
5.1.60.0130.0339.99
5.1.50.0070.0439.99
5.1.40.0000.0439.95
5.1.30.0100.05010.38
5.1.20.0200.04310.51
5.1.10.0130.04710.09
5.1.00.0100.05010.09
5.0.50.0070.0378.61
5.0.40.0070.0378.48
5.0.30.0030.0578.22
5.0.20.0030.0408.38
5.0.10.0000.0478.25
5.0.00.0170.0438.19
4.4.90.0100.0235.89
4.4.80.0100.0235.88
4.4.70.0070.0275.90
4.4.60.0030.0305.91
4.4.50.0070.0275.91
4.4.40.0070.0435.89
4.4.30.0070.0275.87
4.4.20.0070.0305.88
4.4.10.0130.0235.98
4.4.00.0070.0435.94
4.3.110.0070.0305.82
4.3.100.0130.0235.85
4.3.90.0070.0275.80
4.3.80.0000.0375.81
4.3.70.0030.0205.80
4.3.60.0000.0335.77
4.3.50.0070.0275.82
4.3.40.0000.0475.76
4.3.30.0070.0235.17
4.3.20.0030.0235.17
4.3.10.0070.0205.17
4.3.00.0170.01314.62