3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 52.5; $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.0070.01018.43
8.3.50.0110.00622.01
8.3.40.0050.00818.79
8.3.30.0180.00419.13
8.3.20.0030.00620.33
8.3.10.0000.00823.53
8.3.00.0040.00717.50
8.2.180.0120.00318.39
8.2.170.0150.00022.96
8.2.160.0140.00020.36
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.01126.16
8.2.120.0040.00422.25
8.2.110.0030.00620.39
8.2.100.0050.00817.78
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0050.00218.34
8.2.30.0000.00818.00
8.2.20.0070.00017.75
8.2.10.0030.00518.00
8.2.00.0030.00717.79
8.1.280.0030.01025.92
8.1.270.0000.00823.71
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.65
8.1.230.0080.00317.56
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.00
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0030.00622.01
8.1.150.0000.00818.62
8.1.140.0070.00017.50
8.1.130.0000.00717.82
8.1.120.0040.00417.45
8.1.110.0040.00417.52
8.1.100.0040.00417.50
8.1.90.0000.00817.34
8.1.80.0030.00517.41
8.1.70.0050.00317.43
8.1.60.0030.00617.49
8.1.50.0030.00517.50
8.1.40.0040.00417.51
8.1.30.0000.00817.46
8.1.20.0000.00717.64
8.1.10.0000.00717.52
8.1.00.0040.00417.44
8.0.300.0060.00318.77
8.0.290.0000.01016.75
8.0.280.0030.00318.44
8.0.270.0040.00417.30
8.0.260.0040.00417.31
8.0.250.0030.00316.98
8.0.240.0000.00716.94
8.0.230.0030.00316.84
8.0.220.0030.00316.88
8.0.210.0030.00316.86
8.0.200.0030.00316.98
8.0.190.0030.00516.91
8.0.180.0030.00616.82
8.0.170.0050.00316.84
8.0.160.0070.00016.94
8.0.150.0000.00716.82
8.0.140.0000.00816.84
8.0.130.0000.00613.25
8.0.120.0070.00016.84
8.0.110.0030.00516.95
8.0.100.0050.00216.78
8.0.90.0040.00416.85
8.0.80.0080.00816.84
8.0.70.0040.00417.00
8.0.60.0070.00016.92
8.0.50.0000.00816.90
8.0.30.0120.00816.94
8.0.20.0140.00817.40
8.0.10.0000.00816.92
8.0.00.0120.00616.99
7.4.330.0000.00515.15
7.4.320.0060.00016.59
7.4.300.0030.00316.66
7.4.290.0000.00716.52
7.4.280.0000.00716.50
7.4.270.0000.00716.50
7.4.260.0000.00716.58
7.4.250.0030.00316.48
7.4.240.0020.00516.60
7.4.230.0000.00716.60
7.4.220.0090.00916.42
7.4.210.0070.01016.58
7.4.200.0000.00716.63
7.4.190.0000.00816.48
7.4.160.0060.00916.68
7.4.150.0150.00317.40
7.4.140.0080.01217.86
7.4.130.0110.00616.54
7.4.120.0130.00416.52
7.4.110.0160.00616.54
7.4.100.0060.01516.64
7.4.90.0070.01016.37
7.4.80.0040.01419.39
7.4.70.0090.00916.59
7.4.60.0060.00916.44
7.4.50.0090.00016.49
7.4.40.0140.00322.77
7.4.30.0110.00416.41
7.4.00.0060.01014.80
7.3.330.0050.00013.07
7.3.320.0030.00313.05
7.3.310.0000.00716.42
7.3.300.0030.00316.17
7.3.290.0000.01316.31
7.3.280.0080.01016.29
7.3.270.0100.00717.40
7.3.260.0220.00316.42
7.3.250.0110.00816.42
7.3.240.0070.01316.39
7.3.230.0100.00716.44
7.3.210.0030.01316.27
7.3.200.0110.01119.39
7.3.190.0160.00016.61
7.3.180.0060.01016.30
7.3.170.0060.00916.39
7.3.160.0120.00316.28
7.3.120.0060.00614.77
7.3.10.0030.01116.64
7.3.00.0100.00416.46
7.2.330.0120.00616.52
7.2.320.0060.01216.73
7.2.310.0130.00916.64
7.2.300.0000.01616.73
7.2.290.0090.01216.71
7.2.130.0080.00816.93
7.2.120.0080.00817.05
7.2.110.0040.01216.82
7.2.100.0050.00516.85
7.2.90.0100.00716.66
7.2.80.0070.00716.84
7.2.70.0080.00317.03
7.2.60.0090.00616.84
7.2.50.0070.01017.01
7.2.40.0030.00716.98
7.2.30.0070.01116.73
7.2.20.0110.00417.17
7.2.10.0060.00317.15
7.2.00.0070.01117.18
7.1.250.0100.00315.69
7.1.100.0060.01218.28
7.1.70.0130.00617.29
7.1.60.0130.01019.33
7.1.50.0060.01217.04
7.1.00.0000.07722.33
7.0.200.0100.00316.88
7.0.140.0030.07022.00
7.0.60.0100.06019.89
7.0.50.0170.07317.86
7.0.40.0000.04720.13
7.0.30.0600.05320.08
7.0.20.0430.04020.13
7.0.10.0100.08720.05
7.0.00.0070.08320.27
5.6.280.0070.07021.11
5.6.210.0030.05020.48
5.6.200.0070.05318.25
5.6.190.0100.03720.52
5.6.180.0400.07720.63
5.6.170.0230.03720.54
5.6.160.0100.05020.71
5.6.150.0030.08318.21
5.6.140.0070.08018.18
5.6.130.0070.08018.18
5.6.120.0030.06721.04
5.6.110.0130.05021.10
5.6.100.0130.05321.00
5.6.90.0130.03320.93
5.6.80.0070.07720.37
5.6.70.4200.03720.44
5.5.350.0070.08320.41
5.5.340.0070.08717.97
5.5.330.0200.05020.19
5.5.320.0370.07320.31
5.5.310.0300.07320.23
5.5.300.0030.08717.95
5.5.290.0070.08317.97
5.5.280.0030.07320.87
5.5.270.0130.06320.76
5.5.260.0070.05720.87
5.5.250.0100.08020.59
5.5.240.0130.04720.08
5.4.450.0030.06319.20
5.4.440.0730.04719.62
5.4.430.0700.04719.20
5.4.420.0870.04019.48
5.4.410.0530.05319.18
5.4.400.0100.05719.11
5.4.390.0300.04018.93
5.4.380.0200.05018.73
5.4.370.0130.05318.86
5.4.360.0100.05718.78
5.4.350.0170.05318.79
5.4.340.0230.04318.75
5.4.320.0070.03712.50
5.4.310.0030.04212.49
5.4.300.0040.04212.50
5.4.290.0040.04312.49
5.4.280.0020.03812.39
5.4.270.0110.04512.39
5.4.260.0030.03912.39
5.4.250.0080.04812.39
5.4.240.0050.03712.39
5.4.230.0050.04412.38
5.4.220.0050.03612.38
5.4.210.0070.03412.38
5.4.200.0060.04312.38
5.4.190.0220.04512.39
5.4.180.0190.04512.38
5.4.170.0220.05312.40
5.4.160.0130.04712.39
5.4.150.0170.05112.38
5.4.140.0190.04412.07
5.4.130.0250.04312.06
5.4.120.0240.04812.02
5.4.110.0150.04912.01
5.4.100.0210.05112.01
5.4.90.0210.04412.01
5.4.80.0190.04312.01
5.4.70.0260.06312.01
5.4.60.0220.03612.00
5.4.50.0210.04412.00
5.4.40.0140.04512.00
5.4.30.0340.06011.99
5.4.20.0170.04411.99
5.4.10.0170.04511.99
5.4.00.0190.04111.49
5.3.290.0040.04712.80
5.3.280.0060.03712.71
5.3.270.0170.04712.73
5.3.260.0180.04512.72
5.3.250.0260.07112.71
5.3.240.0210.04312.72
5.3.230.0200.04412.71
5.3.220.0210.04312.68
5.3.210.0170.04612.68
5.3.200.0160.04512.68
5.3.190.0360.09112.68
5.3.180.0240.03912.67
5.3.170.0180.04912.66
5.3.160.0220.04512.67
5.3.150.0150.04512.67
5.3.140.0180.04412.66
5.3.130.0190.04212.66
5.3.120.0180.04712.66
5.3.110.0210.04812.66
5.3.100.0220.04412.13
5.3.90.0220.07412.11
5.3.80.0320.06312.10
5.3.70.0160.04912.10
5.3.60.0190.04312.08
5.3.50.0230.04412.04
5.3.40.0200.04212.04
5.3.30.0150.04412.00
5.3.20.0170.04811.78
5.3.10.0150.06111.74
5.3.00.0360.08311.73
5.2.170.0140.0359.23
5.2.160.0110.0379.23
5.2.150.0160.0339.22
5.2.140.0200.0339.23
5.2.130.0180.0309.18
5.2.120.0150.0349.19
5.2.110.0130.0409.19
5.2.100.0400.0779.20
5.2.90.0230.0319.19
5.2.80.0170.0349.18
5.2.70.0240.0629.18
5.2.60.0160.0349.13
5.2.50.0160.0359.11
5.2.40.0160.0339.08
5.2.30.0170.0339.05
5.2.20.0140.0359.05
5.2.10.0140.0348.97
5.2.00.0130.0368.82
5.1.60.0100.0328.11
5.1.50.0390.0668.11
5.1.40.0150.0288.09
5.1.30.0090.0338.44
5.1.20.0120.0328.46
5.1.10.0170.0288.19
5.1.00.0140.0288.18
5.0.50.0070.0286.67
5.0.40.0090.0236.53
5.0.30.0080.0376.34
5.0.20.0070.0266.33
5.0.10.0090.0236.30
5.0.00.0120.0326.29
4.4.90.0070.0204.78
4.4.80.0040.0214.75
4.4.70.0100.0164.75
4.4.60.0240.0634.75
4.4.50.0080.0174.77
4.4.40.0070.0294.71
4.4.30.0060.0214.76
4.4.20.0070.0194.84
4.4.10.0080.0204.85
4.4.00.0100.0264.75
4.3.110.0080.0194.67
4.3.100.0100.0164.67
4.3.90.0120.0154.63
4.3.80.0140.0524.59
4.3.70.0090.0164.63
4.3.60.0060.0194.63
4.3.50.0120.0134.63
4.3.40.0120.0234.54
4.3.30.0090.0153.34
4.3.20.0090.0163.34
4.3.10.0080.0163.29
4.3.00.0030.0207.79

preferences:
39.11 ms | 401 KiB | 5 Q