3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "abcdefffefa"; $b = "afe"; print(str_replace(array_uniq(explode('', $a)), '', $b));
based on tQNQDP

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.0300.00798.97
7.3.0rc30.0210.00816.25
7.3.0beta10.0030.00712.57
7.3.0alpha10.0040.00412.83
7.2.60.0070.01016.69
7.2.00.0000.01119.49
7.1.200.0040.01115.57
7.1.100.0040.00717.84
7.1.70.0040.00417.04
7.1.60.0120.01219.61
7.1.50.0070.01316.89
7.1.00.0030.07722.33
7.0.200.0230.01116.52
7.0.140.0030.07321.99
7.0.60.0000.04720.05
7.0.50.0030.04317.77
7.0.40.0000.04720.40
7.0.30.0300.04720.17
7.0.20.0200.05720.13
7.0.10.0270.07320.17
7.0.00.0000.04720.16
5.6.280.0000.07720.88
5.6.210.0030.04320.74
5.6.200.0130.08018.18
5.6.190.0100.06720.56
5.6.180.0370.07320.40
5.6.170.0330.07320.71
5.6.160.0070.03720.50
5.6.150.0030.08318.22
5.6.140.0030.05018.21
5.6.130.0030.07318.15
5.6.120.0130.08020.99
5.6.110.0070.09020.95
5.6.100.0130.03320.96
5.6.90.0100.08021.02
5.6.80.0070.06020.37
5.6.70.0130.03320.27
5.5.350.0100.07320.28
5.5.340.0030.03717.97
5.5.330.0070.04320.20
5.5.320.0200.04320.29
5.5.310.0370.06720.18
5.5.300.0100.04718.01
5.5.290.0030.04317.90
5.5.280.0100.04720.97
5.5.270.0100.08320.82
5.5.260.0170.06020.76
5.5.250.0130.06320.77
5.5.240.0000.04020.03
5.4.450.0800.05319.14
5.4.440.0300.04719.39
5.4.430.0600.04319.60
5.4.420.0370.04019.47
5.4.410.0170.04019.44
5.4.400.0200.03718.92
5.4.390.0530.04718.91
5.4.380.0200.05718.48
5.4.370.0230.04718.64
5.4.360.0170.05718.68
5.4.350.0170.06318.73
5.4.340.0300.06718.58
5.4.320.0120.03512.45
5.4.310.0080.03812.45
5.4.300.0060.03712.45
5.4.290.0050.03912.45
5.4.280.0070.03812.35
5.4.270.0090.03512.34
5.4.260.0050.04112.34
5.4.250.0080.03912.34
5.4.240.0090.03312.34
5.4.230.0110.03412.34
5.4.220.0120.03312.34
5.4.210.0080.03312.34
5.4.200.0030.04012.34
5.4.190.0060.03612.33
5.4.180.0050.03912.33
5.4.170.0040.03712.34
5.4.160.0100.03212.34
5.4.150.0110.03312.34
5.4.140.0060.03912.02
5.4.130.0100.03912.01
5.4.120.0070.03611.97
5.4.110.0050.03611.96
5.4.100.0080.03311.96
5.4.90.0100.03211.96
5.4.80.0040.03911.96
5.4.70.0080.03511.96
5.4.60.0050.03611.96
5.4.50.0070.03511.96
5.4.40.0090.03211.95
5.4.30.0080.04611.95
5.4.20.0060.03611.95
5.4.10.0060.03711.94
5.4.00.0030.04111.44
5.3.290.0120.03812.80
5.3.280.0080.03612.70
5.3.270.0090.03612.72
5.3.260.0060.03912.72
5.3.250.0060.03712.72
5.3.240.0100.03812.72
5.3.230.0070.03812.71
5.3.220.0090.03412.68
5.3.210.0060.03912.68
5.3.200.0060.04912.68
5.3.190.0080.03712.68
5.3.180.0030.04012.67
5.3.170.0100.03412.67
5.3.160.0100.03812.67
5.3.150.0070.03712.67
5.3.140.0060.03812.66
5.3.130.0100.03812.66
5.3.120.0070.05012.66
5.3.110.0080.03812.66
5.3.100.0080.03512.12
5.3.90.0060.03512.09
5.3.80.0060.03712.08
5.3.70.0130.03512.08
5.3.60.0090.03612.07
5.3.50.0060.03612.00
5.3.40.0040.03812.00
5.3.30.0030.04311.94
5.3.20.0050.03711.73
5.3.10.0060.03611.70
5.3.00.0050.03811.68
5.2.170.0040.0319.18
5.2.160.0050.0299.18
5.2.150.0040.0329.18
5.2.140.0060.0299.18
5.2.130.0060.0389.14
5.2.120.0030.0309.14
5.2.110.0020.0319.14
5.2.100.0040.0299.14
5.2.90.0080.0269.15
5.2.80.0030.0319.14
5.2.70.0030.0329.13
5.2.60.0050.0329.09
5.2.50.0070.0279.06
5.2.40.0060.0279.04
5.2.30.0060.0289.02
5.2.20.0050.0289.00
5.2.10.0040.0288.92
5.2.00.0060.0298.78
5.1.60.0080.0228.06
5.1.50.0060.0318.06
5.1.40.0070.0328.04
5.1.30.0040.0288.39
5.1.20.0100.0288.41
5.1.10.0040.0298.14
5.1.00.0070.0248.14
5.0.50.0050.0216.62
5.0.40.0030.0246.47
5.0.30.0070.0336.29
5.0.20.0040.0196.26
5.0.10.0020.0226.24
5.0.00.0060.0366.23
4.4.90.0050.0154.78
4.4.80.0020.0164.75
4.4.70.0050.0144.75
4.4.60.0030.0154.76
4.4.50.0040.0154.77
4.4.40.0030.0274.71
4.4.30.0020.0194.76
4.4.20.0030.0164.85
4.4.10.0020.0174.85
4.4.00.0060.0224.76
4.3.110.0040.0154.67
4.3.100.0030.0154.67
4.3.90.0030.0154.64
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0040.0164.63
4.3.50.0070.0174.63
4.3.40.0050.0254.54
4.3.30.0050.0173.29
4.3.20.0030.0163.26
4.3.10.0010.0193.21
4.3.00.0000.02013.57