3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = " title-one author-two date-three "; echo preg_replace('/^author\-.*/im', '', $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.0270.00898.97
7.3.0rc30.0300.00816.71
7.3.0beta10.0040.00412.40
7.3.0alpha10.0030.00612.62
7.2.60.0040.00716.96
7.2.00.0070.00719.37
7.1.200.0060.01015.89
7.1.100.0000.01418.09
7.1.70.0000.01017.20
7.1.60.0110.01419.29
7.1.50.0160.00917.24
7.1.00.0030.07722.46
7.0.200.0060.00616.96
7.0.140.0070.07021.96
7.0.60.0030.04020.02
7.0.50.0100.07717.79
7.0.40.0070.05720.36
7.0.30.0370.04720.04
7.0.20.0270.08320.18
7.0.10.0100.08320.14
7.0.00.0030.08720.43
5.6.280.0000.07720.90
5.6.210.0030.04020.47
5.6.200.0000.05318.13
5.6.190.0030.09020.27
5.6.180.0570.06320.27
5.6.170.0330.04320.72
5.6.160.0070.08720.54
5.6.150.0030.04318.22
5.6.140.0170.07318.11
5.6.130.0070.08018.17
5.6.120.0070.08321.14
5.6.110.0130.03021.00
5.6.100.0130.07721.11
5.6.90.0170.07321.07
5.6.80.0030.05320.38
5.5.350.0300.05020.43
5.5.340.0070.07017.96
5.5.330.0200.07320.40
5.5.320.0300.07320.21
5.5.310.0270.08020.34
5.5.300.0030.08017.91
5.5.290.0070.08017.95
5.5.280.0100.07720.84
5.5.270.0100.04320.82
5.5.260.0200.06320.96
5.5.250.0130.07320.61
5.5.240.0000.04320.18
5.4.450.0670.06319.32
5.4.440.0600.05319.48
5.4.430.0030.06019.25
5.4.420.0100.05319.45
5.4.410.0070.08018.93
5.4.400.0030.06018.75
5.4.390.0070.05318.67
5.4.380.0130.05318.70
5.4.370.0270.08318.46
5.4.360.0300.06318.47
5.4.350.0330.07718.68
5.4.340.0530.04718.71
5.4.320.0060.04412.45
5.4.310.0090.03912.45
5.4.300.0060.04412.45
5.4.290.0080.04212.45
5.4.280.0080.03612.34
5.4.270.0120.03912.35
5.4.260.0070.04112.34
5.4.250.0100.04012.34
5.4.240.0100.03512.34
5.4.230.0060.04412.34
5.4.220.0060.04312.34
5.4.210.0110.03312.34
5.4.200.0080.04112.34
5.4.190.0180.05312.34
5.4.180.0390.08512.34
5.4.170.0130.04612.35
5.4.160.0160.04512.34
5.4.150.0230.03712.34
5.4.140.0190.04012.02
5.4.130.0170.04612.01
5.4.120.0170.04711.97
5.4.110.0210.04211.96
5.4.100.0190.04811.96
5.4.90.0190.04511.96
5.4.80.0190.04011.96
5.4.70.0170.04511.96
5.4.60.0190.04511.96
5.4.50.0140.04511.96
5.4.40.0140.04411.95
5.4.30.0240.04011.95
5.4.20.0170.04411.95
5.4.10.0170.04211.95
5.4.00.0150.04511.44
5.3.290.0060.04612.80
5.3.280.0040.04312.71
5.3.270.0190.04812.72
5.3.260.0210.04812.71
5.3.250.0560.10312.72
5.3.240.0210.05512.72
5.3.230.0220.04812.71
5.3.220.0430.08512.68
5.3.210.0200.04512.68
5.3.200.0200.05012.68
5.3.190.0210.04912.68
5.3.180.0640.15412.68
5.3.170.0210.05312.66
5.3.160.0210.04512.67
5.3.150.0410.12212.67
5.3.140.0250.04912.66
5.3.130.0230.04512.66
5.3.120.0210.04812.65
5.3.110.0230.05812.66
5.3.100.0190.05112.12
5.3.90.0250.05112.08
5.3.80.0320.09312.07
5.3.70.0230.04312.07
5.3.60.0180.04612.06
5.3.50.0170.04812.00
5.3.40.0210.04112.00
5.3.30.0180.04011.96
5.3.20.0500.07611.74
5.3.10.0180.04211.70
5.3.00.0210.03911.68
5.2.170.0170.0359.19
5.2.160.0140.0399.19
5.2.150.0190.0369.19
5.2.140.0160.0349.19
5.2.130.0150.0329.15
5.2.120.0350.0739.14
5.2.110.0130.0359.15
5.2.100.0150.0329.15
5.2.90.0120.0369.15
5.2.80.0360.0729.14
5.2.70.0110.0379.14
5.2.60.0120.0359.09
5.2.50.0170.0309.05
5.2.40.0160.0319.05
5.2.30.0170.0319.02
5.2.20.0230.0569.01
5.2.10.0130.0348.92
5.2.00.0150.0368.78
5.1.60.0110.0328.07
5.1.50.0140.0318.06
5.1.40.0190.0538.05
5.1.30.0160.0298.39
5.1.20.0120.0338.42
5.1.10.0130.0338.14
5.1.00.0100.0328.14
5.0.50.0080.0276.62
5.0.40.0100.0246.47
5.0.30.0110.0366.29
5.0.20.0140.0236.27
5.0.10.0150.0206.24
5.0.00.0050.0436.23
4.4.90.0080.0214.78
4.4.80.0080.0204.75
4.4.70.0090.0194.76
4.4.60.0090.0214.75
4.4.50.0070.0224.77
4.4.40.0090.0354.71
4.4.30.0130.0164.76
4.4.20.0080.0244.85
4.4.10.0100.0194.85
4.4.00.0100.0634.76
4.3.110.0110.0204.67
4.3.100.0140.0204.66
4.3.90.0080.0224.64
4.3.80.0100.0254.58
4.3.70.0120.0154.63
4.3.60.0080.0194.62
4.3.50.0080.0234.63
4.3.40.0120.0314.53
4.3.30.0060.0223.28
4.3.20.0130.0753.27
4.3.10.0060.0173.23
4.3.00.0170.0306.97