3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "required|equals[1|2|3|4|5]|trim"; preg_match_all('/[^\[\|]+(?:\[.+?\])?/', $str, $matches); print_r($matches[0]); ?>

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.73
7.3.00.0070.01016.48
7.2.130.0080.00817.04
7.2.120.0050.00517.00
7.2.110.0040.00716.95
7.2.100.0000.01516.64
7.2.90.0070.00317.05
7.2.80.0090.00616.84
7.2.70.0140.00016.96
7.2.60.0080.00317.02
7.2.50.0140.00316.96
7.2.40.0000.01317.11
7.2.30.0100.01017.02
7.2.20.0090.00616.73
7.2.10.0130.01016.69
7.2.00.0090.00518.19
7.1.250.0070.00315.73
7.1.240.0140.00015.61
7.1.230.0030.00715.95
7.1.220.0060.00615.91
7.1.210.0100.00716.09
7.1.200.0050.00915.67
7.1.190.0060.00315.81
7.1.180.0040.00416.02
7.1.170.0030.01215.91
7.1.160.0070.00715.92
7.1.150.0090.00316.09
7.1.140.0040.01215.88
7.1.130.0110.00615.91
7.1.120.0070.00715.95
7.1.110.0120.00316.00
7.1.100.0020.00817.26
7.1.90.0130.00016.00
7.1.80.0090.00616.05
7.1.70.0070.00716.69
7.1.60.0070.01217.72
7.1.50.0040.01216.51
7.1.40.0080.00416.06
7.1.30.0130.00315.79
7.1.20.0030.01215.81
7.1.10.0080.00815.91
7.1.00.0030.02018.98
7.0.330.0070.00315.51
7.0.320.0000.01515.63
7.0.310.0030.00515.25
7.0.300.0050.00315.70
7.0.290.0070.00715.48
7.0.280.0060.00615.57
7.0.270.0060.00615.42
7.0.260.0060.00815.69
7.0.250.0050.00315.33
7.0.240.0070.00715.65
7.0.230.0060.01015.52
7.0.220.0100.00715.62
7.0.210.0040.00415.56
7.0.200.0060.00216.09
7.0.190.0090.00415.61
7.0.180.0100.00715.14
7.0.170.0080.00315.60
7.0.160.0100.00715.47
7.0.150.0090.00015.73
7.0.140.0050.03818.86
7.0.130.0070.00715.28
7.0.120.0070.00715.38
7.0.110.0090.00615.46
7.0.100.0090.00915.54
7.0.90.0070.01315.59
7.0.80.0040.01615.49
7.0.70.0000.01815.56
7.0.60.0070.03517.74
7.0.50.0090.04016.81
7.0.40.0050.02516.93
7.0.30.0160.03717.04
7.0.20.0150.03916.83
7.0.10.0130.03816.90
7.0.00.0060.04816.80
5.6.380.0050.00314.57
5.6.370.0040.00414.22
5.6.360.0070.00714.14
5.6.350.0090.00314.54
5.6.340.0050.00814.18
5.6.330.0100.00314.24
5.6.320.0000.01314.19
5.6.310.0030.01014.41
5.6.300.0040.01214.21
5.6.290.0070.01014.30
5.6.280.0050.03617.65
5.6.270.0040.01214.07
5.6.260.0110.00714.36
5.6.250.0090.00614.50
5.6.240.0150.00614.23
5.6.230.0040.01314.40
5.6.220.0070.01114.59
5.6.210.0090.03717.43
5.6.200.0140.03816.38
5.6.190.0060.05217.36
5.6.180.0130.04817.52
5.6.170.0160.04517.43
5.6.160.0160.03817.39
5.6.150.0110.02716.12
5.6.140.0030.02716.20
5.6.130.0100.02416.20
5.6.120.0130.03817.65
5.6.110.0110.04117.65
5.6.100.0070.02517.53
5.6.90.0070.04717.69
5.6.80.0070.04517.34
5.6.70.0170.04517.37
5.6.60.0030.01014.47
5.6.50.0100.00314.05
5.6.40.0060.00614.01
5.6.30.0000.01114.11
5.6.20.0060.00314.07
5.6.10.0100.00714.13
5.6.00.0060.01214.08
5.5.380.0040.01111.05
5.5.370.0000.01011.30
5.5.360.0040.00810.76
5.5.350.0020.04315.72
5.5.340.0030.04814.62
5.5.330.0090.04215.79
5.5.320.0150.04315.78
5.5.310.0160.03915.67
5.5.300.0050.04114.51
5.5.290.0130.03614.49
5.5.280.0100.02315.95
5.5.270.0070.04215.84
5.5.260.0030.02516.00
5.5.250.0080.04015.81
5.5.240.0100.03715.59
5.5.230.0040.00810.72
5.5.220.0000.01110.79
5.5.210.0000.01111.12
5.5.200.0030.00710.85
5.5.190.0090.00010.76
5.5.180.0000.00610.46
5.5.170.0060.00611.07
5.5.160.0030.00611.04
5.5.150.0030.00311.26
5.5.140.0030.00610.81
5.5.130.0030.00611.20
5.5.120.0030.01010.74
5.5.110.0000.00811.07
5.5.100.0040.00810.89
5.5.90.0040.00410.98
5.5.80.0070.00410.73
5.5.70.0050.00310.85
5.5.60.0070.00311.08
5.5.50.0060.00011.30
5.5.40.0050.00510.63
5.5.30.0050.00511.00
5.5.20.0030.01010.96
5.5.10.0000.01310.83
5.5.00.0030.00711.12
5.4.450.0330.03215.11
5.4.440.0680.05815.23
5.4.430.0460.02615.34
5.4.420.0690.03715.07
5.4.410.0370.03015.04
5.4.400.0600.02714.81
5.4.390.0630.03214.81
5.4.380.0180.02514.92
5.4.370.0120.02414.90
5.4.360.0080.02714.63
5.4.350.0050.02711.55
5.4.340.0050.03011.40
5.4.330.0030.00310.84
5.4.320.0060.01911.60
5.4.310.0020.02511.67
5.4.300.0020.02711.67
5.4.290.0040.02111.77
5.4.280.0080.01911.67
5.4.270.0060.02111.69
5.4.260.0060.02311.65
5.4.250.0030.02511.72
5.4.240.0080.03315.03
5.4.230.0070.03014.95
5.4.220.0100.04114.86
5.4.210.0070.02714.89
5.4.200.0090.03714.88
5.4.190.0130.03314.86
5.4.180.0050.03415.02
5.4.170.0070.03314.94
5.4.160.0030.03614.94
5.4.150.0040.04115.00
5.4.140.0010.03113.55
5.4.130.0000.03013.77
5.4.120.0100.02513.86
5.4.110.0050.03213.63
5.4.100.0070.03513.68
5.4.90.0070.02813.65
5.4.80.0060.02813.75
5.4.70.0000.03413.64
5.4.60.0070.02713.74
5.4.50.0070.02813.77
5.4.40.0060.03813.63
5.4.30.0050.03513.61
5.4.20.0050.03813.73
5.4.10.0050.03013.56
5.4.00.0100.03013.53
5.3.290.0070.02011.73
5.3.280.0060.02712.49
5.3.270.0030.03112.44
5.3.260.0120.02312.51
5.3.250.0030.03012.46
5.3.240.0060.04012.41
5.3.230.0030.03112.48
5.3.220.0030.02912.65
5.3.210.0020.03112.38
5.3.200.0110.03512.35
5.3.190.0100.02612.50
5.3.180.0080.03512.68
5.3.170.0050.03312.53
5.3.160.0100.03012.44
5.3.150.0090.02312.63
5.3.140.0090.02612.58
5.3.130.0020.03512.67
5.3.120.0100.03512.52
5.3.110.0100.02712.46
5.3.100.0060.03012.29
5.3.90.0100.02412.36
5.3.80.0100.03312.17
5.3.70.0080.02712.12
5.3.60.0020.03012.23
5.3.50.0020.03012.04
5.3.40.0060.03012.07
5.3.30.0080.02612.16
5.3.20.0050.03212.06
5.3.10.0050.04111.99
5.3.00.0090.03311.87
5.2.170.0030.02510.68
5.2.160.0020.02710.62
5.2.150.0070.02710.64
5.2.140.0100.02510.63
5.2.130.0030.02910.66
5.2.120.0020.02210.71
5.2.110.0050.03210.67
5.2.100.0070.02310.60
5.2.90.0040.03410.67
5.2.80.0060.02310.65
5.2.70.0060.02310.66
5.2.60.0130.02310.55
5.2.50.0050.02510.50
5.2.40.0070.02510.56
5.2.30.0000.02410.55
5.2.20.0050.02010.59
5.2.10.0080.02310.49
5.2.00.0030.02310.47
5.1.60.0050.02610.03
5.1.50.0050.0259.97
5.1.40.0060.02210.04
5.1.30.0000.02810.33
5.1.20.0060.02710.29
5.1.10.0070.02510.07
5.1.00.0060.01810.06
5.0.50.0020.0209.23
5.0.40.0030.0149.25
5.0.30.0060.0209.20
5.0.20.0050.0139.27
5.0.10.0050.0159.21
5.0.00.0000.0249.18
4.4.90.0000.0158.52
4.4.80.0080.0128.52
4.4.70.0020.0168.52
4.4.60.0030.0128.52
4.4.50.0030.0138.52
4.4.40.0030.0248.52
4.4.30.0030.0138.52
4.4.20.0010.0128.52
4.4.10.0050.0098.52
4.4.00.0020.0178.52
4.3.110.0000.0148.52
4.3.100.0050.0138.52
4.3.90.0000.0138.52
4.3.80.0020.0208.52
4.3.70.0000.0158.52
4.3.60.0050.0118.52
4.3.50.0020.0168.52
4.3.40.0050.0208.52
4.3.30.0000.0168.52
4.3.20.0030.0108.52
4.3.10.0030.0128.52
4.3.00.0000.0148.50