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.70.0090.01218.43
8.3.60.0120.00416.38
8.3.50.0100.01217.41
8.3.40.0110.00418.70
8.3.30.0040.01118.66
8.3.20.0050.00318.65
8.3.10.0000.00920.71
8.3.00.0050.00317.50
8.2.180.0150.00418.04
8.2.170.0100.01022.96
8.2.160.0030.01022.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0040.00720.98
8.2.100.0000.01117.97
8.2.90.0050.00519.35
8.2.80.0040.00419.26
8.2.70.0000.00817.50
8.2.60.0100.00017.68
8.2.50.0080.00018.07
8.2.40.0000.00718.34
8.2.30.0020.00518.16
8.2.20.0080.00017.71
8.2.10.0050.00319.64
8.2.00.0000.00817.75
8.1.280.0060.01225.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.61
8.1.230.0040.00821.03
8.1.220.0040.00417.77
8.1.210.0060.00318.93
8.1.200.0050.00517.35
8.1.190.0000.00817.51
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0040.00418.94
8.1.150.0040.00418.63
8.1.140.0050.00217.36
8.1.130.0000.00717.70
8.1.120.0000.00817.39
8.1.110.0000.00717.44
8.1.100.0000.00817.50
8.1.90.0040.00417.36
8.1.80.0070.00017.44
8.1.70.0040.00417.45
8.1.60.0030.00717.46
8.1.50.0040.00417.45
8.1.40.0040.00417.57
8.1.30.0000.00717.64
8.1.20.0060.00317.52
8.1.10.0040.00417.55
8.1.00.0040.00417.41
8.0.300.0070.00020.08
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0040.00417.32
8.0.260.0030.00316.88
8.0.250.0040.00416.95
8.0.240.0040.00416.79
8.0.230.0040.00416.98
8.0.220.0000.00716.85
8.0.210.0000.00716.91
8.0.200.0070.00016.99
8.0.190.0070.00016.93
8.0.180.0000.00816.92
8.0.170.0000.00916.79
8.0.160.0030.00316.80
8.0.150.0000.00716.86
8.0.140.0050.00316.89
8.0.130.0060.00013.32
8.0.120.0000.00716.79
8.0.110.0030.00516.84
8.0.100.0030.00516.74
8.0.90.0000.00716.90
8.0.80.0000.01416.86
8.0.70.0080.00016.88
8.0.60.0000.00816.84
8.0.50.0000.00816.87
8.0.30.0070.01216.95
8.0.20.0120.00917.02
8.0.10.0000.00716.90
8.0.00.0090.01216.78
7.4.330.0030.00313.02
7.4.320.0080.00016.55
7.4.300.0000.00616.60
7.4.290.0030.00316.62
7.4.280.0090.00016.55
7.4.270.0030.00316.52
7.4.260.0000.00613.25
7.4.250.0060.00316.57
7.4.240.0040.00316.59
7.4.230.0040.00416.39
7.4.220.0070.01116.55
7.4.210.0050.01116.57
7.4.200.0000.00716.43
7.4.190.0000.00716.50
7.4.160.0040.01216.63
7.4.150.0130.00716.45
7.4.140.0090.00916.60
7.4.130.0080.01516.45
7.4.120.0120.00816.51
7.4.110.0200.00316.40
7.4.100.0060.01116.60
7.4.90.0070.01016.39
7.4.80.0060.01216.39
7.4.70.0040.01216.42
7.4.60.0190.00316.48
7.4.50.0000.00816.24
7.4.40.0000.01516.63
7.4.30.0060.00916.45
7.4.00.0110.00414.97
7.3.330.0030.00313.13
7.3.320.0050.00013.17
7.3.310.0000.00716.39
7.3.300.0070.00016.35
7.3.290.0080.00516.22
7.3.280.0070.01016.21
7.3.270.0110.00716.29
7.3.260.0110.01116.53
7.3.250.0120.00716.43
7.3.240.0180.00316.34
7.3.230.0100.00716.66
7.3.210.0080.00816.59
7.3.200.0100.01019.39
7.3.190.0120.00916.54
7.3.180.0060.01016.46
7.3.170.0040.01216.29
7.3.160.0040.01216.37
7.3.120.0070.00714.97
7.2.330.0110.01116.63
7.2.320.0070.01016.75
7.2.310.0120.00616.82
7.2.300.0140.00616.84
7.2.290.0030.01316.70
7.2.60.0060.00916.99
7.2.00.0030.00919.57
7.1.200.0040.00415.76
7.1.100.0060.00617.85
7.1.70.0060.00317.25
7.1.60.0000.01317.18
7.1.50.0060.01616.89
7.1.00.0100.06722.35
7.0.200.0090.00616.53
7.0.140.0070.07021.92
7.0.120.0100.06322.04
7.0.60.0000.04720.04
7.0.50.0000.06017.89
7.0.40.0070.08317.76
7.0.30.0070.04017.86
7.0.20.0100.04317.73
7.0.10.0100.04317.84
7.0.00.0170.07317.71
5.6.280.0000.07720.86
5.6.210.0130.07320.55
5.6.200.0070.05318.19
5.6.190.0130.07318.20
5.6.180.0000.04318.23
5.6.170.0030.04718.29
5.6.160.0100.07718.14
5.6.150.0100.04318.15
5.6.140.0030.08318.28
5.6.130.0070.05718.18
5.6.120.0070.08718.18
5.6.110.0100.03718.11
5.6.100.0030.06018.25
5.6.90.0000.05318.27
5.6.80.0070.04317.63
5.6.70.0100.06717.56
5.6.60.0070.08017.54
5.6.50.0200.05717.57
5.6.40.0100.04317.51
5.6.30.0100.03717.61
5.6.20.0000.05717.58
5.6.10.0070.04017.49
5.6.00.0030.05317.53
5.5.350.0230.04320.41
5.5.340.0100.07718.04
5.5.330.0100.07718.01
5.5.320.0000.04318.08
5.5.310.0070.04718.08
5.5.300.0100.07717.98
5.5.290.0030.08018.09
5.5.280.0030.04717.95
5.5.270.0030.04318.02
5.5.260.0070.06717.95
5.5.250.0100.05317.79
5.5.240.0070.08017.41
5.5.230.0230.06017.40
5.5.220.0070.07717.41
5.5.210.0070.06317.46
5.5.200.0100.06017.34
5.5.190.0000.04317.43
5.5.180.0100.07717.34
5.5.160.0130.04017.33
5.5.150.0070.08017.33
5.5.140.0100.07717.38
5.5.130.0100.07017.38
5.5.120.0200.06717.33
5.5.110.0100.07317.27
5.5.100.0070.07317.30
5.5.90.0070.05717.18
5.5.80.0070.04317.33
5.5.70.0130.06017.18
5.5.60.0070.05317.25
5.5.50.0130.06317.23
5.5.40.0030.04717.22
5.5.30.0030.04317.26
5.5.20.0070.07017.31
5.5.10.0030.05317.21
5.5.00.0000.06717.16
5.4.450.0030.08719.46
5.4.440.0000.06019.21
5.4.430.0070.08319.45
5.4.420.0130.07319.20
5.4.410.0070.05719.33
5.4.400.0070.08019.04
5.4.390.0100.07319.09
5.4.380.0070.05318.89
5.4.370.0000.05319.05
5.4.360.0030.08018.89
5.4.350.0000.05019.01
5.4.340.0070.08019.04
5.4.320.0030.08318.95
5.4.310.0070.04318.89
5.4.300.0030.08319.03
5.4.290.0070.06019.01
5.4.280.0170.06319.00
5.4.270.0070.05019.01
5.4.260.0070.06719.09
5.4.250.0170.05719.10
5.4.240.0070.06318.97
5.4.230.0100.05318.88
5.4.220.0170.06718.97
5.4.210.0100.05319.04
5.4.200.0100.05019.11
5.4.190.0000.04719.12
5.4.180.0030.06719.02
5.4.170.0100.06019.02
5.4.160.0070.06319.10
5.4.150.0030.08019.12
5.4.140.0030.04316.43
5.4.130.0100.03016.46
5.4.120.0070.07016.25
5.4.110.0100.06716.40
5.4.100.0070.08016.57
5.4.90.0070.07716.35
5.4.80.0070.06716.39
5.4.70.0070.04716.36
5.4.60.0070.07016.42
5.4.50.0070.04716.32
5.4.40.0030.06316.50
5.4.30.0100.06716.38
5.4.20.0100.03716.29
5.4.10.0030.07316.20
5.4.00.0070.06016.01
5.3.290.0070.05314.52
5.3.280.0100.03314.66
5.3.270.0130.07014.71
5.3.260.0170.06714.42
5.3.250.0070.08014.63
5.3.240.0030.07714.62
5.3.230.0070.04714.61
5.3.220.0030.08314.52
5.3.210.0030.07314.52
5.3.200.0100.07314.66
5.3.190.0130.03714.42
5.3.180.0100.05014.58
5.3.170.0100.05714.53
5.3.160.0130.04314.51
5.3.150.0070.07314.41
5.3.140.0070.07014.62
5.3.130.0100.07314.58
5.3.120.0100.07314.59
5.3.110.0070.07014.54
5.3.100.0100.03714.11
5.3.90.0070.05714.05
5.3.80.0100.07014.04
5.3.70.0070.05314.12
5.3.60.0030.04314.09
5.3.50.0070.04014.04
5.3.40.0000.05013.96
5.3.30.0100.04313.94
5.3.20.0000.04713.59
5.3.10.0070.03713.67
5.3.00.0100.04013.71
5.2.170.0030.03311.19
5.2.160.0070.04311.04
5.2.150.0070.02711.11
5.2.140.0030.04710.96
5.2.130.0000.04711.21
5.2.120.0030.03011.21
5.2.110.0130.05011.02
5.2.100.0070.06011.15
5.2.90.0100.06011.13
5.2.80.0000.04711.11
5.2.70.0170.02711.11
5.2.60.0030.03011.13
5.2.50.0030.06711.05
5.2.40.0000.05710.90
5.2.30.0100.02710.96
5.2.20.0030.06010.93
5.2.10.0100.05010.71
5.2.00.0000.07010.71
5.1.60.0070.0309.84
5.1.50.0070.0509.83
5.1.40.0100.0439.95
5.1.30.0070.05710.35
5.1.20.0100.05310.41
5.1.10.0030.04710.07
5.1.00.0070.05310.15
5.0.50.0070.0338.65
5.0.40.0000.0478.40
5.0.30.0070.0638.30
5.0.20.0000.0438.27
5.0.10.0000.0308.01
5.0.00.0100.0608.24
4.4.90.0030.0377.91
4.4.80.0000.0207.91
4.4.70.0000.0377.91
4.4.60.0030.0177.91
4.4.50.0000.0177.91
4.4.40.0030.0537.91
4.4.30.0070.0337.91
4.4.20.0000.0377.91
4.4.10.0000.0337.91
4.4.00.0000.0507.91
4.3.110.0070.0237.91
4.3.100.0000.0377.91
4.3.90.0000.0377.91
4.3.80.0030.0537.91
4.3.70.0030.0377.91
4.3.60.0030.0277.91
4.3.50.0070.0277.91
4.3.40.0000.0507.91
4.3.30.0000.0337.91
4.3.20.0030.0177.91
4.3.10.0000.0407.91
4.3.00.0030.0377.91

preferences:
46.82 ms | 401 KiB | 5 Q