3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $price_check = '15'; if($price_check > '0' || $filter='0'){ if($price_check > '20' || $filter='0-20'){ if($price_check > '50' || $filter='20-50'){ if($price_check > '100' || $filter='50-100'){ if($price_check > '200' || $filter='100-200'){ if($price_check > '500' || $filter='200-500'){ //$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 NfYXL

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.0140.00616.44
7.3.0beta10.0070.00312.58
7.3.0alpha10.0000.01012.59
7.2.60.0420.00316.32
7.2.00.0060.00619.29
7.1.200.0050.00515.53
7.1.100.0030.00917.90
7.1.70.0090.00017.09
7.1.60.0140.01019.25
7.1.50.0000.02516.93
7.1.00.0100.06722.51
7.0.200.0080.00016.75
7.0.140.0030.07322.18
7.0.60.0070.03321.72
7.0.50.0070.08017.77
7.0.40.0070.04720.04
7.0.30.0370.07720.04
7.0.20.0130.05320.04
7.0.10.0030.04320.06
7.0.00.0130.06720.12
5.6.280.0070.07020.77
5.6.210.0070.06720.76
5.6.200.0100.03318.11
5.6.190.0070.05020.57
5.6.180.0230.07320.56
5.6.170.0230.04020.44
5.6.160.0030.04320.52
5.6.150.0100.06718.18
5.6.140.0070.03718.14
5.6.130.0070.08718.21
5.6.120.0200.07320.96
5.6.110.0030.05721.04
5.6.100.0030.04021.01
5.6.90.0030.04020.97
5.6.80.0100.07720.43
5.5.350.0370.06020.42
5.5.340.0070.08317.88
5.5.330.0000.05320.21
5.5.320.0470.05320.24
5.5.310.0170.04320.18
5.5.300.0030.05017.87
5.5.290.0170.07317.92
5.5.280.0070.07320.87
5.5.270.0070.03720.79
5.5.260.0000.04720.75
5.5.250.0100.03720.68
5.5.240.0000.08020.14
5.4.450.0230.04719.46
5.4.440.0270.05019.10
5.4.430.0200.05319.40
5.4.420.0230.03719.56
5.4.410.0300.03719.33
5.4.400.0130.03719.22
5.4.390.0230.03319.09
5.4.380.0330.05718.72
5.4.370.0270.05318.71
5.4.360.0270.08318.70
5.4.350.0470.05718.56
5.4.340.0330.04718.72
5.4.320.0030.03812.45
5.4.310.0110.04812.45
5.4.300.0100.04912.45
5.4.290.0100.05412.45
5.4.280.0110.03912.35
5.4.270.0080.04312.35
5.4.260.0080.03912.34
5.4.250.0060.03812.35
5.4.240.0060.03512.34
5.4.230.0050.03812.34
5.4.220.0040.03712.34
5.4.210.0050.03612.34
5.4.200.0080.03412.34
5.4.190.0050.04112.33
5.4.180.0110.04512.33
5.4.170.0100.06412.35
5.4.160.0110.04412.34
5.4.150.0070.04812.34
5.4.140.0060.05112.02
5.4.130.0080.04512.01
5.4.120.0110.04411.97
5.4.110.0100.04611.96
5.4.100.0060.04811.96
5.4.90.0130.04611.96
5.4.80.0060.05011.96
5.4.70.0090.04511.96
5.4.60.0080.04511.96
5.4.50.0070.04711.96
5.4.40.0170.03711.95
5.4.30.0230.03011.95
5.4.20.0120.04211.95
5.4.10.0140.03411.95
5.4.00.0060.05111.44
5.3.290.0060.03812.80
5.3.280.0080.07712.71
5.3.270.0080.05312.73
5.3.260.0060.05612.72
5.3.250.0060.05612.72
5.3.240.0100.05712.72
5.3.230.0070.05012.71
5.3.220.0060.05112.68
5.3.210.0040.05512.68
5.3.200.0060.05212.68
5.3.190.0080.04812.68
5.3.180.0090.04212.68
5.3.170.0070.04312.67
5.3.160.0080.05112.67
5.3.150.0060.04912.67
5.3.140.0090.04112.66
5.3.130.0080.05712.66
5.3.120.0080.05212.66
5.3.110.0090.04612.66
5.3.100.0040.04012.11
5.3.90.0140.04412.09
5.3.80.0120.04612.07
5.3.70.0100.04712.08
5.3.60.0120.05812.06
5.3.50.0100.05712.00
5.3.40.0070.04512.00
5.3.30.0050.03911.94
5.3.20.0060.03811.72
5.3.10.0070.04411.69
5.3.00.0100.05011.68
5.2.170.0080.0399.18
5.2.160.0050.0419.18
5.2.150.0150.0479.18
5.2.140.0060.0419.17
5.2.130.0060.0329.13
5.2.120.0070.0289.13
5.2.110.0080.0359.14
5.2.100.0080.0369.14
5.2.90.0080.0319.14
5.2.80.0040.0339.13
5.2.70.0050.0319.13
5.2.60.0030.0339.09
5.2.50.0100.0369.05
5.2.40.0040.0319.03
5.2.30.0070.0289.00
5.2.20.0030.0329.00
5.2.10.0050.0278.92
5.2.00.0070.0288.78
5.1.60.0060.0238.06
5.1.50.0060.0238.06
5.1.40.0070.0218.04
5.1.30.0070.0268.39
5.1.20.0060.0258.41
5.1.10.0050.0288.14
5.1.00.0060.0268.13
5.0.50.0040.0246.62
5.0.40.0080.0226.48
5.0.30.0040.0336.29
5.0.20.0030.0206.26
5.0.10.0020.0216.23
5.0.00.0080.0356.23
4.4.90.0060.0184.78
4.4.80.0040.0174.76
4.4.70.0030.0154.75
4.4.60.0030.0154.76
4.4.50.0050.0134.77
4.4.40.0050.0244.70
4.4.30.0020.0174.76
4.4.20.0040.0154.85
4.4.10.0020.0184.85
4.4.00.0030.0254.76
4.3.110.0000.0194.67
4.3.100.0010.0184.67
4.3.90.0050.0144.63
4.3.80.0020.0264.59
4.3.70.0030.0154.63
4.3.60.0010.0164.63
4.3.50.0030.0194.63
4.3.40.0040.0234.54
4.3.30.0030.0163.28
4.3.20.0020.0173.26
4.3.10.0000.0183.22
4.3.00.0000.01715.26