3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $productName = "Bad Boy V Bar"; // Clothing if (strpos($productName,"Vest") !== false) { echo "vest"; } elseif (strpos($productName, "tee") !== false) { echo "tee"; } elseif (strpos($productName, "t-shirt") !== false) { echo "t-shirt"; } elseif (strpos($productName, "top") !== false) { echo "top"; } elseif (strpos($productName, "cap") !== false) { echo "cap"; } elseif (strpos($productName, "socks") !== false) { echo "socks"; } elseif (strpos($productName, "jogger") !== false) { echo "jogger"; } elseif (strpos($productName, "hoodie") !== false) { echo "hoodie"; } elseif (strpos($productName, "hoodie") !== false) { echo "hoodie"; } elseif (strpos($productName, "weighted vest") !== false) { echo "weighted vest"; } elseif (strpos($productName, "barbell") !== false) { echo "barbell"; } elseif (strpos($productName, "kettlebell") !== false) { echo "kettlebell"; } elseif (strpos($productName, "curl bar") !== false) { echo "curl bar"; } elseif (strpos($productName, "rope") !== false) { echo "rope"; } elseif (strpos($productName, "purpose bar") !== false) { echo "purpose bar"; } elseif (strpos($productName, "weight plate") !== false) { echo "weight plate"; } elseif (strpos($productName, "olympic bar") !== false) { echo "olympic bar"; } elseif (strpos($productName, "cable") !== false) { echo "cable attachments"; } elseif (strpos($productName, "lat bar") !== false) { echo "lat bar"; } elseif (strpos($productName, "dumpbell") !== false) { echo "dumpbell"; } elseif (strpos($productName, "v bar") !== false) { echo "v bar"; } elseif (strpos($productName, "dumpbell") !== false) { echo "dumpbell"; } elseif (strpos($productName, "grip disc") !== false) { echo "grip disc"; } elseif (strpos($productName, "grip weight") !== false) { echo "grip weight"; } elseif (strpos($productName, "cable handle") !== false) { echo "cable handle"; } ?>

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.00.0060.00619.24
7.1.100.0030.01018.04
7.1.70.0000.00716.87
7.1.60.0110.01419.70
7.1.50.0130.00016.81
7.1.00.0070.07322.37
7.0.200.0030.00716.83
7.0.140.0100.06721.96
7.0.60.0000.07320.08
7.0.50.0070.03717.88
7.0.40.0100.08720.04
7.0.30.0330.07720.04
7.0.20.0230.04720.13
7.0.10.0230.07320.33
7.0.00.0130.03020.01
5.6.280.0070.06721.13
5.6.210.0070.08020.70
5.6.200.0000.04318.09
5.6.190.0030.07020.63
5.6.180.0070.08020.57
5.6.170.0300.09020.48
5.6.160.0030.04720.70
5.6.150.0030.07718.21
5.6.140.0170.06318.20
5.6.130.0070.07718.16
5.6.120.0070.07321.16
5.6.110.0070.05021.02
5.6.100.0000.04721.02
5.6.90.0130.07720.89
5.6.80.0100.03320.54
5.6.70.0370.07320.40
5.5.350.0070.08320.30
5.5.340.0000.05317.91
5.5.330.0070.03720.42
5.5.320.0030.04720.30
5.5.310.0270.08020.20
5.5.300.0130.07318.00
5.5.290.0000.04717.91
5.5.280.0100.04320.79
5.5.270.0100.05020.98
5.5.260.0100.04020.78
5.5.250.0130.05720.68
5.5.240.0000.08320.20
5.4.450.0300.04026.75
5.4.440.0330.03723.53
5.4.430.0300.05021.57
5.4.420.0270.03721.56
5.4.410.0300.04021.36
5.4.400.0330.03721.13
5.4.390.0370.04021.13
5.4.380.0200.06018.57
5.4.370.0230.05018.61
5.4.360.0270.04718.62
5.4.350.0100.06318.67
5.4.340.0200.05018.63
5.4.320.0070.03812.47
5.4.310.0070.04012.48
5.4.300.0040.03812.48
5.4.290.0040.04112.47
5.4.280.0070.03512.37
5.4.270.0060.03512.37
5.4.260.0030.04112.37
5.4.250.0060.03612.37
5.4.240.0070.03512.37
5.4.230.0040.03912.36
5.4.220.0060.03612.36
5.4.210.0060.03512.36
5.4.200.0060.03712.36
5.4.190.0040.03812.36
5.4.180.0060.03712.36
5.4.170.0080.03512.37
5.4.160.0050.03712.36
5.4.150.0090.04312.36
5.4.140.0050.03912.04
5.4.130.0040.04012.03
5.4.120.0070.03611.99
5.4.110.0060.03511.98
5.4.100.0120.03111.99
5.4.90.0090.03411.98
5.4.80.0050.03711.98
5.4.70.0080.03511.98
5.4.60.0060.03411.98
5.4.50.0050.05311.98
5.4.40.0100.04411.97
5.4.30.0070.03811.96
5.4.20.0090.03311.96
5.4.10.0020.03911.96
5.4.00.0080.03411.46
5.3.290.0050.04112.80
5.3.280.0040.04012.71
5.3.270.0050.04012.72
5.3.260.0080.03712.72
5.3.250.0050.03912.72
5.3.240.0060.04212.72
5.3.230.0050.03912.71
5.3.220.0050.03812.68
5.3.210.0050.04012.68
5.3.200.0040.04512.68
5.3.190.0050.03912.68
5.3.180.0060.03712.67
5.3.170.0060.03612.67
5.3.160.0040.03912.68
5.3.150.0070.03812.67
5.3.140.0090.03412.66
5.3.130.0080.03812.66
5.3.120.0070.03812.66
5.3.110.0060.03812.66
5.3.100.0060.03712.12
5.3.90.0080.03712.08
5.3.80.0040.03912.08
5.3.70.0060.04212.07
5.3.60.0060.03612.07
5.3.50.0080.03412.01
5.3.40.0070.04112.01
5.3.30.0030.03711.96
5.3.20.0040.03811.75
5.3.10.0070.04011.71
5.3.00.0090.03311.70
5.2.170.0040.0329.21
5.2.160.0050.0309.21
5.2.150.0070.0299.21
5.2.140.0040.0329.21
5.2.130.0080.0329.16
5.2.120.0040.0349.16
5.2.110.0030.0319.18
5.2.100.0040.0309.16
5.2.90.0030.0319.17
5.2.80.0040.0319.16
5.2.70.0050.0309.16
5.2.60.0090.0279.11
5.2.50.0070.0289.09
5.2.40.0050.0299.06
5.2.30.0020.0339.04
5.2.20.0050.0289.02
5.2.10.0040.0298.94
5.2.00.0050.0298.80
5.1.60.0060.0228.09
5.1.50.0020.0278.09
5.1.40.0060.0238.07
5.1.30.0050.0258.41
5.1.20.0040.0278.44
5.1.10.0030.0278.17
5.1.00.0020.0278.17
5.0.50.0010.0226.64
5.0.40.0020.0206.51
5.0.30.0030.0326.32
5.0.20.0040.0196.29
5.0.10.0030.0216.27
5.0.00.0040.0326.26
4.4.90.0040.0164.78
4.4.80.0020.0174.75
4.4.70.0060.0144.75
4.4.60.0030.0154.76
4.4.50.0050.0134.77
4.4.40.0030.0254.71
4.4.30.0060.0124.76
4.4.20.0020.0174.85
4.4.10.0020.0174.85
4.4.00.0040.0244.76
4.3.110.0030.0164.67
4.3.100.0020.0164.66
4.3.90.0030.0154.63
4.3.80.0020.0264.58
4.3.70.0050.0124.63
4.3.60.0020.0174.63
4.3.50.0040.0164.63
4.3.40.0000.0284.54
4.3.30.0010.0183.31
4.3.20.0010.0183.29
4.3.10.0010.0173.25
4.3.00.0100.01321.12