3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 10; $kecewa = array(0,11,12); $biasa = array(11,12,17); $puas = array(12,17,20); $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.0100.00718.43
8.3.50.0110.00821.08
8.3.40.0150.00018.79
8.3.30.0070.00719.99
8.3.20.0040.00420.57
8.3.10.0040.00421.00
8.3.00.0050.00323.62
8.2.180.0100.01016.75
8.2.170.0080.00822.96
8.2.160.0100.00320.47
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00421.13
8.2.110.0060.00319.08
8.2.100.0050.00517.91
8.2.90.0000.00719.40
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0060.00318.34
8.2.30.0040.00419.38
8.2.20.0040.00417.75
8.2.10.0060.00317.86
8.2.00.0000.00717.64
8.1.280.0140.00725.92
8.1.270.0030.00523.99
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0030.00623.90
8.1.230.0070.00420.89
8.1.220.0040.00418.77
8.1.210.0080.00018.79
8.1.200.0060.00317.23
8.1.190.0000.00717.51
8.1.180.0050.00518.10
8.1.170.0000.00818.40
8.1.160.0000.00718.98
8.1.150.0040.00418.67
8.1.140.0040.00417.38
8.1.130.0070.00017.73
8.1.120.0040.00417.47
8.1.110.0040.00417.46
8.1.100.0040.00417.53
8.1.90.0030.00517.38
8.1.80.0080.00017.37
8.1.70.0000.00717.43
8.1.60.0030.00517.62
8.1.50.0050.00217.43
8.1.40.0000.00717.55
8.1.30.0080.00017.64
8.1.20.0030.00617.74
8.1.10.0000.00817.45
8.1.00.0050.00317.52
8.0.300.0040.00420.04
8.0.290.0000.00717.18
8.0.280.0030.00318.40
8.0.270.0000.00717.36
8.0.260.0030.00316.90
8.0.250.0000.00716.91
8.0.240.0080.00016.94
8.0.230.0030.00316.86
8.0.220.0000.00716.92
8.0.210.0040.00416.78
8.0.200.0030.00317.02
8.0.190.0040.00417.00
8.0.180.0000.00716.99
8.0.170.0000.00716.91
8.0.160.0030.00616.74
8.0.150.0000.00816.73
8.0.140.0020.00516.78
8.0.130.0000.00513.41
8.0.120.0040.00416.86
8.0.110.0000.00816.88
8.0.100.0040.00416.90
8.0.90.0050.00216.87
8.0.80.0140.00716.91
8.0.70.0070.00016.98
8.0.60.0000.00716.98
8.0.50.0050.00316.79
8.0.30.0100.01017.23
8.0.20.0110.00917.40
8.0.10.0000.00816.97
8.0.00.0100.01216.71
7.4.330.0030.00314.90
7.4.320.0080.00016.62
7.4.300.0040.00416.54
7.4.290.0030.00316.63
7.4.280.0040.00416.52
7.4.270.0070.00016.58
7.4.260.0030.00313.20
7.4.250.0040.00416.60
7.4.240.0040.00416.43
7.4.230.0040.00416.52
7.4.220.0150.01216.56
7.4.210.0080.01016.55
7.4.200.0030.00316.69
7.4.190.0000.00716.71
7.4.160.0070.01016.68
7.4.150.0070.01017.40
7.4.140.0020.01517.86
7.4.130.0080.01316.54
7.4.120.0090.00816.59
7.4.110.0030.01416.29
7.4.100.0100.01316.38
7.4.90.0040.01416.62
7.4.80.0030.01419.39
7.4.70.0080.00816.48
7.4.60.0030.01316.58
7.4.50.0000.00816.54
7.4.40.0030.01022.77
7.4.30.0120.00816.66
7.4.10.0040.01515.00
7.4.00.0070.01214.93
7.3.330.0000.00513.27
7.3.320.0030.00313.13
7.3.310.0030.00316.20
7.3.300.0070.00016.14
7.3.290.0110.00316.30
7.3.280.0050.01316.35
7.3.270.0170.00017.40
7.3.260.0090.00918.24
7.3.250.0120.00616.37
7.3.240.0090.00916.34
7.3.230.0090.00916.39
7.3.210.0080.00816.56
7.3.200.0100.00719.39
7.3.190.0160.00316.39
7.3.180.0080.01016.46
7.3.170.0110.00516.27
7.3.160.0100.00616.39
7.3.130.0100.01015.11
7.3.120.0030.01414.96
7.3.110.0120.00614.86
7.3.100.0030.00914.93
7.3.90.0090.00614.54
7.3.80.0040.00414.47
7.3.70.0030.00614.70
7.3.60.0070.00714.54
7.3.50.0000.01514.55
7.3.40.0000.01214.74
7.3.30.0090.00314.79
7.3.20.0110.00716.69
7.3.10.0110.00616.57
7.3.00.0000.00916.71
7.2.330.0070.01116.31
7.2.320.0060.01016.81
7.2.310.0090.01616.36
7.2.300.0060.01216.59
7.2.290.0130.00316.70
7.2.260.0120.00914.89
7.2.250.0050.00914.84
7.2.240.0070.00714.67
7.2.230.0000.01715.26
7.2.220.0110.00414.87
7.2.210.0000.01115.04
7.2.200.0000.00814.84
7.2.190.0040.00714.94
7.2.180.0000.01314.98
7.2.170.0000.01014.68
7.2.160.0030.01314.82
7.2.150.0130.00316.91
7.2.140.0090.00916.99
7.2.130.0090.00616.55
7.2.120.0110.00716.64
7.2.110.0030.01616.69
7.2.100.0090.00616.63
7.2.90.0070.00716.85
7.2.80.0090.00316.74
7.2.70.0120.00317.13
7.2.60.0080.00816.64
7.2.50.0030.01016.74
7.2.40.0090.00316.87
7.2.30.0000.01016.82
7.2.20.0110.00716.76
7.2.10.0100.00016.91
7.2.00.0040.00617.96
7.1.330.0030.01015.88
7.1.320.0030.01315.83
7.1.310.0070.00715.76
7.1.300.0030.00515.75
7.1.290.0000.00915.75
7.1.280.0000.00915.87
7.1.270.0030.01315.62
7.1.260.0050.00515.84
7.1.250.0070.00715.97
7.1.240.0120.00315.78
7.1.230.0040.01115.89
7.1.220.0040.00415.95
7.1.210.0080.00815.70
7.1.200.0090.00315.71
7.1.190.0100.00315.58
7.1.180.0040.00715.83
7.1.170.0100.00015.54
7.1.160.0080.00415.57
7.1.150.0000.01115.51
7.1.140.0100.00315.75
7.1.130.0030.00715.91
7.1.120.0030.00615.69
7.1.110.0040.00815.59
7.1.100.0080.00617.08
7.1.90.0090.00915.86
7.1.80.0110.00815.56
7.1.70.0060.00416.48
7.1.60.0050.01317.29
7.1.50.0090.00916.50
7.1.40.0000.01515.74
7.1.30.0080.00415.93
7.1.20.0040.00815.54
7.1.10.0040.00715.60
7.1.00.0040.03019.03
7.0.330.0040.00415.36
7.0.320.0000.01015.62
7.0.310.0090.00315.48
7.0.300.0070.00715.41
7.0.290.0040.00715.13
7.0.280.0100.00315.57
7.0.270.0030.00915.37
7.0.260.0080.00815.50
7.0.250.0040.01215.05
7.0.240.0030.01015.50
7.0.230.0060.01215.32
7.0.220.0040.00815.49
7.0.210.0030.00815.08
7.0.200.0100.00216.01
7.0.190.0110.00415.46
7.0.180.0000.01315.26
7.0.170.0030.00615.19
7.0.160.0110.00015.42
7.0.150.0060.00615.43
7.0.140.0050.04018.65
7.0.130.0100.00015.31
7.0.120.0030.00915.21
7.0.110.0030.00615.29
7.0.100.0140.03917.66
7.0.90.0040.03017.67
7.0.80.0080.04417.71
7.0.70.0160.03517.61
7.0.60.0200.04717.75
7.0.50.0250.04117.82
7.0.40.0080.04316.77
7.0.30.0080.02816.72
7.0.20.0050.03616.74
7.0.10.0020.03116.74
7.0.00.0070.04716.79
5.6.400.0080.00414.54
5.6.390.0060.00913.95
5.6.380.0060.01014.32
5.6.370.0070.00714.34
5.6.360.0090.00614.14
5.6.350.0080.00314.18
5.6.340.0060.00914.58
5.6.330.0000.01114.52
5.6.320.0090.00614.15
5.6.310.0060.00314.38
5.6.300.0100.00314.56
5.6.290.0030.00714.45
5.6.280.0020.04217.54
5.6.270.0060.00614.52
5.6.260.0000.01514.63
5.6.250.0120.03817.59
5.6.240.0070.04717.48
5.6.230.0070.04517.34
5.6.220.0050.05217.52
5.6.210.0120.03717.35
5.6.200.0050.04617.64
5.6.190.0050.04817.82
5.6.180.0100.04217.63
5.6.170.0030.03517.71
5.6.160.0080.03317.57
5.6.150.0070.02617.69
5.6.140.0060.03317.67
5.6.130.0080.02717.72
5.6.120.0030.04417.73
5.6.110.0070.03017.55
5.6.100.0020.03217.68
5.6.90.0030.05217.64
5.6.80.0030.04317.28
5.6.70.0060.04117.30
5.6.60.0070.04517.39
5.6.50.0100.04117.46
5.6.40.0100.04017.33
5.6.30.0060.04117.45
5.6.20.0050.04517.46
5.6.10.0050.04617.28
5.6.00.0090.04217.46
5.5.380.0070.04317.37
5.5.370.0080.04317.37
5.5.360.0090.04317.38
5.5.350.0070.05017.36
5.5.340.0080.03017.52
5.5.330.0100.03317.62
5.5.320.0050.04817.55
5.5.310.0090.04017.46
5.5.300.0120.03617.41
5.5.290.0060.04117.61
5.5.280.0050.04517.47
5.5.270.0050.04317.38
5.5.260.0070.02417.44
5.5.250.0020.05117.38
5.5.240.0080.04017.21
5.5.230.0070.02817.18
5.5.220.0030.04317.35
5.5.210.0040.02417.11
5.5.200.0080.03517.29
5.5.190.0050.04017.29
5.5.180.0070.03817.14
5.5.170.0070.00714.27
5.5.160.0070.02817.33
5.5.150.0020.03417.25
5.5.140.0100.03517.20
5.5.130.0060.03917.24
5.5.120.0100.02517.18
5.5.110.0070.04717.19
5.5.100.0080.02817.05
5.5.90.0110.04016.99
5.5.80.0030.04317.15
5.5.70.0090.04016.98
5.5.60.0030.04417.35
5.5.50.0020.04817.16
5.5.40.0150.03317.00
5.5.30.0150.01817.12
5.5.20.0050.02917.22
5.5.10.0060.03316.97
5.5.00.0090.03917.04
5.4.450.0070.03316.45
5.4.440.0030.04516.44
5.4.430.0050.03716.42
5.4.420.0070.04016.46
5.4.410.0070.03716.27
5.4.400.0070.04316.26
5.4.390.0050.04216.26
5.4.380.0030.03916.21
5.4.370.0080.03316.23
5.4.360.0050.02516.26
5.4.350.0080.03516.21
5.4.340.0070.02416.21
5.4.330.0090.00313.39
5.4.320.0100.03516.21
5.4.310.0080.03816.21
5.4.300.0050.03716.21
5.4.290.0140.03116.31
5.4.280.0080.03516.31
5.4.270.0070.02816.24
5.4.260.0030.03816.13
5.4.250.0090.03616.21
5.4.240.0060.03016.14
5.4.230.0070.04116.28
5.4.220.0050.02416.25
5.4.210.0030.02916.25
5.4.200.0050.02716.23
5.4.190.0020.03716.12
5.4.180.0020.04916.25
5.4.170.0080.04016.21
5.4.160.0100.03916.18
5.4.150.0050.02616.21
5.4.140.0030.03514.87
5.4.130.0020.04014.95
5.4.120.0040.04314.85
5.4.110.0080.03014.95
5.4.100.0060.03014.86
5.4.90.0020.04514.94
5.4.80.0030.03414.90
5.4.70.0120.02814.92
5.4.60.0070.02714.84
5.4.50.0050.04114.85
5.4.40.0040.04014.87
5.4.30.0070.03814.90
5.4.20.0020.03014.82
5.4.10.0060.03814.91
5.4.00.0070.02514.64
5.3.290.0080.04014.03
5.3.280.0050.02414.03
5.3.270.0030.04114.06
5.3.260.0100.02814.06
5.3.250.0050.04113.96
5.3.240.0070.03714.03
5.3.230.0040.04313.98
5.3.220.0080.01813.97
5.3.210.0020.04513.96
5.3.200.0050.03813.98
5.3.190.0010.04614.03
5.3.180.0070.04013.99
5.3.170.0110.03514.02
5.3.160.0070.04013.99
5.3.150.0000.02614.03
5.3.140.0120.02514.04
5.3.130.0070.04014.00
5.3.120.0000.02613.93
5.3.110.0100.03514.00
5.3.100.0050.03013.71
5.3.90.0090.03513.75
5.3.80.0050.03913.67
5.3.70.0030.03613.75
5.3.60.0070.03713.73
5.3.50.0070.02313.72
5.3.40.0070.03013.70
5.3.30.0050.04013.67
5.3.20.0030.03513.51
5.3.10.0050.02513.53
5.3.00.0030.04313.48
5.2.170.0030.06011.95
5.2.160.0100.03011.95
5.2.150.0000.06711.95
5.2.140.0070.06311.95
5.2.130.0000.07011.95
5.2.120.0030.07311.95
5.2.110.0070.05311.95
5.2.100.0130.05311.95
5.2.90.0070.04011.95
5.2.80.0070.04011.95
5.2.70.0130.04011.95
5.2.60.0000.06711.95
5.2.50.0070.05311.95
5.2.40.0130.05011.95
5.2.30.0000.06011.95
5.2.20.0070.06011.95
5.2.10.0030.05311.95
5.2.00.0100.03311.95
5.1.60.0030.05311.95
5.1.50.0070.04011.95
5.1.40.0030.05311.95
5.1.30.0070.05311.95
5.1.20.0070.05311.95
5.1.10.0030.05311.95
5.1.00.0000.06011.95
5.0.50.0130.02311.95
5.0.40.0030.04711.95
5.0.30.0030.06311.95
5.0.20.0070.04011.95
5.0.10.0000.03311.95
5.0.00.0070.05011.95
4.4.90.0100.02711.95
4.4.80.0000.02311.95
4.4.70.0000.03711.95
4.4.60.0000.03711.95
4.4.50.0070.03311.95
4.4.40.0030.05011.95
4.4.30.0070.03311.95
4.4.20.0030.03311.95
4.4.10.0070.03011.95
4.4.00.0000.05711.95
4.3.110.0030.03711.95
4.3.100.0030.03311.95
4.3.90.0000.03711.95
4.3.80.0000.03311.95
4.3.70.0030.03311.95
4.3.60.0070.02711.95
4.3.50.0030.02311.95
4.3.40.0030.05311.95
4.3.30.0030.02311.95
4.3.20.0070.03011.95
4.3.10.0000.04011.95
4.3.00.0000.03711.95

preferences:
49.19 ms | 401 KiB | 5 Q