3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 80; $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); echo "<br />"; if ( $hasil <= $kb ) { // hitung nilai kecewa pake rumus fuzzy logic $muKecewa = ($kb[2] - $hasil) / ($kb[2] - $kb[1]); //output : 52,5 echo $muKecewa; echo "kecewa - biasa"; } elseif ( $hasil >= $bp ) { echo "biasa - puas"; } elseif ( $hasil <= $bp ) { echo "puas"; }

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.01116.63
8.3.50.0070.01321.96
8.3.40.0070.00718.90
8.3.30.0030.01019.05
8.3.20.0050.00220.13
8.3.10.0070.00023.48
8.3.00.0090.00019.38
8.2.180.0090.00618.41
8.2.170.0170.00322.96
8.2.160.0110.00420.29
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00326.16
8.2.120.0040.00422.05
8.2.110.0090.00022.12
8.2.100.0040.00717.84
8.2.90.0050.00319.21
8.2.80.0050.00318.00
8.2.70.0090.00017.63
8.2.60.0030.00618.05
8.2.50.0060.00318.07
8.2.40.0060.00318.34
8.2.30.0080.00018.19
8.2.20.0000.00717.84
8.2.10.0000.00718.02
8.2.00.0040.00417.77
8.1.280.0140.00025.92
8.1.270.0080.00023.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.91
8.1.230.0060.00619.16
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0000.00817.54
8.1.180.0080.00018.10
8.1.170.0050.00318.70
8.1.160.0040.00421.90
8.1.150.0040.00418.69
8.1.140.0030.00517.52
8.1.130.0040.00417.83
8.1.120.0050.00317.52
8.1.110.0070.00017.50
8.1.100.0040.00417.48
8.1.90.0000.00717.50
8.1.80.0040.00417.49
8.1.70.0030.00317.30
8.1.60.0070.00517.53
8.1.50.0060.00317.59
8.1.40.0060.00317.56
8.1.30.0050.00317.48
8.1.20.0040.00417.56
8.1.10.0060.00317.45
8.1.00.0020.00517.40
8.0.300.0030.00318.77
8.0.290.0000.00817.04
8.0.280.0070.00018.47
8.0.270.0030.00317.30
8.0.260.0000.00617.29
8.0.250.0030.00316.99
8.0.240.0070.00016.89
8.0.230.0040.00416.93
8.0.220.0000.00916.91
8.0.210.0000.00716.82
8.0.200.0030.00516.98
8.0.190.0070.00016.97
8.0.180.0040.00416.87
8.0.170.0080.00016.96
8.0.160.0080.00016.96
8.0.150.0050.00216.86
8.0.140.0030.00516.86
8.0.130.0000.00713.33
8.0.120.0040.00416.90
8.0.110.0080.00016.89
8.0.100.0040.00416.86
8.0.90.0000.00716.91
8.0.80.0060.01216.79
8.0.70.0030.00316.81
8.0.60.0040.00416.80
8.0.50.0040.00416.77
8.0.30.0110.00717.15
8.0.20.0110.00817.43
8.0.10.0030.00517.04
8.0.00.0090.00816.74
7.4.330.0060.00015.15
7.4.320.0060.00016.52
7.4.300.0030.00316.51
7.4.290.0000.00716.38
7.4.280.0070.00016.63
7.4.270.0000.00716.45
7.4.260.0040.00416.63
7.4.250.0000.00716.45
7.4.240.0020.00616.58
7.4.230.0000.00816.52
7.4.220.0140.00316.59
7.4.210.0050.01016.65
7.4.200.0040.00416.72
7.4.190.0050.00316.46
7.4.160.0000.01616.77
7.4.150.0060.01417.40
7.4.140.0050.01517.86
7.4.130.0100.00716.46
7.4.120.0080.00916.60
7.4.110.0080.01216.65
7.4.100.0070.01416.48
7.4.90.0110.00716.42
7.4.80.0030.01419.39
7.4.70.0070.01416.61
7.4.60.0100.00716.60
7.4.50.0000.00416.46
7.4.40.0100.00622.77
7.4.30.0040.01216.43
7.4.00.0050.00514.80
7.3.330.0000.00513.21
7.3.320.0020.00213.20
7.3.310.0060.00016.38
7.3.300.0040.00416.26
7.3.290.0140.00016.31
7.3.280.0050.01116.26
7.3.270.0100.00717.40
7.3.260.0070.01016.31
7.3.250.0170.00516.49
7.3.240.0120.00916.48
7.3.230.0070.01016.39
7.3.210.0100.00716.35
7.3.200.0080.01119.39
7.3.190.0140.00316.28
7.3.180.0060.01016.42
7.3.170.0120.00916.27
7.3.160.0130.00916.44
7.3.120.0040.01114.62
7.2.330.0070.01016.50
7.2.320.0140.00816.70
7.2.310.0110.00616.44
7.2.300.0030.01916.68
7.2.290.0000.02016.38
7.2.00.0040.00819.42
7.1.100.0180.00617.78
7.1.70.0030.00516.93
7.1.60.0070.01017.22
7.1.50.0130.01017.06
7.1.00.0030.07722.36
7.0.200.0030.01716.96
7.0.140.0070.07021.95
7.0.60.0370.06721.84
7.0.50.0330.06721.97
7.0.40.0270.06320.04
7.0.30.0330.06320.18
7.0.20.0230.06020.14
7.0.10.0200.07020.11
7.0.00.0200.08720.02
5.6.210.0370.06320.50
5.6.200.0130.07021.01
5.6.190.0270.07320.98
5.6.180.0270.07320.98
5.6.170.0200.08321.02
5.6.160.0130.08721.02
5.6.150.0130.06721.05
5.6.140.0300.08021.02
5.6.130.0300.07021.05
5.6.120.0230.08321.01
5.6.110.0230.04021.11
5.6.100.0130.07721.12
5.6.90.0100.05321.04
5.6.80.0200.07320.43
5.6.70.0200.07720.41
5.6.60.0200.07720.49
5.6.50.0130.05320.37
5.6.40.0200.07320.49
5.6.30.0230.07020.39
5.6.20.0200.08020.50
5.6.10.0130.06320.38
5.6.00.0230.07320.35
5.5.350.0270.07320.44
5.5.340.0200.08320.65
5.5.330.0200.08320.75
5.5.320.0330.07020.84
5.5.310.0200.05320.65
5.5.300.0200.07020.84
5.5.290.0270.07720.87
5.5.280.0230.07720.79
5.5.270.0200.05020.72
5.5.260.0170.08020.75
5.5.250.0270.06720.57
5.5.240.0270.06720.23
5.5.230.0270.06720.33
5.5.220.0200.06020.24
5.5.210.0270.07320.27
5.5.200.0170.07320.23
5.5.190.0130.09020.21
5.5.180.0330.05020.22
5.5.160.0130.07720.22
5.5.150.0230.06720.07
5.5.140.0130.04720.00
5.5.130.0170.06320.12
5.5.120.0200.05320.03
5.5.110.0200.07320.14
5.5.100.0230.06720.11
5.5.90.0200.07320.10
5.5.80.0130.05020.10
5.5.70.0230.06719.95
5.5.60.0170.07320.10
5.5.50.0230.06720.09
5.5.40.0200.04720.09
5.5.30.0130.06020.08
5.5.20.0130.04320.09
5.5.10.0300.09020.03
5.5.00.0170.07320.00
5.4.450.0230.08019.49
5.4.440.0230.06019.39
5.4.430.0170.06719.39
5.4.420.0130.05019.48
5.4.410.0200.07019.20
5.4.400.0130.05719.12
5.4.390.0200.07319.12
5.4.380.0130.07319.01
5.4.370.0170.04319.05
5.4.360.0170.06019.12
5.4.350.0230.05018.92
5.4.340.0300.07019.03
5.4.320.0270.05019.00
5.4.310.0170.04319.07
5.4.300.0370.06319.06
5.4.290.0170.05019.00
5.4.280.0200.06019.20
5.4.270.0200.06719.01
5.4.260.0200.07019.07
5.4.250.0200.03718.91
5.4.240.0200.07019.11
5.4.230.0300.06319.15
5.4.220.0230.07019.13
5.4.210.0200.04019.16
5.4.200.0270.09018.88
5.4.190.0200.06319.16
5.4.180.0230.06019.02
5.4.170.0200.06319.21
5.4.160.0300.06319.14
5.4.150.0200.07319.10
5.4.140.0300.05716.19
5.4.130.0270.06016.24
5.4.120.0270.03316.43
5.4.110.0130.08016.46
5.4.100.0170.07316.47
5.4.90.0270.06716.54
5.4.80.0300.05716.36
5.4.70.0230.06316.37
5.4.60.0200.06716.35
5.4.50.0170.07716.34
5.4.40.0270.03716.40
5.4.30.0170.05716.51
5.4.20.0200.05016.45
5.4.10.0170.07316.54
5.4.00.0300.06315.91
5.3.290.0170.08014.65
5.3.280.0230.08014.63
5.3.270.0330.06014.70
5.3.260.0200.06714.42
5.3.250.0200.06314.57
5.3.240.0230.07014.51
5.3.230.0230.07314.59
5.3.220.0270.07014.68
5.3.210.0200.07714.60
5.3.200.0270.06714.61
5.3.190.0230.06014.58
5.3.180.0270.06714.61
5.3.170.0270.05714.59
5.3.160.0230.07014.61
5.3.150.0370.05314.62
5.3.140.0300.05314.63
5.3.130.0200.07014.59
5.3.120.0230.07014.64
5.3.110.0100.08714.59
5.3.100.0170.07014.04
5.3.90.0130.07714.09
5.3.80.0230.07313.99
5.3.70.0170.08314.08
5.3.60.0200.07013.85
5.3.50.0170.06714.00
5.3.40.0200.04014.04
5.3.30.0200.06013.89
5.3.20.0330.05313.74
5.3.10.0230.06313.54
5.3.00.0230.07013.68
5.2.170.0170.05711.14
5.2.160.0100.06711.12
5.2.150.0170.06010.99
5.2.140.0200.05711.15
5.2.130.0100.06311.00
5.2.120.0270.05010.95
5.2.110.0170.06310.95
5.2.100.0100.06710.99
5.2.90.0200.04711.09
5.2.80.0130.06710.93
5.2.70.0130.04011.20
5.2.60.0170.06011.11
5.2.50.0130.06710.86
5.2.40.0130.05710.97
5.2.30.0170.06010.86
5.2.20.0170.05010.93
5.2.10.0170.05310.96
5.2.00.0170.05710.66
5.1.60.0130.0539.97
5.1.50.0200.03710.04
5.1.40.0070.05310.01
5.1.30.0100.05710.42
5.1.20.0100.05710.40
5.1.10.0100.05710.16
5.1.00.0200.04010.03
5.0.50.0000.0509.06
5.0.40.0000.0309.06
5.0.30.0130.0439.06
5.0.20.0000.0409.06
5.0.10.0030.0339.06
5.0.00.0030.0609.06
4.4.90.0000.0379.06
4.4.80.0000.0379.06
4.4.70.0000.0239.06
4.4.60.0030.0279.06
4.4.50.0000.0339.06
4.4.40.0030.0539.06
4.4.30.0030.0339.06
4.4.20.0000.0339.06
4.4.10.0030.0309.06
4.4.00.0000.0509.06
4.3.110.0000.0379.06
4.3.100.0000.0339.06
4.3.90.0030.0339.06
4.3.80.0030.0509.06
4.3.70.0000.0339.06
4.3.60.0000.0409.06
4.3.50.0030.0309.06
4.3.40.0030.0439.06
4.3.30.0070.0279.06
4.3.20.0030.0339.06
4.3.10.0030.0339.06
4.3.00.0030.0309.06

preferences:
47.96 ms | 401 KiB | 5 Q