3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sks = 1; $kurang = array(0,11.999,12); $cukup = array(11.999,12,16.111); $lebih = array(12,16.111); $kc = array_intersect($kurang, $cukup); $cl = array_intersect($cukup, $lebih); if ( $sks >= $cl [1]) { $muCukup = ($sks >= $cl[2]) ? "0" : ($sks <= $cl[2] ? ($sks - $kc[1]) / ($kc[2] - $kc[1]) : "0.5" ); $muLebih = ($sks - $cl[1]) / ($cl[2] - $cl[1]); if ($muLebih > $muCukup) { echo "Beban Melebihi Dari UU Yang Ditetapkan"; } else { echo "Beban Sesuai Dengan UU Yang Ditetapkan"; } } elseif ($sks < $kc [2] ) { $muKurang = ($kc[2] - $sks) / ($kc[2] - $kc[1]); $muCukup = ($sks - $kc[1]) / ($kc[2] - $kc[1]); if ($muKurang > $muCukup) { echo "Beban Kurang Dari UU Yang Ditetapkan"; } else { echo "Beban Sesuai Dengan UU Yang Ditetapkan"; } }

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.00318.18
8.3.50.0100.01121.27
8.3.40.0090.00618.91
8.3.30.0040.01120.34
8.3.20.0080.00020.48
8.3.10.0050.00321.13
8.3.00.0070.00321.51
8.2.180.0130.00716.75
8.2.170.0040.01122.96
8.2.160.0060.00620.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00317.59
8.2.110.0090.00919.31
8.2.100.0040.00717.72
8.2.90.0020.00519.21
8.2.80.0080.00019.28
8.2.70.0090.00017.75
8.2.60.0000.00718.03
8.2.50.0030.00518.07
8.2.40.0050.00318.34
8.2.30.0020.00519.54
8.2.20.0070.00017.70
8.2.10.0050.00217.86
8.2.00.0080.00017.77
8.1.280.0040.01125.92
8.1.270.0030.00622.04
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00422.60
8.1.230.0000.01120.99
8.1.220.0050.00318.77
8.1.210.0040.00418.91
8.1.200.0030.00617.34
8.1.190.0070.00017.40
8.1.180.0050.00318.10
8.1.170.0000.00918.59
8.1.160.0000.00718.84
8.1.150.0030.00618.59
8.1.140.0050.00217.36
8.1.130.0000.00717.72
8.1.120.0030.00417.43
8.1.110.0070.00017.31
8.1.100.0030.00617.40
8.1.90.0040.00417.42
8.1.80.0040.00417.38
8.1.70.0030.00317.39
8.1.60.0000.00817.61
8.1.50.0070.00017.42
8.1.40.0020.00517.50
8.1.30.0040.00417.48
8.1.20.0000.00817.61
8.1.10.0000.00717.58
8.1.00.0040.00417.45
8.0.300.0070.00019.77
8.0.290.0000.00717.15
8.0.280.0040.00418.43
8.0.270.0090.00017.23
8.0.260.0000.00616.90
8.0.250.0090.00016.90
8.0.240.0050.00316.96
8.0.230.0000.00716.86
8.0.220.0030.00316.88
8.0.210.0040.00416.92
8.0.200.0060.00016.91
8.0.190.0040.00416.89
8.0.180.0030.00616.86
8.0.170.0050.00316.80
8.0.160.0000.00716.90
8.0.150.0070.00016.79
8.0.140.0000.00716.79
8.0.130.0000.00613.27
8.0.120.0100.00016.90
8.0.110.0040.00416.84
8.0.100.0000.00716.91
8.0.90.0040.00416.63
8.0.80.0120.00816.90
8.0.70.0040.00416.81
8.0.60.0000.00716.71
8.0.50.0060.00316.72
8.0.30.0100.01316.97
8.0.20.0100.01017.40
8.0.10.0070.00017.06
8.0.00.0100.01316.64
7.4.330.0060.00016.67
7.4.320.0000.00716.53
7.4.300.0060.00016.36
7.4.290.0000.00716.53
7.4.280.0040.00416.45
7.4.270.0000.00716.47
7.4.260.0030.00313.13
7.4.250.0030.00616.53
7.4.240.0040.00416.53
7.4.230.0000.00716.44
7.4.220.0090.00916.50
7.4.210.0070.00716.50
7.4.200.0060.00016.38
7.4.190.0050.00316.71
7.4.160.0060.01116.46
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0100.00716.63
7.4.120.0100.00616.57
7.4.110.0110.00716.49
7.4.100.0100.00716.37
7.4.90.0060.01616.53
7.4.80.0100.00719.39
7.4.70.0100.00716.59
7.4.60.0060.01016.54
7.4.50.0030.00616.31
7.4.40.0030.01022.77
7.4.30.0090.01216.67
7.4.00.0070.00715.11
7.3.330.0030.00313.19
7.3.320.0060.00013.25
7.3.310.0070.00016.35
7.3.300.0060.00016.38
7.3.290.0070.00716.23
7.3.280.0080.01116.30
7.3.270.0110.01117.40
7.3.260.0130.00718.24
7.3.250.0190.01816.43
7.3.240.0120.01016.63
7.3.230.0110.01216.42
7.3.210.0140.00416.36
7.3.200.0080.01119.39
7.3.190.0000.01616.45
7.3.180.0030.01416.43
7.3.170.0030.01316.42
7.3.160.0070.01016.44
7.3.120.0120.00615.06
7.3.110.0060.00914.55
7.3.100.0070.00714.74
7.3.90.0080.00414.99
7.3.80.0080.00614.64
7.3.70.0090.00615.03
7.3.60.0040.01114.86
7.3.50.0040.01114.72
7.3.40.0000.01315.00
7.3.30.0030.00914.66
7.3.20.0060.00616.87
7.3.10.0030.01416.55
7.3.00.0000.01516.62
7.2.330.0000.01716.44
7.2.320.0090.00916.64
7.2.310.0100.00816.42
7.2.300.0030.01316.44
7.2.290.0090.00616.49
7.2.240.0040.01415.24
7.2.230.0030.00614.66
7.2.220.0080.00814.76
7.2.210.0150.00015.20
7.2.200.0000.01314.92
7.2.190.0090.00615.14
7.2.180.0100.00715.18
7.2.170.0030.00915.02
7.2.160.0040.00715.05
7.2.150.0040.01116.77
7.2.140.0000.01116.85
7.2.130.0040.01116.88
7.2.120.0090.00916.80
7.2.110.0090.00616.84
7.2.100.0040.00716.73
7.2.90.0060.00916.63
7.2.80.0030.01016.79
7.2.70.0030.01316.97
7.2.60.0070.01016.78
7.2.50.0040.00816.93
7.2.40.0030.01316.72
7.2.30.0070.01017.05
7.2.20.0040.00816.76
7.2.10.0030.01016.79
7.2.00.0030.01218.03
7.1.330.0080.00415.85
7.1.320.0030.01015.76
7.1.310.0000.01715.82
7.1.300.0030.00915.80
7.1.290.0130.00315.77
7.1.280.0090.00615.52
7.1.270.0070.00715.67
7.1.260.0110.00415.88
7.1.250.0060.00915.65
7.1.100.0120.00617.75
7.1.70.0030.00817.15
7.1.60.0070.01819.17
7.1.50.0070.01616.95
7.1.00.0030.04722.36
7.0.200.0000.00916.77
7.0.140.0030.07721.97
7.0.100.0100.07019.94
7.0.90.0270.07320.14
7.0.80.0030.04319.93
7.0.70.0330.07720.00
7.0.60.0100.07020.07
7.0.50.0070.08020.19
7.0.40.0070.04020.04
7.0.30.0030.04720.08
7.0.20.0070.08720.07
7.0.10.0070.07320.11
7.0.00.0030.05320.13
5.6.250.0100.04320.59
5.6.240.0070.08020.70
5.6.230.0030.08720.74
5.6.220.0030.04720.65
5.6.210.0070.04720.64
5.6.200.0170.07721.02
5.6.190.0170.03721.03
5.6.180.0000.04721.08
5.6.170.0070.04321.09
5.6.160.0170.07721.03
5.6.150.0070.08021.03
5.6.140.0130.04321.10
5.6.130.0100.04721.10
5.6.120.0100.08320.92
5.6.110.0170.07721.04
5.6.100.0030.08721.15
5.6.90.0100.08321.01
5.6.80.0070.05020.43
5.6.70.0070.04020.33
5.6.60.0130.03320.24
5.6.50.0070.08020.44
5.6.40.0100.07320.39
5.6.30.0100.08020.52
5.6.20.0170.05320.36
5.6.10.0100.06720.36
5.6.00.0100.05020.29
5.5.380.0130.04720.43
5.5.370.0000.05320.46
5.5.360.0200.07020.41
5.5.350.0100.05020.41
5.5.340.0070.05320.68
5.5.330.0070.04020.82
5.5.320.0070.05320.91
5.5.310.0030.06020.76
5.5.300.0000.08720.90
5.5.290.0100.05720.90
5.5.280.0100.08020.64
5.5.270.0070.06720.80
5.5.260.0070.05020.87
5.5.250.0130.08020.71
5.5.240.0070.06020.21
5.5.230.0100.04020.13
5.5.220.0070.07720.28
5.5.210.0070.06020.29
5.5.200.0030.07020.14
5.5.190.0030.06720.27
5.5.180.0030.08720.20
5.5.160.0130.07320.11
5.5.150.0100.05320.24
5.5.140.0200.06720.13
5.5.130.0070.04720.20
5.5.120.0070.05020.10
5.5.110.0070.06320.25
5.5.100.0100.03720.09
5.5.90.0100.07720.07
5.5.80.0170.04719.95
5.5.70.0100.07720.11
5.5.60.0000.04020.09
5.5.50.0000.06720.05
5.5.40.0100.08019.93
5.5.30.0070.07020.07
5.5.20.0070.07720.06
5.5.10.0170.06019.96
5.5.00.0170.07020.10
5.4.450.0030.06319.38
5.4.440.0100.07319.28
5.4.430.0100.07719.30
5.4.420.0030.08019.37
5.4.410.0100.06319.22
5.4.400.0070.04319.05
5.4.390.0070.03719.12
5.4.380.0070.04319.04
5.4.370.0100.06319.14
5.4.360.0030.08318.77
5.4.350.0030.06319.03
5.4.340.0070.07718.98
5.4.320.0130.06719.06
5.4.310.0070.07318.93
5.4.300.0070.06019.20
5.4.290.0030.07718.98
5.4.280.0100.03719.09
5.4.270.0030.04719.04
5.4.260.0130.06718.80
5.4.250.0100.04719.12
5.4.240.0070.07319.22
5.4.230.0100.04319.11
5.4.220.0030.07318.96
5.4.210.0070.04318.89
5.4.200.0130.07019.02
5.4.190.0000.07319.23
5.4.180.0070.07719.08
5.4.170.0130.07319.01
5.4.160.0070.07019.01
5.4.150.0070.08019.01
5.4.140.0170.04716.32
5.4.130.0030.04316.26
5.4.120.0030.06316.26
5.4.110.0130.07016.33
5.4.100.0070.06016.34
5.4.90.0100.06716.24
5.4.80.0070.05016.42
5.4.70.0070.07316.41
5.4.60.0130.06716.38
5.4.50.0100.06016.23
5.4.40.0030.05316.47
5.4.30.0070.06016.40
5.4.20.0030.07716.41
5.4.10.0030.06016.41
5.4.00.0030.04715.69
5.3.290.0030.05014.65
5.3.280.0070.07314.46
5.3.270.0070.07714.58
5.3.260.0130.06014.59
5.3.250.0070.07314.55
5.3.240.0070.06714.60
5.3.230.0130.05014.45
5.3.220.0070.07714.43
5.3.210.0100.06714.44
5.3.200.0070.07714.49
5.3.190.0100.08314.55
5.3.180.0100.06714.58
5.3.170.0130.03314.55
5.3.160.0100.05314.51
5.3.150.0100.06314.57
5.3.140.0100.04714.55
5.3.130.0130.03714.50
5.3.120.0130.06714.50
5.3.110.0070.04714.54
5.3.100.0000.08013.91
5.3.90.0070.07013.88
5.3.80.0100.06314.02
5.3.70.0100.07313.80
5.3.60.0070.05014.02
5.3.50.0030.07713.92
5.3.40.0030.06313.93
5.3.30.0130.07313.68
5.3.20.0070.04313.47
5.3.10.0030.04713.67
5.3.00.0070.04713.66
5.2.170.0070.03311.01
5.2.160.0070.04711.08
5.2.150.0030.06311.15
5.2.140.0100.03311.11
5.2.130.0100.05711.13
5.2.120.0100.02310.96
5.2.110.0100.06011.11
5.2.100.0000.03711.05
5.2.90.0000.06710.91
5.2.80.0070.04010.97
5.2.70.0070.05011.17
5.2.60.0030.05011.05
5.2.50.0130.04311.02
5.2.40.0070.03311.09
5.2.30.0030.06711.05
5.2.20.0030.03310.99
5.2.10.0000.06010.98
5.2.00.0130.05310.86
5.1.60.0000.03010.01
5.1.50.0030.05710.08
5.1.40.0030.04310.06
5.1.30.0030.04010.27
5.1.20.0030.06010.27
5.1.10.0070.02710.07
5.1.00.0000.04310.15
5.0.50.0100.0278.61
5.0.40.0000.0278.54
5.0.30.0030.0338.24
5.0.20.0030.0438.31
5.0.10.0070.0308.18
5.0.00.0000.0678.29
4.4.90.0070.0208.08
4.4.80.0000.0438.08
4.4.70.0070.0378.08
4.4.60.0100.0278.08
4.4.50.0070.0308.08
4.4.40.0030.0308.08
4.4.30.0000.0378.08
4.4.20.0000.0238.08
4.4.10.0000.0408.08
4.4.00.0070.0538.08
4.3.110.0000.0338.08
4.3.100.0100.0138.08
4.3.90.0030.0308.08
4.3.80.0030.0338.08
4.3.70.0000.0308.08
4.3.60.0030.0338.08
4.3.50.0070.0208.08
4.3.40.0070.0308.08
4.3.30.0000.0378.08
4.3.20.0000.0378.08
4.3.10.0000.0338.08
4.3.00.0000.0338.08

preferences:
42.92 ms | 401 KiB | 5 Q