3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 65; $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 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)
5.6.80.0000.05020.38
5.5.240.0030.07720.28
5.4.400.0230.04718.83
5.4.390.0300.04018.80
5.4.380.0130.05718.54
5.4.370.0130.06018.43
5.4.360.0100.06318.73
5.4.350.0100.06718.41
5.4.340.0230.04718.61
5.4.320.0400.04318.80
5.4.310.0130.05718.53
5.4.300.0230.04718.48
5.4.290.0230.04718.80
5.4.280.0230.04718.71
5.4.270.0200.05318.77
5.4.260.0170.06318.68
5.4.250.0100.06018.69
5.4.240.0370.03718.79
5.4.230.0230.06018.68
5.4.220.0230.06718.68
5.4.210.0200.05018.41
5.4.200.0300.04016.77
5.4.190.0230.05018.66
5.4.180.0170.05318.68
5.4.170.0170.05318.70
5.4.160.0300.06018.74
5.4.150.0230.04718.69
5.4.140.0200.04716.42
5.4.130.0170.05016.40
5.4.120.0200.04716.25
5.4.110.0170.04716.27
5.4.100.0170.05016.43
5.4.90.0200.05016.24
5.4.80.0170.05016.22
5.4.70.0200.06316.25
5.4.60.0130.05316.22
5.4.50.0270.06016.20
5.4.40.0270.04716.38
5.4.30.0170.05316.26
5.4.20.0230.04716.15
5.4.10.0270.05316.28
5.4.00.0100.05715.69
5.3.290.0170.06014.75
5.3.280.0030.06314.53
5.3.270.0130.06014.55
5.3.260.0200.05314.52
5.3.250.0130.05714.59
5.3.240.0270.05314.57
5.3.230.0100.06014.56
5.3.220.0230.05314.64
5.3.210.0230.06014.51
5.3.200.0100.06014.43
5.3.190.0300.05314.48
5.3.180.0270.06314.49
5.3.170.0170.05014.49
5.3.160.0270.04314.53
5.3.150.0170.05314.42
5.3.140.0130.05314.53
5.3.130.0200.05014.51
5.3.120.0100.06314.50
5.3.110.0270.04714.51
5.3.100.0270.04314.09
5.3.90.0230.05014.00
5.3.80.0300.05014.00
5.3.70.0200.04714.10
5.3.60.0370.03713.94
5.3.50.0270.04013.86
5.3.40.0370.05013.98
5.3.30.0200.05013.88
5.3.20.0170.05313.60
5.3.10.0100.05713.63
5.3.00.0200.05313.70
5.2.170.0200.05011.29
5.2.160.0400.04311.09
5.2.150.0230.04311.15
5.2.140.0200.05311.09
5.2.130.0100.04711.13
5.2.120.0230.04011.14
5.2.110.0170.05011.13
5.2.100.0200.05311.14
5.2.90.0330.04311.15
5.2.80.0170.04311.02
5.2.70.0070.05311.13
5.2.60.0170.04310.96
5.2.50.0200.04311.04
5.2.40.0170.04311.11
5.2.30.0270.05010.93
5.2.20.0170.03710.91
5.2.10.0130.04010.87
5.2.00.0130.04310.70
5.1.60.0130.04710.00
5.1.50.0170.04310.10
5.1.40.0100.05010.01
5.1.30.0200.04310.42
5.1.20.0230.04010.51
5.1.10.0130.03710.18
5.1.00.0100.03710.18
5.0.50.0130.0338.66
5.0.40.0170.0208.46
5.0.30.0000.0578.24
5.0.20.0070.0308.27
5.0.10.0000.0338.27
5.0.00.0030.0438.33
4.4.90.0030.0276.87
4.4.80.0130.0176.87
4.4.70.0100.0236.87
4.4.60.0070.0276.87
4.4.50.0100.0276.87
4.4.40.0100.0406.87
4.4.30.0070.0276.87
4.4.20.0070.0236.87
4.4.10.0070.0206.87
4.4.00.0000.0436.87
4.3.110.0030.0236.87
4.3.100.0070.0206.87
4.3.90.0000.0276.87
4.3.80.0000.0406.87
4.3.70.0100.0176.87
4.3.60.0000.0236.87
4.3.50.0070.0276.87
4.3.40.0070.0436.87
4.3.30.0030.0306.87
4.3.20.0000.0336.87
4.3.10.0070.0276.87
4.3.00.0030.0237.20

preferences:
196.19 ms | 1398 KiB | 7 Q