3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 90; $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 >= $bp[2])? '0' : ($hasil - $bp[1]) / ($bp[2] - $bp[1]); $muPuas = ($hasil - $bp[1]) / ($bp[2] - $bp[1]); echo " muPuas " .$muPuas; echo " muBiasa " .$muBiasa; } // antara 40 - 65 elseif ( $hasil >= $kb[1] && $hasil < $kb[2] ) { $muKecewa = ($kb[2] - $hasil) / ($kb[2] - $kb[1]); $muBiasa = ($hasil - $kb[1]) / ($kb[2] - $kb[1]); echo "muKecewa " .$muKecewa; echo "muBias " .$muBiasa; }

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.0000.01518.40
8.3.50.0100.00821.21
8.3.40.0070.00718.83
8.3.30.0070.00720.34
8.3.20.0040.00420.65
8.3.10.0000.00821.17
8.3.00.0080.00023.52
8.2.180.0090.00916.50
8.2.170.0110.00722.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0110.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.18
8.2.110.0090.00020.53
8.2.100.0110.00017.91
8.2.90.0040.00419.07
8.2.80.0040.00418.03
8.2.70.0040.00417.63
8.2.60.0000.00717.93
8.2.50.0080.00018.07
8.2.40.0080.00018.34
8.2.30.0080.00019.57
8.2.20.0040.00417.80
8.2.10.0000.00717.88
8.2.00.0050.00317.77
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0110.00021.99
8.1.230.0060.00620.99
8.1.220.0040.00418.77
8.1.210.0080.00319.03
8.1.200.0080.00017.23
8.1.190.0040.00417.52
8.1.180.0030.00518.10
8.1.170.0070.00018.57
8.1.160.0000.00818.93
8.1.150.0000.00918.57
8.1.140.0040.00417.38
8.1.130.0000.00717.85
8.1.120.0000.00717.38
8.1.110.0000.00717.50
8.1.100.0000.00717.51
8.1.90.0040.00417.46
8.1.80.0000.00717.50
8.1.70.0040.00417.41
8.1.60.0030.00617.60
8.1.50.0000.00717.44
8.1.40.0040.00417.45
8.1.30.0040.00417.49
8.1.20.0080.00017.54
8.1.10.0050.00317.40
8.1.00.0080.00017.50
8.0.300.0040.00419.89
8.0.290.0040.00417.03
8.0.280.0030.00318.46
8.0.270.0040.00417.20
8.0.260.0000.00616.76
8.0.250.0000.00717.03
8.0.240.0050.00317.04
8.0.230.0000.00716.98
8.0.220.0000.00716.89
8.0.210.0070.00016.93
8.0.200.0000.00616.94
8.0.190.0050.00316.91
8.0.180.0080.00016.86
8.0.170.0070.00016.86
8.0.160.0000.00716.79
8.0.150.0040.00416.73
8.0.140.0040.00416.78
8.0.130.0030.00313.34
8.0.120.0050.00516.86
8.0.110.0000.00816.82
8.0.100.0000.00716.95
8.0.90.0000.00716.83
8.0.80.0060.01516.88
8.0.70.0050.00216.91
8.0.60.0040.00416.96
8.0.50.0050.00216.93
8.0.30.0070.01317.09
8.0.20.0100.00917.40
8.0.10.0040.00416.94
8.0.00.0150.00716.83
7.4.330.0030.00316.69
7.4.320.0050.00316.70
7.4.300.0000.00616.48
7.4.290.0000.00616.55
7.4.280.0000.01016.54
7.4.270.0000.00716.65
7.4.260.0000.00513.29
7.4.250.0040.00416.48
7.4.240.0000.00816.45
7.4.230.0000.00716.50
7.4.220.0170.00316.42
7.4.210.0080.00716.47
7.4.200.0070.00016.42
7.4.190.0070.00016.48
7.4.160.0080.00816.62
7.4.150.0060.01217.40
7.4.140.0140.00317.86
7.4.130.0110.00616.58
7.4.120.0100.01016.63
7.4.110.0130.00616.44
7.4.100.0070.01016.50
7.4.90.0120.01216.61
7.4.80.0220.00319.39
7.4.70.0070.01016.39
7.4.60.0070.01016.53
7.4.50.0030.00616.55
7.4.40.0030.01222.77
7.4.30.0110.00616.44
7.4.00.0040.01115.22
7.3.330.0060.00013.13
7.3.320.0020.00313.07
7.3.310.0030.00316.14
7.3.300.0050.00316.28
7.3.290.0130.00716.24
7.3.280.0080.01016.29
7.3.270.0100.00817.40
7.3.260.0140.00618.24
7.3.250.0110.00516.37
7.3.240.0100.01016.39
7.3.230.0100.01016.51
7.3.210.0150.00316.35
7.3.200.0120.00619.39
7.3.190.0090.01216.59
7.3.180.0030.01816.33
7.3.170.0100.00616.34
7.3.160.0120.00416.29
7.3.120.0030.01414.76
7.3.10.0100.00716.63
7.3.00.0130.00616.65
7.2.330.0150.00316.50
7.2.320.0060.01016.60
7.2.310.0170.00316.69
7.2.300.0070.01116.68
7.2.290.0130.00616.47
7.2.130.0180.00616.92
7.2.120.0060.01616.75
7.2.110.0160.01216.36
7.2.100.0130.01316.53
7.2.90.0160.01016.55
7.2.80.0150.00416.31
7.2.70.0060.01316.68
7.2.60.0080.00616.75
7.2.50.0180.00417.04
7.2.40.0070.00716.75
7.2.30.0030.01617.00
7.2.20.0100.00316.73
7.2.10.0070.00716.98
7.2.00.0070.00717.01
7.1.250.0120.00315.54
7.1.200.0030.01015.84
7.1.110.0300.00915.89
7.1.100.0320.00716.89
7.1.90.0290.01315.89
7.1.80.0310.01716.12
7.1.70.0160.00516.19
7.1.60.0270.01026.27
7.1.50.0250.01024.98
7.1.40.0330.01332.47
7.1.30.0560.01632.53
7.1.20.0350.01332.79
7.1.10.0230.01214.83
7.1.00.0130.02518.67
7.0.250.0300.00315.43
7.0.240.0280.00315.87
7.0.230.0340.01715.69
7.0.220.0330.01015.84
7.0.210.0220.00714.94
7.0.200.0130.00615.79
7.0.190.0240.01014.73
7.0.180.0260.00614.31
7.0.170.0260.00614.41
7.0.160.0420.01014.42
7.0.150.0220.01014.45
7.0.140.0350.04318.20
7.0.130.0280.00614.62
7.0.120.0220.01114.74
7.0.110.0150.02617.22
7.0.100.0180.02017.17
7.0.90.0200.02217.24
7.0.80.0260.02817.15
7.0.70.0180.03017.22
7.0.60.0210.02317.18
7.0.50.0340.02017.33
7.0.40.0210.04017.28
7.0.30.0290.04617.54
7.0.20.0160.04517.36
7.0.10.0590.04217.52
7.0.00.0170.04417.31
5.6.300.0030.06120.68
5.6.290.0130.05420.74
5.6.280.0120.05920.93
5.6.270.0130.05320.93
5.6.260.0120.04220.68
5.6.250.0030.05420.77
5.6.240.0070.05120.69
5.6.230.0130.05720.71
5.6.220.0070.05020.66
5.6.210.0120.04820.83
5.6.200.0120.04720.87
5.6.190.0080.05921.04
5.6.180.0090.05621.03
5.6.170.0100.06421.05
5.6.160.0120.07021.05
5.6.150.0080.06820.81
5.6.140.0080.07220.94
5.6.130.0110.06620.89
5.6.120.0090.07120.91
5.6.110.0130.06820.98
5.6.100.0180.06121.06
5.6.90.0050.07120.92
5.6.80.0100.06320.35
5.6.70.0080.06520.25
5.6.60.0050.06920.33
5.6.50.0080.06720.19
5.6.40.0100.08220.22
5.6.30.0030.06720.17
5.6.20.0050.06820.34
5.6.10.0110.05220.27
5.6.00.0100.05920.16
5.5.380.0070.04919.01
5.5.370.0080.05419.06
5.5.360.0200.04218.91
5.5.350.0100.05318.94
5.5.340.0070.05719.41
5.5.330.0100.06919.41
5.5.320.0030.07319.39
5.5.310.0100.06519.51
5.5.300.0120.05419.30
5.5.290.0120.04819.38
5.5.280.0120.06819.39
5.5.270.0190.06819.22
5.5.260.0170.05319.37
5.5.250.0090.06419.25
5.5.240.0110.05818.72
5.5.230.0100.06418.72
5.5.220.0060.06718.80
5.5.210.0180.06318.72
5.5.200.0020.05518.67
5.5.190.0090.07018.78
5.5.180.0100.06018.75
5.5.160.0100.06218.65
5.5.150.0130.05918.76
5.5.140.0140.06018.81
5.5.130.0070.05318.64
5.5.120.0050.05818.80
5.5.110.0050.06418.81
5.5.100.0050.06318.62
5.5.90.0030.04718.62
5.5.80.0100.06318.47
5.5.70.0080.06718.46
5.5.60.0090.06918.66
5.5.50.0020.06018.63
5.5.40.0160.07018.59
5.5.30.0070.06918.69
5.5.20.0120.05118.67
5.5.10.0100.06118.53
5.5.00.0070.06518.42
5.4.450.0110.06619.31
5.4.440.0080.05119.44
5.4.430.0110.06219.60
5.4.420.0030.06719.36
5.4.410.0100.06819.30
5.4.400.0120.06019.15
5.4.390.0080.06519.04
5.4.380.0060.06519.07
5.4.370.0120.06219.14
5.4.360.0110.05619.00
5.4.350.0020.06519.04
5.4.340.0070.07418.98
5.4.320.0100.06019.16
5.4.310.0140.05719.04
5.4.300.0050.06719.05
5.4.290.0100.06319.02
5.4.280.0070.07119.16
5.4.270.0060.06219.12
5.4.260.0060.06719.12
5.4.250.0080.04719.04
5.4.240.0070.06819.15
5.4.230.0080.06819.12
5.4.220.0060.06719.02
5.4.210.0070.04519.19
5.4.200.0100.06319.00
5.4.190.0070.06519.04
5.4.180.0120.05819.03
5.4.170.0070.05619.18
5.4.160.0130.05919.05
5.4.150.0130.07119.01
5.4.140.0070.06516.48
5.4.130.0150.05516.46
5.4.120.0100.05916.38
5.4.110.0030.04916.61
5.4.100.0060.06116.46
5.4.90.0080.04216.53
5.4.80.0070.05916.32
5.4.70.0050.06316.38
5.4.60.0080.04816.63
5.4.50.0070.06116.56
5.4.40.0070.04316.51
5.4.30.0110.05116.62
5.4.20.0050.04916.47
5.4.10.0050.06616.46
5.4.00.0060.06915.96
5.3.290.0080.06214.73
5.3.280.0070.06214.76
5.3.270.0050.06814.74
5.3.260.0120.04814.82
5.3.250.0100.06114.70
5.3.240.0050.06614.71
5.3.230.0050.06614.74
5.3.220.0130.05414.50
5.3.210.0040.07614.72
5.3.200.0050.06214.78
5.3.190.0170.05414.71
5.3.180.0080.06114.71
5.3.170.0080.04614.67
5.3.160.0070.06314.64
5.3.150.0100.04314.71
5.3.140.0150.05614.58
5.3.130.0120.06114.67
5.3.120.0060.06014.71
5.3.110.0120.06114.60
5.3.100.0110.05714.22
5.3.90.0050.05714.17
5.3.80.0120.05814.09
5.3.70.0030.07214.15
5.3.60.0070.06314.01
5.3.50.0070.05714.04
5.3.40.0080.06914.06
5.3.30.0110.04614.11
5.3.20.0070.05713.63
5.3.10.0080.06113.73
5.3.00.0100.06113.60
5.2.170.0080.03611.15
5.2.160.0020.05211.13
5.2.150.0030.06211.25
5.2.140.0070.05711.22
5.2.130.0130.05411.31
5.2.120.0060.04711.26
5.2.110.0070.05611.03
5.2.100.0080.05611.22
5.2.90.0050.05111.04
5.2.80.0110.04811.34
5.2.70.0070.05311.03
5.2.60.0020.05611.18
5.2.50.0050.04511.19
5.2.40.0050.04911.12
5.2.30.0050.05211.18
5.2.20.0080.04710.96
5.2.10.0030.05010.93
5.2.00.0030.05210.72
5.1.60.0030.04110.39
5.1.50.0050.04210.38
5.1.40.0120.03010.39
5.1.30.0050.04310.45
5.1.20.0030.04510.58
5.1.10.0020.04610.28
5.1.00.0050.03310.37
5.0.50.0070.0329.56
5.0.40.0060.0349.56
5.0.30.0070.0519.56
5.0.20.0070.0329.56
5.0.10.0030.0369.56
5.0.00.0020.0549.56
4.4.90.0020.0299.56
4.4.80.0030.0209.56
4.4.70.0050.0309.56
4.4.60.0030.0299.56
4.4.50.0070.0249.56
4.4.40.0040.0429.56
4.4.30.0020.0249.56
4.4.20.0020.0319.56
4.4.10.0000.0319.56
4.4.00.0020.0379.56
4.3.110.0050.0269.56
4.3.100.0030.0279.56
4.3.90.0000.0249.56
4.3.80.0050.0399.56
4.3.70.0050.0249.56
4.3.60.0040.0289.56
4.3.50.0030.0299.56
4.3.40.0060.0389.56
4.3.30.0050.0279.56
4.3.20.0050.0289.56
4.3.10.0030.0299.56
4.3.00.0010.0209.56

preferences:
41.03 ms | 401 KiB | 5 Q