3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $match = 'wordtwo'; if (preg_match('/^(\w*)(?:\|(\w*))(?:=(\w\(\)))?$/', $match, $var)) { print_r($var); } else { print('Not matching :('); }

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.0110.00416.59
7.3.00.0090.00516.69
7.2.130.0090.00816.78
7.2.120.0070.01116.79
7.2.110.0090.00616.73
7.2.100.0060.01016.89
7.2.90.0050.00916.86
7.2.80.0060.00816.91
7.2.70.0100.00816.94
7.2.60.0070.00916.87
7.2.50.0070.00916.88
7.2.40.0080.00716.90
7.2.30.0090.00816.96
7.2.20.0080.00816.85
7.2.10.0080.00817.00
7.2.00.0050.01017.42
7.1.250.0080.00815.87
7.1.240.0050.00515.89
7.1.230.0030.00915.76
7.1.220.0060.00315.96
7.1.210.0040.01115.69
7.1.200.0000.01115.85
7.1.190.0060.00915.94
7.1.180.0000.01215.61
7.1.170.0000.01415.89
7.1.160.0120.00315.61
7.1.150.0090.00615.87
7.1.140.0040.01116.05
7.1.130.0060.00615.84
7.1.120.0030.00615.90
7.1.110.0070.00015.90
7.1.100.0040.00916.94
7.1.90.0100.00315.98
7.1.80.0040.01115.93
7.1.70.0040.00416.62
7.1.60.0080.00817.76
7.1.50.0120.00616.47
7.1.40.0030.00915.75
7.1.30.0090.00615.91
7.1.20.0030.00915.99
7.1.10.0050.00815.91
7.1.00.0090.03819.16
7.0.330.0070.00315.37
7.0.320.0040.00815.48
7.0.310.0000.00915.49
7.0.300.0100.00315.37
7.0.290.0030.00915.29
7.0.280.0060.00915.04
7.0.270.0090.00015.32
7.0.260.0040.01115.39
7.0.250.0090.00015.53
7.0.240.0070.00715.57
7.0.230.0030.01015.65
7.0.220.0030.01015.37
7.0.210.0000.01115.34
7.0.200.0060.00316.16
7.0.190.0050.00515.19
7.0.180.0090.00315.21
7.0.170.0060.00615.54
7.0.160.0060.00615.50
7.0.150.0070.00315.33
7.0.140.0070.03818.74
7.0.130.0100.00315.66
7.0.120.0040.00415.20
7.0.110.0000.00815.58
7.0.100.0090.00015.20
7.0.90.0040.00815.28
7.0.80.0060.00915.06
7.0.70.0030.00315.48
7.0.60.0020.03517.65
7.0.50.0100.04016.53
7.0.40.0070.04016.75
7.0.30.0620.03316.86
7.0.20.0160.03916.93
7.0.10.0090.02016.78
7.0.00.0050.04916.92
5.6.380.0090.00614.50
5.6.370.0040.00814.20
5.6.360.0070.00314.30
5.6.350.0120.00414.58
5.6.340.0060.01014.34
5.6.330.0000.01514.24
5.6.320.0030.01014.02
5.6.310.0070.00714.33
5.6.300.0070.00414.43
5.6.290.0000.01314.15
5.6.280.0050.03817.68
5.6.270.0070.00714.34
5.6.260.0090.00613.98
5.6.250.0060.00614.27
5.6.240.0070.00314.01
5.6.230.0000.01514.09
5.6.220.0080.00413.91
5.6.210.0020.03417.38
5.6.200.0100.04316.14
5.6.190.0070.02117.35
5.6.180.0170.04217.21
5.6.170.0200.04017.40
5.6.160.0080.04017.47
5.6.150.0060.04316.02
5.6.140.0050.02316.31
5.6.130.0050.03516.04
5.6.120.0070.04017.72
5.6.110.0100.04017.62
5.6.100.0070.04117.59
5.6.90.0040.02717.48
5.6.80.0060.04117.23
5.6.70.0060.00914.14
5.6.60.0090.00313.86
5.6.50.0030.00614.11
5.6.40.0060.00314.15
5.6.30.0100.00314.13
5.6.20.0060.00614.13
5.6.10.0100.00713.96
5.6.00.0060.00314.01
5.5.380.0060.00311.18
5.5.370.0000.01111.18
5.5.360.0090.00611.18
5.5.350.2030.02215.79
5.5.340.0030.02914.55
5.5.330.0030.02415.71
5.5.320.0090.02015.67
5.5.310.0160.03915.73
5.5.300.0070.04214.60
5.5.290.0080.03314.58
5.5.280.0080.02015.97
5.5.270.0050.03116.04
5.5.260.0120.02016.01
5.5.250.0050.04615.97
5.5.240.0070.01615.72
5.5.230.0060.00311.18
5.5.220.0000.00811.18
5.5.210.0030.00511.18
5.5.200.0050.00011.18
5.5.190.0040.00411.18
5.5.180.0030.00311.18
5.5.170.0000.00711.18
5.5.160.0000.01011.18
5.5.150.0070.00311.18
5.5.140.0030.00411.18
5.5.130.0050.00511.18
5.5.120.0070.00311.18
5.5.110.0000.01011.18
5.5.100.0070.00311.18
5.5.90.0000.00811.18
5.5.80.0070.00311.18
5.5.70.0030.00311.18
5.5.60.0040.00411.18
5.5.50.0030.00911.18
5.5.40.0060.00611.18
5.5.30.0000.00911.18
5.5.20.0000.01111.18
5.5.10.0000.00811.18
5.5.00.0060.00311.18
5.4.450.0150.02315.12
5.4.440.0120.02515.32
5.4.430.0190.02715.31
5.4.420.0180.02115.31
5.4.410.0170.02615.18
5.4.400.0080.02315.16
5.4.390.0180.02315.13
5.4.380.0100.02914.88
5.4.370.0130.02914.92
5.4.360.0100.02814.91
5.4.350.0080.03214.92
5.4.340.0090.02914.84
5.4.330.0030.00611.18
5.4.320.0060.02111.81
5.4.310.0070.02811.81
5.4.300.0040.02811.81
5.4.290.0080.02411.81
5.4.280.0090.02311.76
5.4.270.0040.02711.76
5.4.260.0070.02511.76
5.4.250.0020.03411.76
5.4.240.0070.03011.76
5.4.230.0050.03011.76
5.4.220.0090.02711.76
5.4.210.0060.03011.76
5.4.200.0060.02811.76
5.4.190.0050.03011.75
5.4.180.0060.02811.75
5.4.170.0090.02611.76
5.4.160.0080.02611.76
5.4.150.0090.02411.76
5.4.140.0020.03211.60
5.4.130.0070.02511.59
5.4.120.0050.02511.57
5.4.110.0050.02011.57
5.4.100.0050.02211.57
5.4.90.0030.02711.57
5.4.80.0040.02211.57
5.4.70.0040.02311.57
5.4.60.0050.02211.57
5.4.50.0040.02011.57
5.4.40.0050.02311.56
5.4.30.0080.01811.56
5.4.20.0020.02511.56
5.4.10.0080.01811.56
5.4.00.0060.01911.30
5.3.290.0070.02911.99
5.3.280.0060.02111.94
5.3.270.0060.02311.95
5.3.260.0030.02411.95
5.3.250.0070.02111.95
5.3.240.0100.02711.95
5.3.230.0060.02611.94
5.3.220.0090.02611.93
5.3.210.0050.02711.93
5.3.200.0060.02311.93
5.3.190.0050.02311.93
5.3.180.0050.02411.92
5.3.170.0060.02311.92
5.3.160.0080.02011.93
5.3.150.0070.02011.92
5.3.140.0060.02611.92
5.3.130.0070.02311.92
5.3.120.0070.02911.92
5.3.110.0020.02511.92
5.3.100.0020.02811.65
5.3.90.0040.02711.63
5.3.80.0080.02511.63
5.3.70.0050.02911.63
5.3.60.0060.02411.62
5.3.50.0050.02411.59
5.3.40.0050.02411.59
5.3.30.0040.02811.56
5.3.20.0020.03111.46
5.3.10.0070.02511.44
5.3.00.0080.02311.43
5.2.170.0020.02510.18
5.2.160.0050.02310.18
5.2.150.0070.02210.18
5.2.140.0040.02310.18
5.2.130.0070.01910.16
5.2.120.0110.01610.16
5.2.110.0040.02110.16
5.2.100.0050.02310.16
5.2.90.0070.02010.16
5.2.80.0060.02010.16
5.2.70.0050.02210.16
5.2.60.0050.02310.13
5.2.50.0060.02110.12
5.2.40.0020.02210.11
5.2.30.0050.02310.10
5.2.20.0060.01910.09
5.2.10.0060.01910.05
5.2.00.0060.0219.98
5.1.60.0030.0199.62
5.1.50.0070.0159.62
5.1.40.0040.0189.62
5.1.30.0030.0219.79
5.1.20.0040.0209.80
5.1.10.0020.0209.66
5.1.00.0050.0199.66
5.0.50.0050.0158.90
5.0.40.0050.0138.83
5.0.30.0040.0208.73
5.0.20.0050.0118.72
5.0.10.0050.0118.71
5.0.00.0060.0148.71
4.4.90.0030.0107.98
4.4.80.0040.0097.96
4.4.70.0030.0097.96
4.4.60.0020.0117.96
4.4.50.0020.0127.97
4.4.40.0020.0177.94
4.4.30.0020.0117.97
4.4.20.0020.0118.01
4.4.10.0040.0108.01
4.4.00.0030.0157.97
4.3.110.0020.0117.92
4.3.100.0020.0117.92
4.3.90.0030.0097.91
4.3.80.0020.0167.88
4.3.70.0010.0127.90
4.3.60.0020.0117.90
4.3.50.0030.0107.90
4.3.40.0050.0137.86
4.3.30.0010.0117.23
4.3.20.0010.0127.22
4.3.10.0010.0117.21
4.3.00.0030.01011.89