3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 16; $kecewa = array(0,12,16); $biasa = array(12,16,18); $puas = array(16,18,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.0130.00718.43
8.3.50.0100.00721.21
8.3.40.0110.00418.86
8.3.30.0130.00320.39
8.3.20.0040.00420.59
8.3.10.0080.00021.05
8.3.00.0040.00423.63
8.2.180.0040.01516.63
8.2.170.0070.01122.96
8.2.160.0130.00720.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00021.05
8.2.110.0030.00621.04
8.2.100.0080.00318.03
8.2.90.0000.00919.21
8.2.80.0040.00418.04
8.2.70.0040.00417.75
8.2.60.0000.00818.05
8.2.50.0000.00718.07
8.2.40.0070.00318.34
8.2.30.0040.00419.39
8.2.20.0050.00317.82
8.2.10.0000.00717.77
8.2.00.0080.00017.87
8.1.280.0070.00725.92
8.1.270.0090.00020.48
8.1.260.0050.00226.35
8.1.250.0030.00528.09
8.1.240.0030.00622.08
8.1.230.0000.01122.75
8.1.220.0000.00918.77
8.1.210.0070.00318.97
8.1.200.0040.00417.35
8.1.190.0030.00617.53
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0040.00418.82
8.1.150.0080.00018.57
8.1.140.0070.00317.39
8.1.130.0000.00817.85
8.1.120.0000.00717.40
8.1.110.0030.00517.53
8.1.100.0070.00017.48
8.1.90.0080.00017.50
8.1.80.0070.00017.52
8.1.70.0000.00717.43
8.1.60.0000.00817.64
8.1.50.0020.00517.55
8.1.40.0050.00317.45
8.1.30.0040.00417.62
8.1.20.0040.00417.61
8.1.10.0050.00417.64
8.1.00.0090.00017.54
8.0.300.0050.00219.95
8.0.290.0000.00717.18
8.0.280.0000.00818.57
8.0.270.0030.00317.27
8.0.260.0030.00316.95
8.0.250.0000.00816.97
8.0.240.0000.00917.01
8.0.230.0000.00716.85
8.0.220.0000.00816.80
8.0.210.0000.00716.95
8.0.200.0000.00616.96
8.0.190.0050.00217.04
8.0.180.0040.00416.83
8.0.170.0040.00416.84
8.0.160.0050.00217.01
8.0.150.0040.00416.92
8.0.140.0000.00716.83
8.0.130.0030.00313.31
8.0.120.0080.00016.89
8.0.110.0000.00816.85
8.0.100.0050.00216.77
8.0.90.0040.00416.98
8.0.80.0000.01616.80
8.0.70.0070.00016.75
8.0.60.0040.00416.98
8.0.50.0040.00416.97
8.0.30.0110.00817.27
8.0.20.0110.00917.40
8.0.10.0000.00817.11
8.0.00.0120.01116.79
7.4.330.0000.00715.14
7.4.320.0030.00316.60
7.4.300.0040.00416.52
7.4.290.0030.00316.48
7.4.280.0000.00816.66
7.4.270.0030.00316.54
7.4.260.0050.00013.26
7.4.250.0030.00516.49
7.4.240.0030.00316.53
7.4.230.0030.00316.36
7.4.220.0060.01216.66
7.4.210.0100.00716.57
7.4.200.0000.00716.51
7.4.190.0000.00816.62
7.4.160.0030.01616.59
7.4.150.0110.00717.40
7.4.140.0080.01717.86
7.4.130.0120.00716.40
7.4.120.0090.00916.47
7.4.110.0120.00616.61
7.4.100.0110.00616.66
7.4.90.0150.00916.50
7.4.80.0060.01219.39
7.4.70.0100.00716.58
7.4.60.0060.01016.53
7.4.50.0090.00016.54
7.4.40.0140.00422.77
7.4.30.0120.00916.45
7.4.10.0160.00315.09
7.4.00.0080.00914.73
7.3.330.0020.00213.31
7.3.320.0030.00313.27
7.3.310.0040.00416.35
7.3.300.0070.00016.18
7.3.290.0040.01016.21
7.3.280.0060.01016.30
7.3.270.0070.01017.40
7.3.260.0130.01018.24
7.3.250.0160.00216.49
7.3.240.0110.00516.56
7.3.230.0170.00716.64
7.3.210.0100.00716.55
7.3.200.0070.01319.39
7.3.190.0180.00016.67
7.3.180.0210.00316.32
7.3.170.0060.01016.58
7.3.160.0000.01716.60
7.3.130.0040.01515.05
7.3.120.0070.00914.77
7.3.110.0110.00614.91
7.3.100.0070.00615.13
7.3.90.0050.00914.84
7.3.80.0070.00714.77
7.3.70.0020.00814.72
7.3.60.0050.01114.96
7.3.50.0110.00614.96
7.3.40.0060.00614.88
7.3.30.0020.01114.71
7.3.20.0070.01216.54
7.3.10.0100.00816.54
7.3.00.0120.00416.69
7.2.330.0070.01016.69
7.2.320.0100.01316.45
7.2.310.0030.02016.72
7.2.300.0100.01016.80
7.2.290.0090.00616.80
7.2.260.0080.00815.20
7.2.250.0110.00815.18
7.2.240.0050.01315.01
7.2.230.0050.01315.17
7.2.220.0080.00814.97
7.2.210.0050.01015.06
7.2.200.0100.00714.98
7.2.190.0020.01314.99
7.2.180.0040.01215.19
7.2.170.0060.00714.98
7.2.160.0120.00315.18
7.2.150.0070.00717.06
7.2.140.0070.00317.00
7.2.130.0050.00916.75
7.2.120.0050.00716.70
7.2.110.0030.01316.75
7.2.100.0060.00916.76
7.2.90.0040.00916.90
7.2.80.0080.00916.93
7.2.70.0070.00716.74
7.2.60.0070.00716.91
7.2.50.0080.00516.85
7.2.40.0130.01016.83
7.2.30.0070.00916.88
7.2.20.0150.00716.84
7.2.10.0130.00516.95
7.2.00.0030.00817.48
7.1.330.0050.00915.78
7.1.320.0040.01115.79
7.1.310.0030.01115.89
7.1.300.0080.00615.78
7.1.290.0030.00815.73
7.1.280.0030.01015.84
7.1.270.0100.00715.71
7.1.260.0050.00715.79
7.1.250.0030.00915.63
7.1.240.0050.00715.90
7.1.230.0040.00715.86
7.1.220.0040.00715.75
7.1.210.0010.01015.78
7.1.200.0110.00415.77
7.1.190.0030.01115.84
7.1.180.0120.00415.76
7.1.170.0100.00215.62
7.1.160.0080.00515.86
7.1.150.0060.01115.89
7.1.140.0020.01315.74
7.1.130.0060.00915.80
7.1.120.0030.01215.68
7.1.110.0030.00815.96
7.1.100.0130.01316.63
7.1.90.0110.00715.84
7.1.80.0110.00815.62
7.1.70.0050.00616.10
7.1.60.0070.00817.04
7.1.50.0030.01216.25
7.1.40.0070.00715.61
7.1.30.0060.00715.74
7.1.20.0100.00515.69
7.1.10.0090.00515.86
7.1.00.0030.01817.98
7.0.330.0040.00915.48
7.0.320.0090.00315.37
7.0.310.0030.00915.39
7.0.300.0050.00915.51
7.0.290.0050.01115.21
7.0.280.0100.00615.38
7.0.270.0080.00614.99
7.0.260.0020.01215.46
7.0.250.0050.01015.33
7.0.240.0110.00415.28
7.0.230.0070.01115.42
7.0.220.0070.00715.30
7.0.210.0090.00715.40
7.0.200.0030.00815.72
7.0.190.0090.00715.46
7.0.180.0040.00715.40
7.0.170.0040.01115.43
7.0.160.0080.00315.40
7.0.150.0020.01315.17
7.0.140.0060.03017.54
7.0.130.0060.00815.50
7.0.120.0070.00315.33
7.0.110.0050.00815.39
7.0.100.0090.03416.87
7.0.90.0110.03216.87
7.0.80.0120.02116.88
7.0.70.0100.02216.95
7.0.60.0050.02016.97
7.0.50.0130.02417.00
7.0.40.0070.03315.76
7.0.30.0090.02815.79
7.0.20.0060.03315.56
7.0.10.0090.01715.63
7.0.00.0110.02915.64
5.6.400.0080.00814.61
5.6.390.0030.01314.66
5.6.380.0030.01214.48
5.6.370.0090.00614.56
5.6.360.0060.00614.54
5.6.350.0030.00714.54
5.6.340.0060.01014.58
5.6.330.0060.00714.44
5.6.320.0070.00814.43
5.6.310.0000.01614.21
5.6.300.0020.01414.22
5.6.290.0050.01114.38
5.6.280.0060.02716.40
5.6.270.0110.00314.31
5.6.260.0080.00714.31
5.6.250.0050.03016.44
5.6.240.0090.01716.30
5.6.230.0070.03016.53
5.6.220.0090.01816.52
5.6.210.0050.03216.51
5.6.200.0070.03216.51
5.6.190.0070.03016.54
5.6.180.0070.02716.56
5.6.170.0060.02916.60
5.6.160.0080.03416.59
5.6.150.0080.02816.53
5.6.140.0080.03016.65
5.6.130.0060.02716.68
5.6.120.0050.03316.70
5.6.110.0120.02216.71
5.6.100.0080.03216.63
5.6.90.0120.02516.57
5.6.80.0060.03216.28
5.6.70.0070.03116.25
5.6.60.0090.02916.27
5.6.50.0060.02016.28
5.6.40.0040.03116.26
5.6.30.0040.03216.44
5.6.20.0070.02816.31
5.6.10.0060.02916.38
5.6.00.0080.03116.29
5.5.380.0100.02615.27
5.5.370.0090.01915.33
5.5.360.0060.03315.36
5.5.350.0050.03315.21
5.5.340.0050.01915.46
5.5.330.0070.01815.59
5.5.320.0070.03015.59
5.5.310.0050.01915.53
5.5.300.0110.01615.43
5.5.290.0050.02115.45
5.5.280.0020.02215.46
5.5.270.0020.01915.42
5.5.260.0030.02515.43
5.5.250.0020.03115.22
5.5.240.0090.02315.21
5.5.230.0040.03015.17
5.5.220.0040.03215.25
5.5.210.0040.03115.11
5.5.200.0080.02515.31
5.5.190.0040.01815.33
5.5.180.0050.03015.33
5.5.170.0040.00912.72
5.5.160.0030.02215.18
5.5.150.0060.01515.20
5.5.140.0040.03115.30
5.5.130.0130.03115.18
5.5.120.0090.02715.09
5.5.110.0070.02215.28
5.5.100.0040.02015.23
5.5.90.0060.02815.22
5.5.80.0090.02315.29
5.5.70.0050.02015.25
5.5.60.0030.01915.23
5.5.50.0070.01715.22
5.5.40.0050.02215.07
5.5.30.0050.01715.03
5.5.20.0060.01615.02
5.5.10.0010.02215.21
5.5.00.0050.01815.15
5.4.450.0020.02914.09
5.4.440.0110.02614.07
5.4.430.0040.03013.98
5.4.420.0060.01414.05
5.4.410.0070.02714.04
5.4.400.0020.01613.89
5.4.390.0060.02613.93
5.4.380.0080.02513.95
5.4.370.0070.02713.80
5.4.360.0060.02013.97
5.4.350.0030.01713.90
5.4.340.0030.03513.85
5.4.330.0030.00811.37
5.4.320.0040.03313.90
5.4.310.0060.02913.91
5.4.300.0040.02513.90
5.4.290.0080.02713.88
5.4.280.0040.02313.85
5.4.270.0060.02714.04
5.4.260.0100.02413.94
5.4.250.0050.02613.90
5.4.240.0050.02613.89
5.4.230.0070.01713.92
5.4.220.0060.01513.88
5.4.210.0020.01813.94
5.4.200.0050.01813.86
5.4.190.0070.01513.93
5.4.180.0050.01513.89
5.4.170.0050.01513.90
5.4.160.0050.01613.89
5.4.150.0020.01913.84
5.4.140.0030.01313.03
5.4.130.0070.01513.01
5.4.120.0040.01412.99
5.4.110.0040.01413.03
5.4.100.0050.01613.03
5.4.90.0060.01313.03
5.4.80.0070.01113.00
5.4.70.0020.01812.97
5.4.60.0070.01213.00
5.4.50.0050.01312.99
5.4.40.0030.01713.01
5.4.30.0030.01612.92
5.4.20.0050.01713.00
5.4.10.0050.01712.99
5.4.00.0010.01912.79
5.3.290.0030.02812.42
5.3.280.0050.01612.38
5.3.270.0030.01812.40
5.3.260.0040.01712.38
5.3.250.0040.01612.36
5.3.240.0030.01812.38
5.3.230.0060.01412.38
5.3.220.0050.01512.35
5.3.210.0040.01312.41
5.3.200.0000.01912.37
5.3.190.0030.01612.37
5.3.180.0060.01512.37
5.3.170.0050.01112.34
5.3.160.0030.01912.36
5.3.150.0050.01612.34
5.3.140.0040.01312.35
5.3.130.0050.01712.34
5.3.120.0040.01412.39
5.3.110.0060.01412.35
5.3.100.0020.01612.20
5.3.90.0040.01612.19
5.3.80.0010.02312.15
5.3.70.0040.01612.20
5.3.60.0060.01512.15
5.3.50.0040.02012.12
5.3.40.0030.01612.15
5.3.30.0030.01712.15
5.3.20.0040.01612.04
5.3.10.0060.01312.03
5.3.00.0030.01512.02
5.2.170.0020.01911.03
5.2.160.0050.01511.02
5.2.150.0010.02311.07
5.2.140.0030.01511.13
5.2.130.0020.01711.01
5.2.120.0040.01611.08
5.2.110.0060.01211.07
5.2.100.0010.01611.01
5.2.90.0000.02011.09
5.2.80.0020.01911.05
5.2.70.0020.01611.06
5.2.60.0000.01811.06
5.2.50.0050.02011.04
5.2.40.0030.01510.93
5.2.30.0040.01910.99
5.2.20.0000.01710.98
5.2.10.0030.01810.99
5.2.00.0020.01810.84
5.1.60.0050.01310.50
5.1.50.0070.01410.54
5.1.40.0060.01310.49
5.1.30.0000.01810.73
5.1.20.0020.01810.61
5.1.10.0020.01710.60
5.1.00.0030.01310.58
5.0.50.0020.01410.05
5.0.40.0030.01110.05
5.0.30.0030.02010.05
5.0.20.0020.01210.05
5.0.10.0040.01410.05
5.0.00.0050.03210.05
4.4.90.0030.00810.05
4.4.80.0020.00810.05
4.4.70.0020.00910.05
4.4.60.0040.00710.05
4.4.50.0040.00710.05
4.4.40.0030.01310.05
4.4.30.0000.01010.05
4.4.20.0000.00910.05
4.4.10.0030.01310.05
4.4.00.0020.01410.05
4.3.110.0040.00910.05
4.3.100.0010.01110.05
4.3.90.0010.01810.05
4.3.80.0060.01510.05
4.3.70.0060.01510.05
4.3.60.0030.01210.05
4.3.50.0030.01010.05
4.3.40.0020.01310.05
4.3.30.0010.01310.05
4.3.20.0010.01010.05
4.3.10.0020.00910.05
4.3.00.0030.00810.05

preferences:
42.23 ms | 401 KiB | 5 Q