3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hasil = 65; $kecewa = array(0,40,65); $biasa = array(40,65,80); $puas = array(65,80,100); $kb = array_intersect($kecewa, $biasa); $bp = array_intersect($biasa, $puas); print_r($kb); print_r($bp); // antara 65 - 80 if ( $hasil >= $bp[1] && $hasil <= $bp[2] ) { $muBiasa = ($hasil - $kb[1]) / ($kb[2]-$kb[1]); $muPuas = ($hasil - $bp[1]) / ($bp[2]-$bp[1]); echo " muPuas " .$muPuas; echo " muBiasa " .$muBiasa; } else { echo "False"; }

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.0510.00798.97
7.3.0rc30.0150.01016.41
7.3.0beta10.0090.00912.61
7.3.0alpha10.0000.00712.68
7.2.80.0090.00616.54
7.2.60.0140.00016.57
7.1.200.0000.00915.78
7.1.70.0030.00617.01
7.1.60.0180.00719.32
7.1.50.0030.01317.13
7.1.00.0070.07322.36
7.0.200.0000.00816.89
7.0.140.0000.07322.00
7.0.60.0100.08019.87
7.0.50.0170.04717.84
7.0.40.0130.08019.96
7.0.30.0400.05720.24
7.0.20.0330.06720.21
7.0.10.0030.07320.21
7.0.00.0130.06320.09
5.6.280.0070.07021.10
5.6.210.0000.06720.64
5.6.200.0130.04018.21
5.6.190.0030.09020.47
5.6.180.0100.04720.50
5.6.170.0330.07020.55
5.6.160.0030.04720.39
5.6.150.0070.03718.18
5.6.140.0070.04718.21
5.6.130.0000.07318.18
5.6.120.0100.07720.99
5.6.110.0070.08721.00
5.6.100.0130.08020.98
5.6.90.0030.09021.02
5.6.80.0070.08320.38
5.5.350.0030.08020.43
5.5.340.0070.07717.99
5.5.330.0100.04020.56
5.5.320.0070.07320.23
5.5.310.0230.06020.23
5.5.300.0070.08317.93
5.5.290.0070.05017.98
5.5.280.0100.03720.79
5.5.270.0130.04720.67
5.5.260.0070.09020.87
5.5.250.0030.04320.66
5.5.240.0130.06720.16
5.4.450.0800.03719.46
5.4.440.0430.05019.41
5.4.430.0300.04319.39
5.4.420.0470.03719.54
5.4.410.0470.03719.06
5.4.400.0700.06318.82
5.4.390.0400.05318.57
5.4.380.0170.05718.56
5.4.370.0100.06018.51
5.4.360.0200.04718.79
5.4.350.0200.05318.80
5.4.340.0270.04018.45
5.4.320.0060.03712.48
5.4.310.0100.04012.48
5.4.300.0060.04212.48
5.4.290.0060.03812.48
5.4.280.0050.03912.38
5.4.270.0040.04412.38
5.4.260.0070.04512.38
5.4.250.0110.03912.38
5.4.240.0120.04212.38
5.4.230.0060.04012.37
5.4.220.0040.03912.37
5.4.210.0060.03512.37
5.4.200.0050.03812.37
5.4.190.0350.09012.36
5.4.180.0190.04112.36
5.4.170.0160.04612.38
5.4.160.0210.04112.37
5.4.150.0240.03712.36
5.4.140.0170.04312.05
5.4.130.0140.04612.04
5.4.120.0150.04412.00
5.4.110.0210.04111.99
5.4.100.0110.05411.99
5.4.90.0190.04711.99
5.4.80.0180.04311.99
5.4.70.0110.04911.98
5.4.60.0170.04511.98
5.4.50.0140.04911.99
5.4.40.0220.04211.98
5.4.30.0210.04211.97
5.4.20.0180.04211.97
5.4.10.0250.03611.98
5.4.00.0150.04311.46
5.3.290.0060.04712.80
5.3.280.0060.04012.71
5.3.270.0220.04712.72
5.3.260.0210.06012.72
5.3.250.0370.07012.72
5.3.240.0280.04312.72
5.3.230.0190.04912.71
5.3.220.0150.04812.68
5.3.210.0130.05012.68
5.3.200.0150.05012.68
5.3.190.0190.04412.67
5.3.180.0140.04712.68
5.3.170.0160.04512.67
5.3.160.0160.04712.68
5.3.150.0180.04512.68
5.3.140.0150.04612.66
5.3.130.0250.03812.66
5.3.120.0180.04612.66
5.3.110.0230.04012.66
5.3.100.0200.04212.12
5.3.90.0200.04012.09
5.3.80.0200.04412.09
5.3.70.0170.04512.09
5.3.60.0130.04812.07
5.3.50.0130.04912.02
5.3.40.0160.04712.02
5.3.30.0230.03711.99
5.3.20.0170.04311.76
5.3.10.0160.04311.73
5.3.00.0160.04411.71
5.2.170.0130.0369.21
5.2.160.0160.0339.21
5.2.150.0140.0359.21
5.2.140.0180.0329.21
5.2.130.0130.0349.17
5.2.120.0160.0319.17
5.2.110.0130.0389.18
5.2.100.0090.0399.18
5.2.90.0140.0349.16
5.2.80.0170.0319.16
5.2.70.0110.0389.16
5.2.60.0110.0389.13
5.2.50.0130.0359.09
5.2.40.0080.0419.07
5.2.30.0120.0359.04
5.2.20.0130.0359.04
5.2.10.0120.0368.94
5.2.00.0150.0328.79
5.1.60.0140.0298.08
5.1.50.0100.0338.07
5.1.40.0150.0268.06
5.1.30.0080.0388.40
5.1.20.0120.0328.43
5.1.10.0110.0328.15
5.1.00.0160.0268.15
5.0.50.0120.0256.64
5.0.40.0090.0256.50
5.0.30.0090.0386.31
5.0.20.0100.0236.29
5.0.10.0070.0256.26
5.0.00.0070.0386.26
4.4.90.0090.0184.78
4.4.80.0070.0194.76
4.4.70.0070.0194.76
4.4.60.0100.0174.75
4.4.50.0090.0174.77
4.4.40.0070.0294.70
4.4.30.0070.0224.76
4.4.20.0050.0234.84
4.4.10.0070.0204.85
4.4.00.0100.0274.76
4.3.110.0080.0184.66
4.3.100.0080.0184.67
4.3.90.0060.0194.63
4.3.80.0070.0284.58
4.3.70.0120.0154.63
4.3.60.0100.0164.63
4.3.50.0060.0224.63
4.3.40.0090.0264.54
4.3.30.0030.0213.30
4.3.20.0050.0193.30
4.3.10.0070.0183.25
4.3.00.0000.01712.99