3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 40; $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 - $kb[1]) / ($kb[2] - $kb[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]); echo "muKecewa " .$muKecewa; }

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.0150.00018.04
8.3.50.0050.01121.97
8.3.40.0150.00618.76
8.3.30.0140.00018.71
8.3.20.0030.00618.82
8.3.10.0000.00721.09
8.3.00.0000.00823.71
8.2.180.0100.01016.75
8.2.170.0070.00722.96
8.2.160.0110.00320.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.49
8.2.110.0000.00920.49
8.2.100.0080.00317.72
8.2.90.0040.00419.40
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0070.00018.33
8.2.30.0040.00419.91
8.2.20.0000.00717.63
8.2.10.0000.00817.70
8.2.00.0040.00417.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0030.01026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.86
8.1.230.0060.00524.04
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0050.00317.36
8.1.180.0000.00718.10
8.1.170.0040.00418.46
8.1.160.0030.00518.80
8.1.150.0020.00518.63
8.1.140.0000.00817.45
8.1.130.0030.00317.81
8.1.120.0040.00417.52
8.1.110.0040.00417.35
8.1.100.0040.00317.51
8.1.90.0030.00517.43
8.1.80.0030.00417.45
8.1.70.0030.00317.44
8.1.60.0000.00817.59
8.1.50.0000.00717.50
8.1.40.0040.00417.38
8.1.30.0030.00617.58
8.1.20.0040.00417.54
8.1.10.0000.00917.64
8.1.00.0000.00917.40
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0080.00018.34
8.0.270.0000.00717.13
8.0.260.0000.00816.89
8.0.250.0000.00716.94
8.0.240.0050.00216.95
8.0.230.0030.00316.92
8.0.220.0000.00716.82
8.0.210.0070.00016.93
8.0.200.0040.00416.81
8.0.190.0040.00417.01
8.0.180.0000.00716.98
8.0.170.0040.00416.80
8.0.160.0000.00716.87
8.0.150.0060.00316.90
8.0.140.0000.00816.82
8.0.130.0050.00013.36
8.0.120.0000.00716.78
8.0.110.0000.00816.68
8.0.100.0020.00516.88
8.0.90.0000.00716.76
8.0.80.0070.01416.84
8.0.70.0080.00016.79
8.0.60.0040.00416.77
8.0.50.0030.00316.86
8.0.30.0120.00816.86
8.0.20.0070.01217.40
8.0.10.0000.00816.79
8.0.00.0110.01016.83
7.4.330.0030.00314.77
7.4.320.0000.00616.50
7.4.300.0040.00416.57
7.4.290.0040.00416.61
7.4.280.0030.00516.60
7.4.270.0030.00316.50
7.4.260.0030.00313.23
7.4.250.0080.00016.52
7.4.240.0080.00016.61
7.4.230.0000.00716.50
7.4.220.0030.01316.54
7.4.210.0070.00916.53
7.4.200.0040.00416.49
7.4.190.0040.00416.60
7.4.160.0060.01616.49
7.4.150.0120.00917.40
7.4.140.0130.00317.86
7.4.130.0100.00616.54
7.4.120.0070.00916.41
7.4.110.0080.00816.43
7.4.100.0100.00716.50
7.4.90.0120.00616.54
7.4.80.0070.01319.37
7.4.70.0110.00616.34
7.4.60.0070.01016.50
7.4.50.0040.00416.24
7.4.40.0120.00322.27
7.4.30.0070.01016.46
7.4.00.0090.00914.98
7.3.330.0000.00513.07
7.3.320.0040.00313.18
7.3.310.0000.00816.38
7.3.300.0070.00016.33
7.3.290.0070.00716.32
7.3.280.0080.01216.28
7.3.270.0130.01017.40
7.3.260.0060.01018.24
7.3.250.0110.00916.44
7.3.240.0100.00616.33
7.3.230.0090.00616.45
7.3.210.0060.01116.41
7.3.200.0130.00319.39
7.3.190.0110.00716.46
7.3.180.0100.00616.36
7.3.170.0130.00316.28
7.3.160.0090.01216.32
7.3.120.0100.00614.82
7.3.110.0050.01315.02
7.3.100.0060.00814.81
7.3.90.0070.00814.91
7.3.80.0020.01115.04
7.3.70.0040.00714.87
7.3.60.0090.00514.79
7.3.50.0080.00514.77
7.3.40.0030.01014.77
7.3.30.0050.00814.75
7.3.20.0070.00716.63
7.3.10.0080.00716.57
7.3.00.0060.00916.63
7.2.330.0110.00716.74
7.2.320.0110.00716.62
7.2.310.0170.00616.70
7.2.300.0060.01116.50
7.2.290.0120.00516.47
7.2.250.0070.01115.13
7.2.240.0050.01415.10
7.2.230.0080.01015.19
7.2.220.0050.01215.08
7.2.210.0030.01114.95
7.2.200.0040.00915.22
7.2.190.0080.00815.04
7.2.180.0100.00514.92
7.2.170.0080.00815.09
7.2.60.0040.01216.73
7.2.00.0070.00719.41
7.1.330.0070.00815.85
7.1.320.0070.00915.94
7.1.310.0060.00815.82
7.1.300.0050.00815.75
7.1.290.0050.00915.82
7.1.280.0100.00315.67
7.1.270.0070.00815.81
7.1.260.0080.00615.86
7.1.200.0070.00715.56
7.1.100.0040.01117.94
7.1.70.0050.00317.16
7.1.60.0090.00919.40
7.1.50.0160.01017.10
7.1.00.0030.05722.33
7.0.200.0050.00316.53
7.0.140.0000.07722.00
7.0.70.0030.04321.77
7.0.60.0000.04021.66
7.0.50.0030.06722.19
7.0.40.0070.07720.13
7.0.30.0070.04720.06
7.0.20.0070.04720.04
7.0.10.0030.05320.07
7.0.00.0070.07720.12
5.6.280.0030.07321.04
5.6.220.0000.04320.59
5.6.210.0000.04020.56
5.6.200.0030.06321.04
5.6.190.0030.04321.08
5.6.180.0070.08721.11
5.6.170.0030.04321.14
5.6.160.0030.07320.95
5.6.150.0030.09020.96
5.6.140.0070.08021.08
5.6.130.0070.08721.05
5.6.120.0000.09021.06
5.6.110.0000.09321.01
5.6.100.0000.09021.06
5.6.90.0070.08321.01
5.6.80.0200.07320.55
5.6.70.0000.06020.42
5.6.60.0070.07720.48
5.6.50.0030.08020.47
5.6.40.0030.08320.44
5.6.30.0070.08020.31
5.6.20.0030.08020.36
5.6.10.0070.06020.37
5.6.00.0070.07320.41
5.5.360.0070.03720.45
5.5.350.0000.04320.41
5.5.340.0000.09020.91
5.5.330.0100.04320.86
5.5.320.0030.08720.92
5.5.310.0000.04320.89
5.5.300.0100.07020.88
5.5.290.0030.08320.76
5.5.280.0030.08720.76
5.5.270.0070.08320.85
5.5.260.0000.07320.88
5.5.250.0070.07320.64
5.5.240.0000.04720.17
5.5.230.0000.05720.31
5.5.220.0030.08020.13
5.5.210.0030.08320.25
5.5.200.0030.08020.28
5.5.190.0100.07020.21
5.5.180.0100.07720.28
5.5.160.0070.07720.21
5.5.150.0030.08020.15
5.5.140.0000.07020.26
5.5.130.0070.07020.27
5.5.120.0100.07720.22
5.5.110.0100.05720.15
5.5.100.0100.07720.18
5.5.90.0000.08719.98
5.5.80.0100.07020.06
5.5.70.0030.06320.11
5.5.60.0030.08320.02
5.5.50.0070.07320.10
5.5.40.0000.06020.15
5.5.30.0030.08020.05
5.5.20.0070.05719.93
5.5.10.0100.08020.00
5.5.00.0030.08320.05
5.4.450.0100.07719.20
5.4.440.0030.08319.50
5.4.430.0030.04719.36
5.4.420.0070.08319.22
5.4.410.0000.05319.09
5.4.400.0130.07019.05
5.4.390.0070.05718.90
5.4.380.0070.07318.90
5.4.370.0030.07719.09
5.4.360.0000.08318.86
5.4.350.0030.07719.02
5.4.340.0130.07019.14
5.4.320.0070.06019.23
5.4.310.0030.05019.03
5.4.300.0070.06019.02
5.4.290.0100.07019.18
5.4.280.0030.05719.13
5.4.270.0000.08319.18
5.4.260.0100.04319.04
5.4.250.0030.05719.18
5.4.240.0030.06019.18
5.4.230.0030.07319.03
5.4.220.0030.08018.89
5.4.210.0030.06019.20
5.4.200.0000.07719.04
5.4.190.0030.07019.22
5.4.180.0000.06719.04
5.4.170.0000.07718.91
5.4.160.0100.07019.10
5.4.150.0030.05718.88
5.4.140.0070.06016.36
5.4.130.0070.07316.36
5.4.120.0030.07316.28
5.4.110.0030.05716.46
5.4.100.0030.05716.50
5.4.90.0070.06716.39
5.4.80.0030.07716.30
5.4.70.0030.05716.49
5.4.60.0030.07016.48
5.4.50.0030.05716.44
5.4.40.0030.04716.52
5.4.30.0000.08016.40
5.4.20.0000.08016.39
5.4.10.0070.07016.41
5.4.00.0070.05015.86
5.3.290.0000.06014.62
5.3.280.0070.07714.73
5.3.270.0000.06014.55
5.3.260.0070.05014.71
5.3.250.0030.07014.73
5.3.240.0070.06714.67
5.3.230.0000.05714.59
5.3.220.0070.07314.60
5.3.210.0030.07714.55
5.3.200.0030.07714.69
5.3.190.0000.08014.54
5.3.180.0070.06714.70
5.3.170.0000.08014.59
5.3.160.0030.07314.60
5.3.150.0030.07314.58
5.3.140.0070.04314.70
5.3.130.0030.05714.57
5.3.120.0030.07714.67
5.3.110.0030.07014.61
5.3.100.0100.08014.10
5.3.90.0100.07014.01
5.3.80.0030.06714.00
5.3.70.0000.05014.14
5.3.60.0030.07314.07
5.3.50.0130.06014.06
5.3.40.0170.04713.94
5.3.30.0100.06314.02
5.3.20.0130.07013.66
5.3.10.0000.07013.76
5.3.00.0030.07713.67
5.2.170.0130.05711.15
5.2.160.0100.04711.04
5.2.150.0000.06011.20
5.2.140.0070.04311.05
5.2.130.0000.04311.20
5.2.120.0000.06311.22
5.2.110.0070.06011.22
5.2.100.0030.06311.18
5.2.90.0000.05711.25
5.2.80.0000.05011.24
5.2.70.0000.05011.11
5.2.60.0000.05311.12
5.2.50.0000.06011.05
5.2.40.0130.05711.11
5.2.30.0030.04310.99
5.2.20.0000.03710.91
5.2.10.0170.05010.78
5.2.00.0000.05710.64
5.1.60.0030.04710.49
5.1.50.0030.05010.49
5.1.40.0070.05010.49
5.1.30.0000.04310.49
5.1.20.0070.05710.49
5.1.10.0100.03710.49
5.1.00.0070.05310.49
5.0.50.0070.04710.49
5.0.40.0100.03310.49
5.0.30.0000.05710.49
5.0.20.0000.03310.49
5.0.10.0000.05010.49
5.0.00.0070.06310.49
4.4.90.0000.03310.49
4.4.80.0030.03310.49
4.4.70.0130.02310.49
4.4.60.0000.03710.49
4.4.50.0030.03310.49
4.4.40.0000.05710.49
4.4.30.0100.03010.49
4.4.20.0070.02710.49
4.4.10.0000.03310.49
4.4.00.0070.05310.49
4.3.110.0100.02710.49
4.3.100.0000.03710.49
4.3.90.0000.02010.49
4.3.80.0030.05710.49
4.3.70.0030.03010.49
4.3.60.0070.02710.49
4.3.50.0030.03310.49
4.3.40.0100.04710.49
4.3.30.0030.03310.49
4.3.20.0030.03710.49
4.3.10.0000.03710.49
4.3.00.0000.03710.49

preferences:
39.76 ms | 401 KiB | 5 Q