3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $line="This is the first test.{@font-face:Garamond}"; preg_match("/(?<![\]\\]{1}){([\w\s\\@:=\'\"-\.;^}]*)}/", $line, $array); var_dump($array);
based on mlBJP

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.00.0030.00716.64
7.2.130.0030.00817.02
7.2.120.0030.00716.81
7.2.110.0060.00616.80
7.2.100.0090.00616.84
7.2.90.0040.00816.56
7.2.80.0060.00616.96
7.2.70.0040.00716.84
7.2.60.0070.00416.61
7.2.50.0080.00316.93
7.2.40.0090.00916.82
7.2.30.0030.01416.75
7.2.20.0000.01216.65
7.2.10.0060.00316.62
7.2.00.0050.00718.17
7.1.250.0030.00615.57
7.1.240.0070.00315.81
7.1.230.0040.00415.79
7.1.220.0070.00315.91
7.1.210.0100.00015.87
7.1.200.0060.00615.54
7.1.190.0060.00315.51
7.1.180.0050.00515.66
7.1.170.0030.00615.90
7.1.160.0040.00415.88
7.1.150.0040.00415.86
7.1.140.0040.00815.88
7.1.130.0060.00315.50
7.1.120.0060.01015.55
7.1.110.0080.00015.71
7.1.100.0020.01116.85
7.1.90.0030.00915.71
7.1.80.0060.00315.82
7.1.70.0050.00616.44
7.1.60.0030.01017.63
7.1.50.0050.00516.30
7.1.40.0100.00315.80
7.1.30.0030.00615.71
7.1.20.0000.01015.64
7.1.10.0030.00615.80
7.1.00.0020.04219.03
7.0.330.0040.00915.36
7.0.320.0050.00315.32
7.0.310.0040.00815.34
7.0.300.0030.00315.04
7.0.290.0090.00015.30
7.0.280.0070.00015.28
7.0.270.0080.00415.29
7.0.260.0030.00615.41
7.0.250.0040.00415.28
7.0.240.0000.01015.41
7.0.230.0040.00715.16
7.0.220.0040.00815.50
7.0.210.0120.00015.29
7.0.200.2370.00514.97
7.0.190.0080.00315.48
7.0.180.0000.00915.12
7.0.170.0070.00014.91
7.0.160.0030.00615.34
7.0.150.0040.01115.18
7.0.140.0020.04118.84
7.0.130.0030.00615.54
7.0.120.0000.01315.46
7.0.110.0070.00015.28
7.0.100.0060.00315.23
7.0.90.0000.01215.10
7.0.80.0000.00915.09
7.0.70.0040.00815.46
7.0.60.0030.04917.54
7.0.50.0050.03316.64
7.0.40.0080.03616.78
7.0.30.0100.03016.73
7.0.20.0100.03016.85
7.0.10.0190.02516.70
7.0.00.0070.04416.81
5.6.380.0100.00014.43
5.6.370.0120.00014.38
5.6.360.0100.00314.14
5.6.350.0030.01014.27
5.6.340.0080.00813.87
5.6.330.0000.00714.41
5.6.320.0070.00714.20
5.6.310.0070.00713.82
5.6.300.0110.00014.25
5.6.290.0030.01314.13
5.6.280.0040.00714.19
5.6.270.0070.01013.91
5.6.260.0030.00714.47
5.6.250.0030.01014.59
5.6.240.0100.00314.15
5.6.230.0030.00614.15
5.6.220.0040.00713.96
5.6.210.0050.04717.21
5.6.200.0080.04216.27
5.6.190.0150.02417.14
5.6.180.0050.02917.40
5.6.170.0220.04017.34
5.6.160.0050.02317.17
5.6.150.0070.04416.12
5.6.140.0050.03016.27
5.6.130.0030.04016.04
5.6.120.0070.04417.69
5.6.110.0080.04417.56
5.6.100.0070.03317.65
5.6.90.0070.04617.64
5.6.80.0070.04417.31
5.6.70.0130.02017.22
5.6.60.0030.00913.80
5.6.50.0090.00614.17
5.6.40.0000.01314.28
5.6.30.0030.00613.91
5.6.20.0040.00813.79
5.6.10.0090.00014.32
5.6.00.0000.01414.08
5.5.380.0030.00711.18
5.5.370.0050.00011.18
5.5.360.0050.00311.18
5.5.350.0170.03815.77
5.5.340.0050.03314.60
5.5.330.0090.02415.69
5.5.320.0020.02415.66
5.5.310.0200.04015.74
5.5.300.0070.03514.60
5.5.290.0050.02814.53
5.5.280.0100.02515.97
5.5.270.0050.04515.99
5.5.260.0060.02215.92
5.5.250.0070.03215.97
5.5.240.0030.02615.68
5.5.230.0040.00411.18
5.5.220.0030.00311.18
5.5.210.0060.00011.18
5.5.200.0030.00511.18
5.5.190.0000.00811.18
5.5.180.0030.00311.18
5.5.170.0030.01011.18
5.5.160.0000.01111.18
5.5.150.0000.00711.18
5.5.140.0050.00511.18
5.5.130.0030.00511.18
5.5.120.0000.00911.18
5.5.110.0070.00311.18
5.5.100.0000.01111.18
5.5.90.0060.00611.18
5.5.80.0060.00311.18
5.5.70.0040.00711.18
5.5.60.0070.00011.18
5.5.50.0030.00611.18
5.5.40.0030.01011.18
5.5.30.0060.00311.18
5.5.20.0060.00311.18
5.5.10.0000.01111.18
5.5.00.0040.00411.18
5.4.450.0420.03315.31
5.4.440.0600.04215.31
5.4.430.0520.03315.14
5.4.420.0600.02715.25
5.4.410.0680.02715.26
5.4.400.0200.02514.89
5.4.390.0150.03014.83
5.4.380.0150.03014.93
5.4.370.0180.04214.86
5.4.360.0150.03014.88
5.4.350.0230.03514.85
5.4.340.0230.02314.89
5.4.330.0030.00811.18
5.4.320.0200.03114.83
5.4.310.0170.03214.82
5.4.300.0180.03114.96
5.4.290.0170.02514.97
5.4.280.0120.03214.87
5.4.270.0110.03014.88
5.4.260.0170.02414.87
5.4.250.0150.03014.82
5.4.240.0050.03614.84
5.4.230.0090.03414.97
5.4.220.0160.03314.92
5.4.210.0120.03314.85
5.4.200.0130.03213.84
5.4.190.0080.03214.86
5.4.180.0130.02814.94
5.4.170.0070.03614.88
5.4.160.0130.02714.86
5.4.150.0070.03414.95
5.4.140.0140.03513.72
5.4.130.0100.04013.69
5.4.120.0140.02413.76
5.4.110.0220.02213.61
5.4.100.0170.02813.61
5.4.90.0130.02713.70
5.4.80.0140.02313.62
5.4.70.0150.02513.71
5.4.60.0130.02513.65
5.4.50.0080.03313.61
5.4.40.0150.02713.63
5.4.30.0100.03013.59
5.4.20.0130.03213.69
5.4.10.0130.02513.66
5.4.00.0070.03013.47
5.3.290.0130.03012.94
5.3.280.0170.02112.90
5.3.270.0130.02812.88
5.3.260.0110.03412.84
5.3.250.0090.03212.94
5.3.240.0100.02912.89
5.3.230.0080.03212.88
5.3.220.0080.03012.94
5.3.210.0080.03112.82
5.3.200.0150.02312.86
5.3.190.0150.02512.87
5.3.180.0090.03012.82
5.3.170.0180.03012.91
5.3.160.0180.03212.91
5.3.150.0130.03512.86
5.3.140.0300.02912.89
5.3.130.0130.02712.89
5.3.120.0050.03512.88
5.3.110.0090.02612.87
5.3.100.0070.03012.59
5.3.90.0800.03512.60
5.3.80.0150.03312.56
5.3.70.0500.03212.56
5.3.60.0070.03212.64
5.3.50.0150.02712.53
5.3.40.0150.02712.60
5.3.30.0180.02012.52
5.3.20.0410.02512.41
5.3.10.0140.03212.36
5.3.00.0120.03212.41
5.2.170.0130.02011.14
5.2.160.0200.02311.13
5.2.150.0230.01811.15
5.2.140.0080.02711.23
5.2.130.0070.02711.12
5.2.120.0100.02011.16
5.2.110.0170.02211.12
5.2.100.0250.02711.16
5.2.90.0330.02111.22
5.2.80.0120.02211.12
5.2.70.0120.02211.11
5.2.60.0030.03311.07
5.2.50.0120.02511.12
5.2.40.0130.01811.10
5.2.30.0060.02611.09
5.2.20.0100.02811.08
5.2.10.0150.01511.04
5.2.00.0050.02610.93
5.1.60.0120.01310.64
5.1.50.0070.02110.56
5.1.40.0080.01810.59
5.1.30.0070.02410.76
5.1.20.0070.02210.79
5.1.10.0050.02210.62
5.1.00.0030.02310.62
5.0.50.0050.0179.88
5.0.40.0070.0159.80
5.0.30.0070.0229.73
5.0.20.0040.0169.78
5.0.10.0050.0179.73
5.0.00.0030.0249.71
4.4.90.0020.0178.52
4.4.80.0090.0088.49
4.4.70.0050.0138.51
4.4.60.0100.0128.51
4.4.50.0100.0158.54
4.4.40.0380.0258.55
4.4.30.0510.0158.53
4.4.20.0050.0198.55
4.4.10.0280.0118.53
4.4.00.0280.0208.54
4.3.110.0050.0138.53
4.3.100.0060.0118.50
4.3.90.0070.0128.48
4.3.80.0090.0158.51
4.3.70.0050.0138.50
4.3.60.0050.0138.49
4.3.50.0050.0138.47
4.3.40.0020.0208.50
4.3.30.0040.0127.90
4.3.20.0030.0137.85
4.3.10.0000.0157.88
4.3.00.0060.01310.97