3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string ='1953 BENTLEY R-TYPE'; echo preg_replace('BENTLEY', 'Bentley', string);

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.0rc40.0080.00898.97
7.3.0rc30.0210.00316.56
7.3.0beta10.0000.00812.59
7.3.0alpha10.0000.01212.53
7.2.80.0060.00616.48
7.2.60.0030.00916.37
7.1.200.0030.01015.46
7.1.70.0000.00717.12
7.1.60.0210.00319.32
7.1.50.0070.01416.63
7.1.00.0070.07022.34
7.0.200.0000.00816.66
7.0.140.0100.06722.07
7.0.60.0030.08720.05
7.0.50.0200.06717.80
7.0.40.0130.08020.04
7.0.30.0130.05020.18
7.0.20.0200.05020.02
7.0.10.0270.05720.09
7.0.00.0030.05320.18
5.6.280.0070.06721.11
5.6.210.0100.07020.47
5.6.200.0030.08718.19
5.6.190.0070.04320.43
5.6.180.3730.04720.61
5.6.170.0300.05720.52
5.6.160.0030.05320.61
5.6.150.0070.05318.16
5.6.140.0130.07318.10
5.6.130.0100.06018.18
5.6.120.0100.05321.09
5.6.110.0070.08320.88
5.6.100.0030.06021.10
5.6.90.0000.05720.93
5.6.80.0170.05720.35
5.5.350.0300.07020.37
5.5.340.0130.06717.95
5.5.330.0070.04020.21
5.5.320.0330.06720.20
5.5.310.0170.07720.12
5.5.300.0130.06717.96
5.5.290.0000.05017.91
5.5.280.0070.08320.76
5.5.270.0030.05020.75
5.5.260.0130.08320.75
5.5.250.0070.07020.63
5.5.240.0200.04720.28
5.4.450.0530.05319.18
5.4.440.0600.05719.49
5.4.430.0730.05019.15
5.4.420.0670.00019.49
5.4.410.0670.00019.57
5.4.400.0670.00019.03
5.4.390.0630.00019.18
5.4.380.0630.00019.16
5.4.370.0600.00018.95
5.4.360.0630.00019.13
5.4.350.0670.00019.08
5.4.340.0070.03811.97
5.4.320.0080.03412.45
5.4.310.0070.03712.45
5.4.300.0050.03812.45
5.4.290.0070.03812.45
5.4.280.0050.03912.34
5.4.270.0110.04512.35
5.4.260.0090.04612.35
5.4.250.0080.04312.35
5.4.240.0060.03812.34
5.4.230.0070.03812.34
5.4.220.0100.03312.34
5.4.210.0090.03712.34
5.4.200.0060.05312.34
5.4.190.0080.04812.34
5.4.180.0060.03512.34
5.4.170.0080.03712.34
5.4.160.0070.03512.34
5.4.150.0080.03412.34
5.4.140.0050.04212.02
5.4.130.0050.04012.01
5.4.120.0030.04211.97
5.4.110.0060.03511.96
5.4.100.0090.03211.96
5.4.90.0080.03411.96
5.4.80.0090.03311.96
5.4.70.0030.03711.96
5.4.60.0080.03311.96
5.4.50.0070.03511.96
5.4.40.0080.03411.95
5.4.30.0080.03411.95
5.4.20.0110.03211.95
5.4.10.0070.03411.95
5.4.00.0130.03611.43
5.3.290.0060.04112.80
5.3.280.0060.04112.71
5.3.270.0040.04012.72
5.3.260.0040.04512.72
5.3.250.0040.04212.72
5.3.240.0060.04012.71
5.3.230.0090.03612.71
5.3.220.0080.03512.68
5.3.210.0050.03912.68
5.3.200.0090.03512.68
5.3.190.0070.03712.68
5.3.180.0090.03512.67
5.3.170.0050.03812.67
5.3.160.0120.04012.68
5.3.150.0050.03812.67
5.3.140.0070.03612.66
5.3.130.0080.05012.66
5.3.120.0100.03912.66
5.3.110.0100.04012.66
5.3.100.0080.04912.12
5.3.90.0050.05212.08
5.3.80.0100.04012.07
5.3.70.0080.03812.08
5.3.60.0060.04312.06
5.3.50.0080.04012.00
5.3.40.0060.04012.00
5.3.30.0100.03311.94
5.3.20.0070.03311.72
5.3.10.0060.04011.69
5.3.00.0100.03211.68
5.2.170.0040.0319.18
5.2.160.0040.0309.18
5.2.150.0040.0349.18
5.2.140.0020.0329.18
5.2.130.0050.0289.13
5.2.120.0030.0299.13
5.2.110.0020.0349.14
5.2.100.0050.0279.14
5.2.90.0040.0299.14
5.2.80.0060.0339.13
5.2.70.0080.0279.13
5.2.60.0070.0399.09
5.2.50.0040.0319.05
5.2.40.0060.0349.03
5.2.30.0070.0389.01
5.2.20.0010.0319.00
5.2.10.0060.0308.92
5.2.00.0030.0338.77
5.1.60.0050.0238.06
5.1.50.0040.0248.06
5.1.40.0030.0258.04
5.1.30.0040.0258.39
5.1.20.0040.0298.41
5.1.10.0040.0278.14
5.1.00.0020.0288.14
5.0.50.0020.0226.61
5.0.40.0040.0196.47
5.0.30.0050.0296.29
5.0.20.0020.0256.26
5.0.10.0030.0286.23
5.0.00.0030.0366.22
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0020.0164.75
4.4.50.0010.0174.77
4.4.40.0050.0224.71
4.4.30.0010.0174.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0040.0244.76
4.3.110.0010.0174.67
4.3.100.0040.0144.66
4.3.90.0050.0194.64
4.3.80.0030.0274.59
4.3.70.0000.0184.63
4.3.60.0030.0144.63
4.3.50.0020.0164.62
4.3.40.0040.0224.54
4.3.30.0020.0153.28
4.3.20.0030.0143.25
4.3.10.0000.0173.22
4.3.00.0330.01312.63