3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $match = preg_replace(['/\d/', '/a/'], '_', 'ada2d1', -1); print_r($match);

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.2.60.0070.00716.94
7.2.00.0000.01119.57
7.1.200.0040.00416.04
7.1.100.0000.01118.48
7.1.70.0050.00317.00
7.1.60.0070.01719.46
7.1.50.0140.01117.08
7.1.00.0070.07322.50
7.0.200.0090.00016.94
7.0.140.0030.07322.18
7.0.60.0030.08019.97
7.0.50.0030.05717.82
7.0.40.0000.08320.41
7.0.30.0370.07020.04
7.0.20.0200.06020.18
7.0.10.0130.08020.11
7.0.00.0030.05720.13
5.6.280.0070.07020.85
5.6.210.0130.03320.50
5.6.200.0130.07718.12
5.6.190.0030.08720.56
5.6.180.0130.05720.61
5.6.170.0170.05320.52
5.6.160.0170.06720.43
5.6.150.0070.04318.09
5.6.140.0030.08018.18
5.6.130.0100.07318.21
5.6.120.0000.05321.00
5.6.110.0130.07321.13
5.6.100.0030.08720.94
5.6.90.0070.06721.11
5.6.80.0070.06320.39
5.5.350.0170.07020.40
5.5.340.0070.08317.96
5.5.330.0170.07320.47
5.5.320.0330.07720.28
5.5.310.0330.07020.34
5.5.300.0070.08318.02
5.5.290.0170.06318.01
5.5.280.0130.07020.88
5.5.270.0000.07320.82
5.5.260.0070.05020.76
5.5.250.0170.07020.61
5.5.240.0000.08020.22
5.4.450.0000.03719.46
5.4.440.0870.03019.46
5.4.430.0970.03019.38
5.4.420.0900.03319.41
5.4.410.1330.03319.00
5.4.400.0570.03719.14
5.4.390.1070.03719.08
5.4.380.0530.04718.52
5.4.370.0330.05018.50
5.4.360.0370.05718.51
5.4.350.0470.05018.44
5.4.340.0570.05018.71
5.4.320.0080.04512.45
5.4.310.0070.04612.45
5.4.300.0100.03412.45
5.4.290.0100.05212.43
5.4.280.0050.05112.33
5.4.270.0220.07512.33
5.4.260.0180.09812.33
5.4.250.0070.04812.33
5.4.240.0100.03612.33
5.4.230.0090.03912.32
5.4.220.0050.04512.32
5.4.210.0090.04112.32
5.4.200.0120.04612.32
5.4.190.0060.04012.32
5.4.180.0080.05012.32
5.4.170.0080.03812.33
5.4.160.0080.03812.32
5.4.150.0080.03812.32
5.4.140.0040.04312.00
5.4.130.0050.03811.99
5.4.120.0080.03511.95
5.4.110.0080.03611.95
5.4.100.0110.05411.95
5.4.90.0060.04411.95
5.4.80.0190.09911.95
5.4.70.0140.05811.95
5.4.60.0080.04511.94
5.4.50.0070.03811.95
5.4.40.0070.03811.93
5.4.30.0090.04111.93
5.4.20.0210.10211.93
5.4.10.0110.06211.93
5.4.00.0170.06111.42
5.3.290.0100.04112.80
5.3.280.0120.05712.71
5.3.270.0100.06412.72
5.3.260.0090.04812.72
5.3.250.0090.04012.72
5.3.240.0120.08412.72
5.3.230.0080.04312.70
5.3.220.0120.10712.68
5.3.210.0080.04412.68
5.3.200.0060.04512.68
5.3.190.0070.04912.68
5.3.180.0110.06012.68
5.3.170.0130.06012.66
5.3.160.0080.09412.67
5.3.150.0150.07712.67
5.3.140.0090.05112.66
5.3.130.0100.05112.66
5.3.120.0130.05812.66
5.3.110.0090.04912.66
5.3.100.0110.06012.12
5.3.90.0090.04312.08
5.3.80.0100.06512.07
5.3.70.0160.09112.07
5.3.60.0110.06112.06
5.3.50.0190.06112.00
5.3.40.0150.06512.00
5.3.30.0140.07611.95
5.3.20.0120.08311.73
5.3.10.0100.09111.70
5.3.00.0070.08211.68
5.2.170.0070.0349.18
5.2.160.0060.0369.18
5.2.150.0050.0359.18
5.2.140.0070.0399.18
5.2.130.0130.0579.14
5.2.120.0230.0939.14
5.2.110.0110.0459.15
5.2.100.0050.0419.14
5.2.90.0050.0529.14
5.2.80.0100.0419.14
5.2.70.0090.0659.14
5.2.60.0200.0829.09
5.2.50.0070.0309.05
5.2.40.0060.0299.04
5.2.30.0040.0389.02
5.2.20.0090.0299.00
5.2.10.0080.0358.93
5.2.00.0060.0338.79
5.1.60.0050.0248.06
5.1.50.0060.0258.06
5.1.40.0030.0288.05
5.1.30.0050.0278.40
5.1.20.0050.0278.42
5.1.10.0070.0278.14
5.1.00.0050.0268.14
5.0.50.0040.0216.63
5.0.40.0150.0756.48
5.0.30.0150.1076.29
5.0.20.0110.0466.27
5.0.10.0030.0236.23
5.0.00.0050.0556.22
4.4.90.0090.0364.78
4.4.80.0060.0184.76
4.4.70.0050.0184.76
4.4.60.0040.0194.75
4.4.50.0180.0644.77
4.4.40.0070.0384.71
4.4.30.0080.0174.76
4.4.20.0060.0234.84
4.4.10.0030.0224.85
4.4.00.0030.0314.76
4.3.110.0050.0204.67
4.3.100.0040.0184.66
4.3.90.0080.0314.63
4.3.80.0140.0694.58
4.3.70.0060.0344.63
4.3.60.0120.0364.63
4.3.50.0040.0464.63
4.3.40.0080.0884.54
4.3.30.0140.0553.29
4.3.20.0050.0463.27
4.3.10.0030.0293.21
4.3.00.0000.01716.04