3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $price_check = '20.00'; if($price_check > '0'||$filter='0'){ if($price_check < '500') if($price_check < '200') if($price_check < '100') if($price_check < '50') if($price_check < '20') $filter='0-20'; else $filter='20-50'; else $filter='50-100'; else $filter='100-200'; else $filter='200-500'; else $filter='501'; }echo $filter;
based on 3HpHf

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.0030.01019.27
7.1.100.0000.01017.61
7.1.70.0040.00416.70
7.1.60.0070.01319.25
7.1.50.0070.01416.93
7.1.00.0030.07722.36
7.0.200.0040.00416.75
7.0.140.0000.07722.08
7.0.60.0170.05719.91
7.0.50.0030.04717.91
7.0.40.0030.08720.21
7.0.30.0300.04720.15
7.0.20.0370.07720.04
7.0.10.0030.09020.04
7.0.00.0070.04719.99
5.6.280.0000.07721.10
5.6.210.0100.07320.74
5.6.200.0030.08718.08
5.6.190.0030.06020.42
5.6.180.3800.03720.67
5.6.170.0300.07720.49
5.6.160.0130.06320.40
5.6.150.0070.04018.11
5.6.140.0070.03718.23
5.6.130.0030.04718.18
5.6.120.0030.05021.11
5.6.110.0130.07721.00
5.6.100.0070.08020.98
5.6.90.0070.09021.10
5.6.80.0070.08020.41
5.6.70.3770.03720.37
5.5.350.0030.08720.48
5.5.340.0030.05017.88
5.5.330.0070.04720.21
5.5.320.3170.04320.13
5.5.310.0200.03720.27
5.5.300.0170.06318.03
5.5.290.0100.05017.97
5.5.280.0130.03320.86
5.5.270.0030.04320.74
5.5.260.0170.07320.75
5.5.250.0030.06720.46
5.5.240.0300.06020.11
5.4.450.0200.04719.48
5.4.440.0230.04719.21
5.4.430.0200.05319.45
5.4.420.0300.03319.36
5.4.410.0230.04019.43
5.4.400.0300.03019.16
5.4.390.0270.04019.21
5.4.380.0030.06318.59
5.4.370.0200.07018.69
5.4.360.0170.04318.61
5.4.350.0170.05018.50
5.4.340.0170.05018.71
5.4.320.0060.03812.45
5.4.310.0070.03912.45
5.4.300.0060.04912.45
5.4.290.0050.04512.45
5.4.280.0060.03612.34
5.4.270.0050.03712.34
5.4.260.0070.04712.35
5.4.250.0080.03912.34
5.4.240.0060.03612.34
5.4.230.0070.03612.34
5.4.220.0070.03512.34
5.4.210.0080.03412.34
5.4.200.0060.05612.34
5.4.190.0040.04712.34
5.4.180.0080.03912.33
5.4.170.0100.03912.34
5.4.160.0080.03512.34
5.4.150.0070.03712.34
5.4.140.0080.03812.02
5.4.130.0050.03712.01
5.4.120.0070.03811.97
5.4.110.0090.03611.96
5.4.100.0080.03611.96
5.4.90.0100.04811.96
5.4.80.0080.05011.96
5.4.70.0090.03811.96
5.4.60.0070.03411.96
5.4.50.0070.03411.96
5.4.40.0060.03511.95
5.4.30.0060.03511.95
5.4.20.0070.03411.95
5.4.10.0070.03411.95
5.4.00.0040.04011.44
5.3.290.0070.04412.80
5.3.280.0060.04012.71
5.3.270.0070.05312.73
5.3.260.0070.05312.71
5.3.250.0080.04212.72
5.3.240.0110.03812.72
5.3.230.0110.04712.71
5.3.220.0050.05312.68
5.3.210.0130.05212.68
5.3.200.0080.05412.68
5.3.190.0060.03912.68
5.3.180.0090.03812.68
5.3.170.0100.04512.67
5.3.160.0110.03712.67
5.3.150.0060.04912.68
5.3.140.0060.04212.66
5.3.130.0120.03512.66
5.3.120.0080.04412.66
5.3.110.0070.04412.66
5.3.100.0070.03612.12
5.3.90.0090.03812.08
5.3.80.0070.03912.07
5.3.70.0040.03912.08
5.3.60.0080.04512.06
5.3.50.0080.04612.00
5.3.40.0110.04312.00
5.3.30.0090.04611.94
5.3.20.0080.03611.72
5.3.10.0060.03611.69
5.3.00.0070.03711.68
5.2.170.0060.0319.18
5.2.160.0060.0309.19
5.2.150.0060.0309.18
5.2.140.0050.0319.18
5.2.130.0040.0309.14
5.2.120.0040.0299.14
5.2.110.0060.0299.14
5.2.100.0040.0299.14
5.2.90.0070.0279.14
5.2.80.0100.0279.13
5.2.70.0060.0309.13
5.2.60.0030.0339.09
5.2.50.0100.0389.06
5.2.40.0060.0399.04
5.2.30.0100.0389.00
5.2.20.0060.0349.00
5.2.10.0070.0348.92
5.2.00.0060.0428.78
5.1.60.0050.0338.06
5.1.50.0040.0348.06
5.1.40.0080.0408.04
5.1.30.0050.0268.39
5.1.20.0070.0258.41
5.1.10.0060.0358.14
5.1.00.0090.0348.14
5.0.50.0030.0306.61
5.0.40.0030.0236.47
5.0.30.0030.0346.29
5.0.20.0040.0226.28
5.0.10.0050.0196.26
5.0.00.0030.0376.25
4.4.90.0050.0224.78
4.4.80.0030.0204.75
4.4.70.0070.0254.75
4.4.60.0040.0164.75
4.4.50.0030.0204.77
4.4.40.0030.0254.71
4.4.30.0030.0164.76
4.4.20.0030.0164.84
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0040.0154.67
4.3.100.0030.0154.67
4.3.90.0040.0154.64
4.3.80.0020.0284.58
4.3.70.0050.0164.63
4.3.60.0040.0164.63
4.3.50.0020.0234.63
4.3.40.0070.0494.54
4.3.30.0060.0143.31
4.3.20.0020.0163.29
4.3.10.0030.0153.25
4.3.00.0000.01315.26