3v4l.org

run code in 300+ PHP versions simultaneously
<?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); 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.0140.00318.55
8.3.50.0070.01121.14
8.3.40.0070.00718.86
8.3.30.0040.01418.71
8.3.20.0040.00418.64
8.3.10.0080.00021.04
8.3.00.0050.00323.64
8.2.180.0140.00716.88
8.2.170.0120.00322.96
8.2.160.0100.00320.35
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.00319.77
8.2.110.0030.00620.47
8.2.100.0060.00617.84
8.2.90.0060.00319.09
8.2.80.0000.00718.05
8.2.70.0040.00417.75
8.2.60.0030.00618.03
8.2.50.0080.00018.07
8.2.40.0040.00418.28
8.2.30.0040.00421.28
8.2.20.0040.00417.69
8.2.10.0000.00717.65
8.2.00.0040.00417.68
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00722.60
8.1.230.0040.00720.84
8.1.220.0080.00018.77
8.1.210.0050.00318.90
8.1.200.0040.00417.22
8.1.190.0040.00417.48
8.1.180.0080.00018.10
8.1.170.0050.00318.72
8.1.160.0040.00418.78
8.1.150.0030.00618.54
8.1.140.0030.00517.46
8.1.130.0030.00317.77
8.1.120.0040.00417.45
8.1.110.0000.00817.35
8.1.100.0070.00017.54
8.1.90.0020.00517.39
8.1.80.0030.00417.37
8.1.70.0000.00817.41
8.1.60.0000.00817.64
8.1.50.0000.00717.47
8.1.40.0000.01117.45
8.1.30.0040.00417.62
8.1.20.0080.00017.58
8.1.10.0000.00717.57
8.1.00.0040.00417.51
8.0.300.0030.00619.89
8.0.290.0070.00017.18
8.0.280.0000.00718.42
8.0.270.0040.00417.21
8.0.260.0090.00016.90
8.0.250.0000.00716.91
8.0.240.0000.00916.95
8.0.230.0040.00416.93
8.0.220.0070.00016.90
8.0.210.0070.00016.91
8.0.200.0030.00317.01
8.0.190.0030.00616.97
8.0.180.0050.00216.80
8.0.170.0110.00016.89
8.0.160.0030.00316.90
8.0.150.0030.00316.82
8.0.140.0030.00516.89
8.0.130.0030.00313.29
8.0.120.0000.00816.91
8.0.110.0000.00816.82
8.0.100.0070.00016.79
8.0.90.0070.00016.87
8.0.80.0070.01016.84
8.0.70.0000.00716.89
8.0.60.0000.00716.90
8.0.50.0040.00416.97
8.0.30.0050.01416.96
8.0.20.0160.00317.41
8.0.10.0070.00017.09
8.0.00.0030.01516.86
7.4.330.0020.00214.78
7.4.320.0030.00316.60
7.4.300.0030.00316.59
7.4.290.0000.00716.52
7.4.280.0070.00016.43
7.4.270.0040.00416.58
7.4.260.0030.00313.36
7.4.250.0000.00716.57
7.4.240.0040.00416.55
7.4.230.0000.00716.55
7.4.220.0090.01316.48
7.4.210.0090.00616.58
7.4.200.0040.00416.60
7.4.190.0000.00716.77
7.4.160.0110.00716.67
7.4.150.0120.00617.40
7.4.140.0110.01317.86
7.4.130.0070.00916.57
7.4.120.0070.01416.62
7.4.110.0070.01116.41
7.4.100.0160.00816.46
7.4.90.0150.00316.40
7.4.80.0130.00419.39
7.4.70.0060.01316.55
7.4.60.0100.00716.54
7.4.50.0050.00316.34
7.4.40.0110.00022.52
7.4.30.0130.00516.61
7.4.00.0050.00514.82
7.3.330.0000.00613.27
7.3.320.0060.00013.18
7.3.310.0030.00316.43
7.3.300.0060.00016.27
7.3.290.0080.01116.29
7.3.280.0080.00916.27
7.3.270.0100.00617.40
7.3.260.0050.01218.24
7.3.250.0130.01016.31
7.3.240.0060.01116.38
7.3.230.0140.00316.55
7.3.210.0100.00716.50
7.3.200.0140.01119.39
7.3.190.0090.01316.42
7.3.180.0060.00916.29
7.3.170.0120.00316.32
7.3.160.0060.00916.60
7.3.120.0080.00816.90
7.3.110.0090.00616.90
7.3.100.0030.01216.90
7.3.90.0120.00316.90
7.3.80.0100.00016.90
7.3.70.0090.00316.90
7.3.60.0120.00316.90
7.3.50.0040.00816.90
7.3.40.0100.00316.90
7.3.30.0100.00716.90
7.3.20.0080.00616.90
7.3.10.0060.00616.90
7.3.00.0030.01016.90
7.2.330.0140.00316.63
7.2.320.0080.01216.85
7.2.310.0120.01316.39
7.2.300.0100.00616.75
7.2.290.0080.01116.77
7.2.240.0080.00516.90
7.2.230.0120.00316.90
7.2.220.0060.00616.90
7.2.210.0030.01316.90
7.2.200.0000.01616.90
7.2.190.0040.01216.90
7.2.180.0170.00016.90
7.2.170.0040.01216.90
7.2.160.0040.01016.90
7.2.150.0040.01516.90
7.2.140.0030.01416.90
7.2.130.0090.00616.98
7.2.120.0090.00616.90
7.2.110.0030.01016.93
7.2.100.0060.00917.02
7.2.90.0090.00916.90
7.2.80.0000.01216.90
7.2.70.0000.01517.10
7.2.60.0000.01816.90
7.2.50.0100.00716.95
7.2.40.0030.01016.95
7.2.30.0060.00817.06
7.2.20.0070.00417.14
7.2.10.0130.00316.96
7.2.00.0040.00818.06
7.1.330.0030.01416.90
7.1.320.0070.00716.90
7.1.310.0070.00716.90
7.1.300.0100.00716.90
7.1.290.0080.00416.90
7.1.280.0070.00716.90
7.1.270.0060.00916.90
7.1.260.0030.01016.90
7.1.250.0030.01316.90
7.1.100.0090.00318.18
7.1.70.0030.00516.97
7.1.60.0090.00919.40
7.1.50.0130.01334.79
7.1.00.0030.07022.30
7.0.200.0000.00716.88
7.0.140.0130.06722.10
7.0.60.0070.07020.00
7.0.50.0100.07717.89
7.0.40.0100.08320.18
7.0.30.0270.06320.33
7.0.20.0370.06720.30
7.0.10.0230.08020.20
7.0.00.0070.06020.23
5.6.210.0130.07720.46
5.6.200.0070.08318.29
5.6.190.0030.08020.58
5.6.180.0130.04720.61
5.6.170.0200.06320.45
5.6.160.0070.04020.46
5.6.150.0100.06318.19
5.6.140.0030.07318.17
5.6.130.0070.08318.18
5.6.120.0100.08321.04
5.6.110.0100.08721.11
5.6.100.0070.05021.10
5.6.90.0030.04021.01
5.6.80.0130.05020.42
5.6.70.3170.03320.34
5.5.350.0230.04020.39
5.5.340.0130.08017.92
5.5.330.0030.04020.29
5.5.320.0330.07020.41
5.5.310.0200.08020.29
5.5.300.0070.08717.98
5.5.290.0100.04317.95
5.5.280.0130.04720.77
5.5.270.0100.08020.96
5.5.260.0070.05320.84
5.5.250.0070.07320.78
5.5.240.0130.07020.07
5.4.450.0070.07719.46
5.4.440.0030.06319.47
5.4.430.0000.07319.51
5.4.420.0030.07319.56
5.4.410.0030.07319.26
5.4.400.0030.07319.15
5.4.390.0070.04019.13
5.4.380.0070.05719.06
5.4.370.0030.05718.86
5.4.360.0070.05019.34
5.4.350.0030.07718.86
5.4.340.0030.06018.95
5.4.320.0030.03718.96
5.4.310.0100.06019.24
5.4.300.0000.05719.13
5.4.290.0100.06719.24
5.4.280.0070.08019.30
5.4.270.0100.03719.15
5.4.260.0100.07019.21
5.4.250.0000.08019.23
5.4.240.0000.07019.21
5.4.230.0030.05019.14
5.4.220.0030.06019.12
5.4.210.0000.05718.98
5.4.200.0000.07719.13
5.4.190.0070.07719.14
5.4.180.0100.07318.86
5.4.170.0030.06319.07
5.4.160.0030.07719.20
5.4.150.0070.08019.29
5.4.140.0030.05316.29
5.4.130.0000.07016.30
5.4.120.0030.06716.34
5.4.110.0030.06716.54
5.4.100.0030.07016.54
5.4.90.0000.07316.58
5.4.80.0000.06316.54
5.4.70.0030.06716.26
5.4.60.0070.06716.43
5.4.50.0030.07016.53
5.4.40.0030.04016.53
5.4.30.0030.03316.51
5.4.20.0000.03716.43
5.4.10.0070.03316.38
5.4.00.0000.03315.77
5.3.290.0100.07314.66
5.3.280.0070.05014.69
5.3.270.0100.06714.67
5.3.260.0230.04314.61
5.3.250.0000.06714.82
5.3.240.0000.04714.68
5.3.230.0070.07014.70
5.3.220.0030.04714.55
5.3.210.0100.04314.67
5.3.200.0030.06314.68
5.3.190.0030.06714.48
5.3.180.0070.04014.52
5.3.170.0100.03314.50
5.3.160.0030.07014.60
5.3.150.0070.05714.63
5.3.140.0000.03714.62
5.3.130.0030.03314.76
5.3.120.0000.03714.51
5.3.110.0030.03714.46
5.3.100.0030.03314.14
5.3.90.0000.03713.92
5.3.80.0030.03014.10
5.3.70.0000.03314.02
5.3.60.0000.03714.08
5.3.50.0000.03714.02
5.3.40.0070.03013.87
5.3.30.0000.03313.99
5.3.20.0000.04013.83
5.3.10.0000.03313.83
5.3.00.0030.03313.83
5.2.170.0030.02713.83
5.2.160.0030.02313.83
5.2.150.0000.03013.83
5.2.140.0030.02313.83
5.2.130.0000.03013.83
5.2.120.0000.03013.83
5.2.110.0000.02713.83
5.2.100.0000.02713.83
5.2.90.0000.03013.83
5.2.80.0030.02713.83
5.2.70.0000.03013.83
5.2.60.0000.03013.83
5.2.50.0030.02313.83
5.2.40.0030.02313.83
5.2.30.0030.02713.83
5.2.20.0000.02713.83
5.2.10.0000.02713.83
5.2.00.0000.03013.83
5.1.60.0070.02013.83
5.1.50.0000.02713.83
5.1.40.0000.02313.83
5.1.30.0070.02013.83
5.1.20.0000.02713.83
5.1.10.0000.02313.83
5.1.00.0000.02313.83
5.0.50.0000.02313.83
5.0.40.0000.02013.83
5.0.30.0000.03013.83
5.0.20.0000.02013.83
5.0.10.0000.02013.83
5.0.00.0030.02713.83
4.4.90.0000.01313.83
4.4.80.0000.01313.83
4.4.70.0000.01313.83
4.4.60.0000.01713.83
4.4.50.0030.01013.83
4.4.40.0000.02313.83
4.4.30.0000.01313.83
4.4.20.0000.01313.83
4.4.10.0000.01313.83
4.4.00.0000.02713.83
4.3.110.0000.01713.83
4.3.100.0000.01313.83
4.3.90.0000.01713.83
4.3.80.0000.02713.83
4.3.70.0000.01313.83
4.3.60.0000.01313.83
4.3.50.0030.01313.83
4.3.40.0000.02313.83
4.3.30.0000.01713.83
4.3.20.0000.01713.83
4.3.10.0000.02013.83
4.3.00.0000.02713.83

preferences:
37.96 ms | 401 KiB | 5 Q