3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_replace_callback('/a(\w)|b(\w)/','var_dump','axby');

Here you find the average performance (time & memory) of each version. A greyed 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.0alpha10.0070.00312.73
7.2.60.0120.00316.86
7.2.00.0050.00519.32
7.1.100.0100.00017.90
7.1.70.0030.00617.30
7.1.60.0100.01319.70
7.1.50.0250.01134.80
7.1.00.0100.07022.41
7.0.200.0030.00716.80
7.0.140.0070.07022.09
7.0.60.0170.07720.05
7.0.50.0100.08017.68
7.0.40.0070.08720.04
7.0.30.0470.03720.02
7.0.20.0070.09320.22
7.0.10.0270.07720.18
7.0.00.0100.08720.10
5.6.280.0030.07320.91
5.6.210.0170.07020.65
5.6.200.0070.03718.22
5.6.190.0100.08720.41
5.6.180.0300.08320.36
5.6.170.0270.03720.36
5.6.160.0030.08320.50
5.6.150.0130.07718.21
5.6.140.0070.03318.10
5.6.130.0030.05018.18
5.6.120.0170.07321.14
5.6.110.0030.04021.13
5.6.100.0030.08720.95
5.6.90.0170.07720.96
5.6.80.0070.08020.48
5.6.70.0130.05020.49
5.5.350.0200.03720.43
5.5.340.0200.07017.98
5.5.330.0000.08020.40
5.5.320.0230.07720.41
5.5.310.0170.04020.33
5.5.300.0070.04717.95
5.5.290.0070.05017.96
5.5.280.0170.07320.66
5.5.270.0000.06320.96
5.5.260.0130.07320.76
5.5.250.0170.07720.49
5.5.240.0100.04020.36
5.4.450.0630.05719.25
5.4.440.0770.06019.24
5.4.430.0700.05019.31
5.4.420.0870.00019.53
5.4.410.0070.06018.84
5.4.400.0200.08018.75
5.4.390.0370.06718.46
5.4.380.0300.05018.59
5.4.370.0030.05718.64
5.4.360.0100.04318.48
5.4.350.0070.03411.97
5.4.340.0090.04211.96
5.4.320.0040.03712.45
5.4.310.0080.03812.45
5.4.300.0070.03812.45
5.4.290.0040.04312.45
5.4.280.0050.03912.35
5.4.270.0050.03812.35
5.4.260.0060.03812.35
5.4.250.0090.03612.35
5.4.240.0040.03712.35
5.4.230.0080.03512.34
5.4.220.0060.03712.34
5.4.210.0040.03812.34
5.4.200.0050.04012.34
5.4.190.0050.03812.33
5.4.180.0040.03812.34
5.4.170.0080.03412.35
5.4.160.0030.04012.34
5.4.150.0040.03812.34
5.4.140.0070.04612.02
5.4.130.0060.03512.01
5.4.120.0070.03511.96
5.4.110.0060.03711.96
5.4.100.0060.03911.96
5.4.90.0100.04311.96
5.4.80.0100.04911.96
5.4.70.0090.03611.96
5.4.60.0040.03711.96
5.4.50.0080.03311.96
5.4.40.0090.03211.95
5.4.30.0050.03811.95
5.4.20.0100.03311.94
5.4.10.0050.03711.95
5.4.00.0120.04311.43
5.3.290.0060.04512.80
5.3.280.0060.03912.71
5.3.270.0100.03812.72
5.3.260.0060.03912.72
5.3.250.0050.03812.71
5.3.240.0050.03912.72
5.3.230.0060.03912.71
5.3.220.0060.03812.68
5.3.210.0060.04012.68
5.3.200.0080.03512.68
5.3.190.0030.04112.68
5.3.180.0060.03612.68
5.3.170.0070.03812.67
5.3.160.0090.03512.67
5.3.150.0050.04212.67
5.3.140.0080.03812.66
5.3.130.0060.04112.66
5.3.120.0080.03912.66
5.3.110.0120.04212.66
5.3.100.0070.05112.12
5.3.90.0050.04012.08
5.3.80.0080.03612.07
5.3.70.0100.03912.08
5.3.60.0060.04512.06
5.3.50.0060.03812.00
5.3.40.0090.03512.00
5.3.30.0050.03811.95
5.3.20.0070.03511.73
5.3.10.0100.03311.70
5.3.00.0080.03911.69
5.2.170.0090.0299.19
5.2.160.0060.0379.19
5.2.150.0070.0409.19
5.2.140.0040.0329.18
5.2.130.0070.0279.15
5.2.120.0020.0329.14
5.2.110.0030.0319.16
5.2.100.0090.0269.14
5.2.90.0050.0299.14
5.2.80.0040.0319.14
5.2.70.0050.0309.14
5.2.60.0040.0329.10
5.2.50.0090.0359.06
5.2.40.0040.0429.05
5.2.30.0050.0349.02
5.2.20.0040.0319.01
5.2.10.0030.0318.91
5.2.00.0040.0318.77
5.1.60.0050.0238.06
5.1.50.0030.0268.05
5.1.40.0040.0258.04
5.1.30.0050.0328.39
5.1.20.0040.0288.41
5.1.10.0050.0258.13
5.1.00.0040.0268.14
5.0.50.0030.0226.61
5.0.40.0030.0206.47
5.0.30.0020.0326.29
5.0.20.0040.0186.25
5.0.10.0050.0186.23
5.0.00.0040.0316.22
4.4.90.0010.0174.78
4.4.80.0030.0164.75
4.4.70.0030.0154.75
4.4.60.0020.0154.75
4.4.50.0010.0174.77
4.4.40.0040.0294.71
4.4.30.0020.0174.76
4.4.20.0030.0154.85
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0010.0174.66
4.3.90.0040.0144.63
4.3.80.0020.0264.58
4.3.70.0030.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0214.63
4.3.40.0020.0254.54
4.3.30.0030.0173.27
4.3.20.0040.0193.25
4.3.10.0020.0183.21
4.3.00.0000.0306.62