3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 52.5; $biasa = array(0,40,65); $puas = array(40,65,80); $istimewa = array(65,80,100); $kb = array_intersect($biasa, $puas); print_r($kb); if ( $hasil <= $kb ) { // hitung nilai kecewa pake rumus fuzzy logic $muKecewa = ($kb[1] - $hasil) / ($kb[2] - $kb[1]); //output : 52,5 $muBiasa = ($hasil - $kb[1]) / ($kb[2] - $kb[1]); echo $muKecewa; echo "<br />"; echo $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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0120.00616.50
8.3.50.0120.00521.90
8.3.40.0110.01118.64
8.3.30.0150.00319.27
8.3.20.0040.00420.34
8.3.10.0020.00523.48
8.3.00.0000.00819.38
8.2.180.0070.01018.16
8.2.170.0090.00622.96
8.2.160.0030.01220.55
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0090.00022.05
8.2.110.0030.00622.20
8.2.100.0040.00717.97
8.2.90.0060.00319.22
8.2.80.0040.00418.16
8.2.70.0090.00017.50
8.2.60.0040.00418.16
8.2.50.0000.00918.07
8.2.40.0050.00318.16
8.2.30.0060.00318.21
8.2.20.0040.00417.66
8.2.10.0000.00718.19
8.2.00.0000.00817.74
8.1.280.0110.00425.92
8.1.270.0070.00722.05
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0030.00623.83
8.1.230.0080.00319.16
8.1.220.0060.00317.79
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0040.00417.30
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0000.00722.02
8.1.150.0000.00818.63
8.1.140.0020.00517.52
8.1.130.0060.00317.93
8.1.120.0090.00017.43
8.1.110.0040.00417.39
8.1.100.0050.00217.52
8.1.90.0040.00417.37
8.1.80.0040.00417.48
8.1.70.0030.00517.44
8.1.60.0050.00317.47
8.1.50.0050.00317.50
8.1.40.0030.00617.50
8.1.30.0040.00417.65
8.1.20.0000.00717.56
8.1.10.0030.00617.48
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0000.00818.43
8.0.270.0070.00017.21
8.0.260.0000.00716.86
8.0.250.0040.00417.00
8.0.240.0030.00716.89
8.0.230.0070.00017.00
8.0.220.0000.00716.96
8.0.210.0070.00016.90
8.0.200.0000.00816.83
8.0.190.0000.00716.97
8.0.180.0080.00016.80
8.0.170.0050.00216.78
8.0.160.0030.00516.90
8.0.150.0030.00516.88
8.0.140.0040.00416.73
8.0.130.0050.00013.30
8.0.120.0000.00916.88
8.0.110.0060.00316.92
8.0.100.0000.00716.74
8.0.90.0050.00316.68
8.0.80.0120.00416.78
8.0.70.0030.00516.90
8.0.60.0040.00416.76
8.0.50.0040.00416.95
8.0.30.0130.00616.92
8.0.20.0160.01017.40
8.0.10.0080.00017.00
8.0.00.0070.01216.86
7.4.330.0030.00315.07
7.4.320.0060.00016.47
7.4.300.0030.00316.55
7.4.290.0070.00016.43
7.4.280.0040.00416.41
7.4.270.0080.00016.55
7.4.260.0070.00016.52
7.4.250.0070.00016.45
7.4.240.0010.00616.59
7.4.230.0070.00016.63
7.4.220.0110.00716.68
7.4.210.0040.01216.61
7.4.200.0050.00216.62
7.4.190.0030.00516.55
7.4.160.0060.01016.59
7.4.150.0190.00317.40
7.4.140.0130.00917.86
7.4.130.0090.00616.56
7.4.120.0090.00916.53
7.4.110.0100.00716.36
7.4.100.0130.00616.43
7.4.90.0100.01016.58
7.4.80.0070.01119.39
7.4.70.0000.01616.49
7.4.60.0090.00916.59
7.4.50.0000.00416.45
7.4.40.0000.01522.77
7.4.30.0080.00816.38
7.4.00.0030.01215.15
7.3.330.0050.00013.09
7.3.320.0000.00513.22
7.3.310.0070.00016.18
7.3.300.0000.00816.23
7.3.290.0040.01116.23
7.3.280.0110.00716.29
7.3.270.0110.00717.40
7.3.260.0100.02016.54
7.3.250.0080.00916.44
7.3.240.0060.01516.52
7.3.230.0140.00316.39
7.3.210.0140.00316.68
7.3.200.0110.00719.39
7.3.190.0090.01616.30
7.3.180.0090.00616.36
7.3.170.0080.00816.50
7.3.160.0160.00316.38
7.3.120.0100.00614.73
7.3.110.0150.00415.19
7.3.100.0090.00614.54
7.3.90.0070.01314.97
7.3.80.0000.00914.57
7.3.70.0090.00614.98
7.3.60.0000.01314.86
7.3.50.0000.01414.78
7.3.40.0090.00614.85
7.3.30.0100.00714.79
7.3.20.0000.01016.44
7.3.10.0000.01016.75
7.3.00.0090.00316.68
7.2.330.0060.01216.52
7.2.320.0070.01116.78
7.2.310.0140.00416.45
7.2.300.0140.00416.83
7.2.290.0160.00616.66
7.2.250.0060.01314.93
7.2.240.0150.00314.89
7.2.230.0100.00315.26
7.2.220.0060.01014.67
7.2.210.0030.00715.05
7.2.200.0030.00615.00
7.2.190.0100.00315.07
7.2.180.0000.01415.10
7.2.170.0140.00315.13
7.2.00.0060.00619.42
7.1.330.0030.01015.96
7.1.320.0040.00815.84
7.1.310.0070.00415.82
7.1.300.0040.01115.73
7.1.290.0100.00315.52
7.1.280.0090.00315.80
7.1.270.0000.00915.78
7.1.260.0090.00615.98
7.1.100.0000.01118.24
7.1.70.0000.00817.18
7.1.60.0140.01119.33
7.1.50.0040.00817.08
7.1.00.0070.07022.40
7.0.200.0030.00616.69
7.0.140.0070.07022.00
7.0.60.0030.04319.96
7.0.50.0030.08317.77
7.0.40.0070.05320.31
7.0.30.0270.04020.23
7.0.20.0230.08020.15
7.0.10.0030.04320.24
7.0.00.0130.07020.27
5.6.280.0030.07321.10
5.6.210.0000.04320.47
5.6.200.0000.04718.22
5.6.190.0130.08320.46
5.6.180.0300.07320.46
5.6.170.0270.05320.62
5.6.160.0000.04320.54
5.6.150.0070.08018.30
5.6.140.0170.06718.14
5.6.130.0100.08718.17
5.6.120.0100.08020.99
5.6.110.0070.08321.01
5.6.100.0000.06720.98
5.6.90.0200.05321.13
5.6.80.0100.06320.51
5.6.70.4500.04720.36
5.5.350.0000.06020.42
5.5.340.0100.03717.97
5.5.330.0000.04720.31
5.5.320.0230.03320.36
5.5.310.0270.08020.36
5.5.300.0030.04018.04
5.5.290.0100.04717.91
5.5.280.0030.05720.88
5.5.270.0070.08320.86
5.5.260.0130.08320.95
5.5.250.0170.07320.54
5.5.240.0170.04320.26
5.4.450.1270.03719.55
5.4.440.0970.05719.45
5.4.430.0800.04019.65
5.4.420.0770.06719.45
5.4.410.0700.05019.53
5.4.400.0100.05319.24
5.4.390.0800.06319.02
5.4.380.0300.05018.44
5.4.370.0230.05318.77
5.4.360.0300.04318.48
5.4.350.0170.05718.82
5.4.340.0230.05018.44
5.4.320.0090.04212.49
5.4.310.0070.04012.48
5.4.300.0060.04612.49
5.4.290.0060.04012.48
5.4.280.0060.04012.38
5.4.270.0080.03412.38
5.4.260.0080.04612.38
5.4.250.0110.03712.38
5.4.240.0050.03812.38
5.4.230.0100.03912.38
5.4.220.0060.04012.37
5.4.210.0040.03712.37
5.4.200.0060.03812.37
5.4.190.0230.03812.38
5.4.180.0410.08112.38
5.4.170.0190.04112.39
5.4.160.0210.07012.38
5.4.150.0100.05012.38
5.4.140.0170.04312.06
5.4.130.0200.04012.05
5.4.120.0360.08112.00
5.4.110.0100.04712.00
5.4.100.0150.04312.00
5.4.90.0120.04512.00
5.4.80.0140.04312.00
5.4.70.0190.03712.00
5.4.60.0140.04212.00
5.4.50.0150.04012.00
5.4.40.0140.04211.99
5.4.30.0180.03911.99
5.4.20.0160.04011.99
5.4.10.0120.04511.99
5.4.00.0150.04111.48
5.3.290.0080.03912.80
5.3.280.0070.03612.71
5.3.270.0110.04912.72
5.3.260.0420.07812.72
5.3.250.0220.03712.72
5.3.240.0210.03812.72
5.3.230.0150.04612.71
5.3.220.0170.07212.68
5.3.210.0160.04412.68
5.3.200.0130.04712.68
5.3.190.0180.04312.68
5.3.180.0180.04112.68
5.3.170.0130.04612.67
5.3.160.0180.04212.67
5.3.150.0160.04512.68
5.3.140.0150.04512.66
5.3.130.0130.04812.66
5.3.120.0160.04512.66
5.3.110.0170.04412.66
5.3.100.0180.04212.12
5.3.90.0200.06812.10
5.3.80.0180.04312.10
5.3.70.0170.04212.09
5.3.60.0220.03812.07
5.3.50.0210.03812.02
5.3.40.0180.04112.03
5.3.30.0230.03812.00
5.3.20.0200.07011.77
5.3.10.0130.04411.73
5.3.00.0140.04211.71
5.2.170.0140.0349.22
5.2.160.0110.0379.22
5.2.150.0110.0379.22
5.2.140.0220.0299.22
5.2.130.0150.0319.18
5.2.120.0140.0349.17
5.2.110.0130.0389.18
5.2.100.0130.0349.18
5.2.90.0120.0349.18
5.2.80.0160.0319.17
5.2.70.0280.0539.17
5.2.60.0120.0359.13
5.2.50.0130.0389.09
5.2.40.0070.0429.07
5.2.30.0150.0329.04
5.2.20.0100.0379.04
5.2.10.0130.0338.96
5.2.00.0090.0368.81
5.1.60.0140.0268.10
5.1.50.0200.0508.09
5.1.40.0070.0338.09
5.1.30.0110.0338.42
5.1.20.0170.0268.46
5.1.10.0090.0348.17
5.1.00.0120.0298.18
5.0.50.0150.0196.66
5.0.40.0090.0236.51
5.0.30.0120.0336.32
5.0.20.0090.0256.31
5.0.10.0070.0256.29
5.0.00.0050.0406.28
4.4.90.0060.0194.78
4.4.80.0090.0214.76
4.4.70.0090.0184.75
4.4.60.0100.0164.75
4.4.50.0340.0524.77
4.4.40.0050.0314.70
4.4.30.0060.0194.75
4.4.20.0090.0174.84
4.4.10.0100.0154.85
4.4.00.0070.0284.76
4.3.110.0070.0184.67
4.3.100.0080.0174.67
4.3.90.0060.0184.63
4.3.80.0040.0304.58
4.3.70.0070.0174.63
4.3.60.0070.0174.63
4.3.50.0060.0184.63
4.3.40.0150.0484.54
4.3.30.0050.0183.33
4.3.20.0030.0203.32
4.3.10.0040.0183.28
4.3.00.0170.01315.59

preferences:
42.69 ms | 401 KiB | 5 Q