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); // antara 40 - 65 if ( $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.0110.00416.75
8.3.50.0120.01122.00
8.3.40.0070.00718.84
8.3.30.0120.00319.09
8.3.20.0000.00720.16
8.3.10.0040.00421.90
8.3.00.0000.00919.38
8.2.180.0140.00418.18
8.2.170.0120.00922.96
8.2.160.0100.00320.36
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.78
8.2.110.0090.00019.30
8.2.100.0060.00617.75
8.2.90.0030.00519.25
8.2.80.0000.00817.97
8.2.70.0030.00717.59
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0040.00420.07
8.2.30.0000.00718.25
8.2.20.0000.00917.81
8.2.10.0080.00018.18
8.2.00.0040.00417.64
8.1.280.0140.01025.92
8.1.270.0030.00620.81
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.10
8.1.230.0060.00617.79
8.1.220.0060.00317.78
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0090.00018.66
8.1.160.0040.00421.96
8.1.150.0030.00518.96
8.1.140.0040.00417.40
8.1.130.0070.00017.72
8.1.120.0040.00417.38
8.1.110.0040.00417.47
8.1.100.0040.00417.46
8.1.90.0040.00417.50
8.1.80.0000.00717.50
8.1.70.0030.00317.51
8.1.60.0030.00517.43
8.1.50.0080.00017.57
8.1.40.0080.00017.43
8.1.30.0000.00817.52
8.1.20.0040.00417.61
8.1.10.0000.00817.41
8.1.00.0000.00817.44
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00218.46
8.0.270.0030.00317.27
8.0.260.0060.00017.34
8.0.250.0030.00316.95
8.0.240.0030.00317.02
8.0.230.0040.00416.97
8.0.220.0070.00016.78
8.0.210.0000.00816.88
8.0.200.0000.00716.93
8.0.190.0000.00716.98
8.0.180.0050.00216.96
8.0.170.0070.00016.94
8.0.160.0070.00016.81
8.0.150.0030.00316.84
8.0.140.0040.00416.76
8.0.130.0060.00013.31
8.0.120.0080.00016.83
8.0.110.0000.00816.95
8.0.100.0040.00416.93
8.0.90.0070.00016.86
8.0.80.0030.01316.91
8.0.70.0030.00516.71
8.0.60.0000.00716.77
8.0.50.0000.00716.89
8.0.30.0130.01117.08
8.0.20.0120.00917.40
8.0.10.0000.00716.85
8.0.00.0090.00916.82
7.4.330.0050.00015.03
7.4.320.0000.00716.63
7.4.300.0030.00316.37
7.4.290.0030.00516.64
7.4.280.0050.00316.56
7.4.270.0030.00316.52
7.4.260.0000.00716.44
7.4.250.0080.00016.58
7.4.240.0030.00416.63
7.4.230.0070.00016.32
7.4.220.0090.00916.59
7.4.210.0080.00816.72
7.4.200.0000.00716.36
7.4.160.0060.01016.44
7.4.150.0160.00317.40
7.4.140.0130.00817.86
7.4.130.0130.00716.49
7.4.120.0060.01116.55
7.4.110.0090.00916.41
7.4.100.0070.01016.60
7.4.90.0100.00716.68
7.4.80.0080.01119.39
7.4.70.0070.01016.50
7.4.60.0070.01016.69
7.4.50.0040.00416.43
7.4.40.0110.00516.56
7.4.30.0060.01516.43
7.4.00.0030.01214.78
7.3.330.0030.00313.05
7.3.320.0080.00813.12
7.3.310.0000.00616.13
7.3.300.0040.00416.18
7.3.290.0090.00616.32
7.3.280.0100.00616.28
7.3.270.0060.01317.40
7.3.260.0140.00316.38
7.3.250.0070.01416.56
7.3.240.0070.01016.35
7.3.230.0140.00316.39
7.3.210.0060.00916.52
7.3.200.0090.00919.39
7.3.190.0140.00316.51
7.3.180.0070.01016.45
7.3.170.0140.00416.46
7.3.160.0100.00616.39
7.2.330.0150.00716.48
7.2.320.0110.00516.35
7.2.310.0150.00316.29
7.2.300.0030.01316.47
7.2.290.0080.01316.73
7.2.00.0030.00919.27
7.1.100.0000.01118.00
7.1.70.0050.00217.23
7.1.60.0130.01019.50
7.1.50.0170.00716.82
7.1.00.0030.07722.45
7.0.200.0000.00816.88
7.0.140.0070.07321.97
7.0.60.0130.07719.92
7.0.50.0070.05317.88
7.0.40.0100.06020.23
7.0.30.0330.06020.16
7.0.20.0270.05020.19
7.0.10.0300.04320.19
7.0.00.0100.03720.07
5.6.280.0030.07020.82
5.6.210.0130.08020.60
5.6.200.0030.08718.19
5.6.190.0100.08720.47
5.6.180.0200.03720.42
5.6.170.0270.07020.58
5.6.160.0100.05720.39
5.6.150.0130.07018.18
5.6.140.0070.04018.18
5.6.130.0100.06718.18
5.6.120.0030.08020.96
5.6.110.0100.07721.00
5.6.100.0170.08020.99
5.6.90.0070.04321.12
5.6.80.0070.04720.45
5.6.70.0130.08320.39
5.5.350.0100.07320.33
5.5.340.0070.06718.04
5.5.330.0130.03320.25
5.5.320.0130.04320.35
5.5.310.0300.07720.37
5.5.300.0100.07017.98
5.5.290.0100.07718.02
5.5.280.0130.04720.80
5.5.270.0100.06320.67
5.5.260.0000.07020.87
5.5.250.0130.07720.58
5.5.240.0130.07320.26
5.4.450.0170.05319.60
5.4.440.0830.05019.46
5.4.430.0870.06719.55
5.4.420.0900.05019.45
5.4.410.1270.04719.26
5.4.400.0270.05718.77
5.4.390.0270.04718.57
5.4.380.0300.05018.57
5.4.370.0270.07018.71
5.4.360.0200.06018.80
5.4.350.0130.06718.77
5.4.340.0200.05018.77
5.4.320.0230.05318.54
5.4.310.0170.06318.48
5.4.300.0330.04018.54
5.4.290.0230.05018.55
5.4.280.0130.06018.45
5.4.270.0300.04318.73
5.4.260.0230.04718.66
5.4.250.0170.06018.75
5.4.240.0200.05018.76
5.4.230.0130.05718.74
5.4.220.0170.06318.79
5.4.210.0370.04018.39
5.4.200.0300.05016.67
5.4.190.0130.05718.67
5.4.180.0130.05718.70
5.4.170.0200.05018.70
5.4.160.0270.05018.69
5.4.150.0170.06318.46
5.4.140.0200.06016.30
5.4.130.0230.05716.39
5.4.120.0130.06016.17
5.4.110.0270.04716.29
5.4.100.0230.05016.24
5.4.90.0130.06016.25
5.4.80.0300.04316.15
5.4.70.0200.05316.16
5.4.60.0130.06016.38
5.4.50.0100.05716.37
5.4.40.0230.04316.27
5.4.30.0130.05316.24
5.4.20.0170.05316.14
5.4.10.0100.06016.20
5.4.00.0130.05715.65
5.3.290.0170.05714.66
5.3.280.0300.03714.66
5.3.270.0170.05314.70
5.3.260.0130.06714.70
5.3.250.0200.04714.64
5.3.240.0230.04714.65
5.3.230.0230.05714.59
5.3.220.0270.06314.54
5.3.210.0230.04714.66
5.3.200.0200.06714.60
5.3.190.0330.05314.65
5.3.180.0030.06314.65
5.3.170.0100.05714.54
5.3.160.0170.05714.65
5.3.150.0200.05314.55
5.3.140.0170.05314.64
5.3.130.0130.06714.53
5.3.120.0170.05314.53
5.3.110.0130.06014.54
5.3.100.0230.05014.18
5.3.90.0130.05314.00
5.3.80.0130.06314.05
5.3.70.0200.05014.14
5.3.60.0200.05014.01
5.3.50.0200.04713.95
5.3.40.0070.06314.05
5.3.30.0230.06713.95
5.3.20.0170.06313.70
5.3.10.0100.05713.64
5.3.00.0300.04313.67
5.2.170.0170.04311.18
5.2.160.0200.03711.35
5.2.150.0200.04711.15
5.2.140.0300.04711.11
5.2.130.0230.03711.18
5.2.120.0100.04311.29
5.2.110.0200.05311.29
5.2.100.0170.04311.20
5.2.90.0100.04311.11
5.2.80.0170.04311.19
5.2.70.0170.03711.11
5.2.60.0130.04711.08
5.2.50.0130.04311.20
5.2.40.0130.04011.00
5.2.30.0270.03011.04
5.2.20.0170.03710.95
5.2.10.0070.04310.93
5.2.00.0170.03710.82
5.1.60.0100.03710.02
5.1.50.0070.04010.16
5.1.40.0100.0379.95
5.1.30.0270.03710.32
5.1.20.0200.03710.35
5.1.10.0200.04310.07
5.1.00.0170.03010.13
5.0.50.0100.0278.64
5.0.40.0000.0338.59
5.0.30.0030.0478.24
5.0.20.0070.0278.23
5.0.10.0070.0308.19
5.0.00.0070.0478.14
4.4.90.0130.0136.87
4.4.80.0030.0236.87
4.4.70.0070.0206.87
4.4.60.0030.0236.87
4.4.50.0070.0236.87
4.4.40.0030.0376.87
4.4.30.0130.0136.87
4.4.20.0000.0276.87
4.4.10.0100.0176.87
4.4.00.0070.0376.87
4.3.110.0030.0236.87
4.3.100.0030.0236.87
4.3.90.0100.0176.87
4.3.80.0130.0336.87
4.3.70.0000.0276.87
4.3.60.0030.0236.87
4.3.50.0070.0236.87
4.3.40.0030.0336.87
4.3.30.0070.0236.87
4.3.20.0100.0176.87
4.3.10.0070.0206.87
4.3.00.0070.0207.19

preferences:
43.77 ms | 401 KiB | 5 Q